Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/backend/model_deployments/cohere_platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@ class CohereDeployment(BaseDeployment):
"""Cohere Platform Deployment."""

client_name = "cohere-toolkit"
api_key = None
api_key = get_model_config_var(COHERE_API_KEY_ENV_VAR)

def __init__(self, **kwargs: Any):
# Override the environment variable from the request
self.api_key = get_model_config_var(COHERE_API_KEY_ENV_VAR, **kwargs)
self.client = cohere.Client(api_key=self.api_key, client_name=self.client_name)

@property
Expand Down
223 changes: 208 additions & 15 deletions src/interfaces/coral_web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/interfaces/coral_web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"react-popper": "^2.3.0",
"react-scroll-to-bottom": "^4.2.0",
"react-syntax-highlighter": "^15.5.0",
"rehype-highlight": "^7.0.0",
"rehype-highlight": "6.0.0",
"rehype-katex": "^7.0.0",
"rehype-raw": "^7.0.0",
"remark": "^15.0.1",
Expand Down Expand Up @@ -89,4 +89,4 @@
"prettier": "2.8.7",
"prettier-plugin-tailwindcss": "0.4.1"
}
}
}
Loading