Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 12, 2024
1 parent 7c6695d commit aaec540
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,7 @@ class QianfanEmbeddingsEndpointProvider(
auth_strategy = MultiEnvAuthStrategy(names=["QIANFAN_AK", "QIANFAN_SK"])


class NVIDIAEmbeddingsProvider(BaseEmbeddingsProvider, NVIDIAEmbeddings
):
class NVIDIAEmbeddingsProvider(BaseEmbeddingsProvider, NVIDIAEmbeddings):
id = "nvidia"
name = "NVIDIA"
models = ["playground_nvolveqa_40k"]
Expand Down
26 changes: 14 additions & 12 deletions packages/jupyter-ai-magics/jupyter_ai_magics/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ class ChatAnthropicProvider(BaseProvider, ChatAnthropic):
def allows_concurrency(self):
return False


class CohereProvider(BaseProvider, Cohere):
id = "cohere"
name = "Cohere"
Expand Down Expand Up @@ -775,17 +776,18 @@ class QianfanProvider(BaseProvider, QianfanChatEndpoint):
class ChatNVIDIAProvider(BaseProvider, ChatNVIDIA):
id = "nvidia-chat"
name = "NVIDIA"
models = ['playground_llama2_70b',
'playground_nemotron_steerlm_8b',
'playground_mistral_7b',
'playground_nv_llama2_rlhf_70b',
'playground_llama2_13b',
'playground_steerlm_llama_70b',
'playground_llama2_code_13b',
'playground_yi_34b',
'playground_mixtral_8x7b',
'playground_neva_22b',
'playground_llama2_code_34b'
]
models = [
"playground_llama2_70b",
"playground_nemotron_steerlm_8b",
"playground_mistral_7b",
"playground_nv_llama2_rlhf_70b",
"playground_llama2_13b",
"playground_steerlm_llama_70b",
"playground_llama2_code_13b",
"playground_yi_34b",
"playground_mixtral_8x7b",
"playground_neva_22b",
"playground_llama2_code_34b",
]
model_id_key = "model"
auth_strategy = EnvAuthStrategy(name="NVIDIA_API_KEY")

0 comments on commit aaec540

Please sign in to comment.