Skip to content

Commit

Permalink
Gemini not working reliabily on Openrouter for structured data. I sho…
Browse files Browse the repository at this point in the history
…uld add Vertex as a provider.
  • Loading branch information
scosman committed Nov 12, 2024
1 parent dd00db3 commit be25eb9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/core/kiln_ai/adapters/ml_model_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ class KilnModel(BaseModel):
providers=[
KilnModelProvider(
name=ModelProviderName.openrouter,
supports_structured_output=False, # it should, but doesn't work on openrouter
provider_options={"model": "google/gemini-pro-1.5"},
),
],
Expand All @@ -200,6 +201,7 @@ class KilnModel(BaseModel):
providers=[
KilnModelProvider(
name=ModelProviderName.openrouter,
supports_structured_output=False,
provider_options={"model": "google/gemini-flash-1.5-8b"},
),
],
Expand Down

0 comments on commit be25eb9

Please sign in to comment.