Skip to content

Commit

Permalink
Updated Gemini 1.5 Flash - Recipe.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
Anomaly-1 authored Jul 20, 2024
1 parent 6ba8b4c commit 7ebd7c4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions components/Recipe.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ export default {
const supabase = useSupabaseClient();
const { data: { user } } = await supabase.auth.getUser()
console.log(recipeText)
const { data, error } = await supabase.from('recipes').insert([
{ username: user.email, recipe_text: recipeText }
]);
Expand All @@ -80,7 +78,7 @@ export default {
async sendToGeminiAPI(items) {
this.isLoading = true;
const genAI = new GoogleGenerativeAI(gemini);
const model = genAI.getGenerativeModel({ model: "gemini-pro" });
const model = genAI.getGenerativeModel({ model: "gemini-1.5-flash" });
const prompt = " Create an original ideal recipe using these ingredients (including portions) with numbered separated steps:" + items.join(" ") + "Your Response should be in aesthetic Markdown and contain THREE parts: 1. ## Title of the Recipe: (Provide a clear and descriptive title for your recipe.) 2. **Ingredients**: (List the ingredients with bullet points.) 3. **Steps**: (List the steps with numbered points.) Ensure to use Markdown syntax for proper formatting. Add a '\n' character anywhere there is a newline needed. ";
try {
Expand Down

0 comments on commit 7ebd7c4

Please sign in to comment.