Skip to content

Commit

Permalink
Add model "learnlm-1.5-pro-experimental" (#36)
Browse files Browse the repository at this point in the history
See https://ai.google.dev/gemini-api/docs/models/experimental-models for all available experimental models. learnlm was missing from the list in the plugin.

https://ai.google.dev/gemini-api/docs/learnlm for more details.
  • Loading branch information
leotulipan authored Jan 22, 2025
1 parent ec43251 commit 088fe48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion llm_gemini.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def register_models(register):
"gemini-exp-1121",
"gemini-exp-1206",
"gemini-2.0-flash-exp",
"learnlm-1.5-pro-experimental",
"gemini-2.0-flash-thinking-exp-1219",
"gemini-2.0-flash-thinking-exp-01-21",
]:
Expand Down Expand Up @@ -336,4 +337,4 @@ def embed_batch(self, items):
)

response.raise_for_status()
return [item["values"] for item in response.json()["embeddings"]]
return [item["values"] for item in response.json()["embeddings"]]

0 comments on commit 088fe48

Please sign in to comment.