Skip to content
Open
Show file tree
Hide file tree
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 backend/src/agent/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Configuration(BaseModel):
"""The configuration for the agent."""

query_generator_model: str = Field(
default="gemini-2.0-flash",
default="gemini-2.5-flash",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

The model name gemini-2.5-flash is incorrect. Google's current stable models are in the 1.5 series (e.g., gemini-1.5-flash). Using a non-existent model name will result in API 404 errors. Additionally, please ensure that reflection_model and answer_model (lines 19 and 26) are also updated to use the correct 1.5 versions for consistency.

Suggested change
default="gemini-2.5-flash",
default="gemini-1.5-flash",

metadata={
"description": "The name of the language model to use for the agent's query generation."
},
Expand Down
14 changes: 3 additions & 11 deletions frontend/src/components/InputForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const InputForm: React.FC<InputFormProps> = ({
}) => {
const [internalInputValue, setInternalInputValue] = useState("");
const [effort, setEffort] = useState("medium");
const [model, setModel] = useState("gemini-2.5-flash-preview-04-17");
const [model, setModel] = useState("gemini-2.5-flash");
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

The default model state should be updated to a valid model identifier. gemini-2.5-flash does not exist; the stable version is gemini-1.5-flash.

Suggested change
const [model, setModel] = useState("gemini-2.5-flash");
const [model, setModel] = useState("gemini-1.5-flash");


const handleInternalSubmit = (e?: React.FormEvent) => {
if (e) e.preventDefault();
Expand Down Expand Up @@ -136,23 +136,15 @@ export const InputForm: React.FC<InputFormProps> = ({
</SelectTrigger>
<SelectContent className="bg-neutral-700 border-neutral-600 text-neutral-300 cursor-pointer">
<SelectItem
value="gemini-2.0-flash"
className="hover:bg-neutral-600 focus:bg-neutral-600 cursor-pointer"
>
<div className="flex items-center">
<Zap className="h-4 w-4 mr-2 text-yellow-400" /> 2.0 Flash
</div>
</SelectItem>
<SelectItem
value="gemini-2.5-flash-preview-04-17"
value="gemini-2.5-flash"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

The model identifier gemini-2.5-flash is incorrect and will likely cause a 404 error. It should be gemini-1.5-flash. Note that the UI label '2.5 Flash' on line 143 should also be updated to '1.5 Flash' for accuracy, although it is not part of the modified lines in this diff.

Suggested change
value="gemini-2.5-flash"
value="gemini-1.5-flash"

className="hover:bg-neutral-600 focus:bg-neutral-600 cursor-pointer"
>
<div className="flex items-center">
<Zap className="h-4 w-4 mr-2 text-orange-400" /> 2.5 Flash
</div>
</SelectItem>
<SelectItem
value="gemini-2.5-pro-preview-05-06"
value="gemini-2.5-pro"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

The model identifier gemini-2.5-pro is incorrect. The correct stable identifier is gemini-1.5-pro. Similar to the Flash model, the display label on line 151 should also be updated to '1.5 Pro'.

Suggested change
value="gemini-2.5-pro"
value="gemini-1.5-pro"

className="hover:bg-neutral-600 focus:bg-neutral-600 cursor-pointer"
>
<div className="flex items-center">
Expand Down