Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion genai/live/live-structured-ouput-with-txt.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async function generateStructuredTextResponse(
});

const completion = await openAI.chat.completions.create({
model: 'google/gemini-2.0-flash-001',
model: 'google/gemini-2.5-flash',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The model name google/gemini-2.5-flash is currently a string literal. While this is a small change, it's generally good practice to define such configuration values as constants, especially if they might be reused or updated frequently. This improves maintainability and reduces the risk of typos if the value needs to be changed in the future.

messages: [
{role: 'system', content: 'Extract the event information.'},
{
Expand Down
Loading