Skip to content

Commit

Permalink
Adds new models to Bedrock provider (#499)
Browse files Browse the repository at this point in the history
* Adds new parameters

* Updates LangChain to newest version

* Moves chat models to BedrockChat provider

* Moves llama2 chat models back to BedrockProvider
  • Loading branch information
JasonWeill authored Dec 8, 2023
1 parent 64e6daf commit b71e0ec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/jupyter-ai-magics/jupyter_ai_magics/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,10 @@ class BedrockProvider(BaseProvider, Bedrock):
"amazon.titan-text-express-v1",
"ai21.j2-ultra-v1",
"ai21.j2-mid-v1",
"cohere.command-light-text-v14",
"cohere.command-text-v14",
"meta.llama2-13b-chat-v1",
"meta.llama2-70b-chat-v1",
]
model_id_key = "model_id"
pypi_package_deps = ["boto3"]
Expand All @@ -680,6 +683,7 @@ class BedrockChatProvider(BaseProvider, BedrockChat):
models = [
"anthropic.claude-v1",
"anthropic.claude-v2",
"anthropic.claude-v2:1",
"anthropic.claude-instant-v1",
]
model_id_key = "model_id"
Expand Down
2 changes: 1 addition & 1 deletion packages/jupyter-ai-magics/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dynamic = ["version", "description", "authors", "urls", "keywords"]
dependencies = [
"ipython",
"importlib_metadata>=5.2.0",
"langchain==0.0.318",
"langchain==0.0.346",
"typing_extensions>=4.5.0",
"click~=8.0",
"jsonpath-ng>=1.5.3,<2",
Expand Down
2 changes: 1 addition & 1 deletion packages/jupyter-ai/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies = [
"openai~=0.26",
"aiosqlite>=0.18",
"importlib_metadata>=5.2.0",
"langchain==0.0.318",
"langchain==0.0.346",
"tiktoken", # required for OpenAIEmbeddings
"jupyter_ai_magics",
"dask[distributed]",
Expand Down

0 comments on commit b71e0ec

Please sign in to comment.