Created
December 12, 2024 17:24
-
-
Save danywalls/43ff89f1ee5f9a6bf82e8f95d8279c86 to your computer and use it in GitHub Desktop.
stage-1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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