Skip to content

Instantly share code, notes, and snippets.

@danywalls
Created December 12, 2024 17:24
Show Gist options
  • Save danywalls/43ff89f1ee5f9a6bf82e8f95d8279c86 to your computer and use it in GitHub Desktop.
Save danywalls/43ff89f1ee5f9a6bf82e8f95d8279c86 to your computer and use it in GitHub Desktop.
stage-1
import { Injectable } from '@angular/core';
import { GEMINI_KEY } from '../environment';
import { GoogleGenerativeAI } from '@google/generative-ai';
@Injectable({ providedIn: 'root' })
export class GeminiService {
KENDO_RECOMMEND_PROMPT = `
Given a screenshot of a browser tell me which kendo ui components help me to solve, and why can help me to build that UI.
The response a string , with the section detected , the components of
kendo and a url.
Format the output as Markdown. Include headings, bold text, bullet
points, and hyperlinks as appropriate.
`;
private generativeModel = new GoogleGenerativeAI(
GEMINI_KEY,
).getGenerativeModel({
model: 'gemini-1.5-flash',
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment