Skip to content

Commit

Permalink
add_gemini_frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
holchan committed Jan 10, 2025
1 parent 5ab023d commit 5712e6e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cognee/api/v1/settings/routers/get_settings_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class SettingsDTO(OutDTO):


class LLMConfigInputDTO(InDTO):
provider: Union[Literal["openai"], Literal["ollama"], Literal["anthropic"]]
provider: Union[Literal["openai"], Literal["ollama"], Literal["anthropic"], Literal["gemini"]]
model: str
api_key: str

Expand Down
11 changes: 11 additions & 0 deletions cognee/modules/settings/get_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class ModelName(Enum):
openai = "openai"
ollama = "ollama"
anthropic = "anthropic"
gemini = "gemini"


class LLMConfig(BaseModel):
Expand Down Expand Up @@ -72,6 +73,10 @@ def get_settings() -> SettingsDict:
"value": "anthropic",
"label": "Anthropic",
},
{
"value": "gemini",
"label": "Gemini",
},
]

return SettingsDict.model_validate(
Expand Down Expand Up @@ -136,6 +141,12 @@ def get_settings() -> SettingsDict:
"label": "Claude 3 Haiku",
},
],
"gemini": [
{
"value": "gemini-2.0-flash-exp",
"label": "Gemini 2.0 Flash",
},
],
},
},
vector_db={
Expand Down

0 comments on commit 5712e6e

Please sign in to comment.