-
-
Notifications
You must be signed in to change notification settings - Fork 341
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
15 additions
and
16 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
packages/jupyter-ai-magics/jupyter_ai_magics/partner_providers/gemini.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from jupyter_ai_magics.providers import BaseProvider, EnvAuthStrategy | ||
from langchain_google_genai import GoogleGenerativeAI | ||
|
||
|
||
class GeminiProvider(BaseProvider, GoogleGenerativeAI): | ||
id = "gemini" | ||
name = "Gemini" | ||
models = [ | ||
"gemini-pro", | ||
] | ||
model_id_key = "model" | ||
auth_strategy = EnvAuthStrategy(name="GOOGLE_API_KEY") | ||
pypi_package_deps = ["langchain-google-genai"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters