Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
7 changes: 5 additions & 2 deletions .github/workflows/check-python-code-snippets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,16 @@ on:
jobs:
run:
runs-on: ubuntu-latest
permissions: write-all
permissions:
contents: read

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
# Fork PRs: head branch exists only on the fork; use head repo + SHA.
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.sha }}

- name: Set up Python
uses: actions/setup-python@v4
Expand Down
33 changes: 30 additions & 3 deletions fern/pages/deployment-options/cohere-works-everywhere.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The table below summarizes the environments in which Cohere models can be deploy
| sdk | [Cohere platform](/reference/about) | [Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters-cohere.html) | Sagemaker | Azure | OCI | Private Deployment |
| ------------------------------------------------------------ | ---------------------------------------------------------- | -------------------------------------------------------------------------------------------- | ------------------------------- | --------------------------- | -------------------------- | ------------------------------ |
| [Typescript](https://github.com/cohere-ai/cohere-typescript) | [✅ docs](#cohere-platform) | [✅ docs](#bedrock) | [✅ docs](#sagemaker) | [✅ docs](#azure) | [🟠 soon]() | [✅ docs](#private-deployment) |
| [Python](https://github.com/cohere-ai/cohere-python) | [✅ docs](#cohere-platform) | [✅ docs](#bedrock) | [✅ docs](#sagemaker) | [✅ docs](#azure) | [🟠 soon]() | [✅ docs](#private-deployment) |
| [Python](https://github.com/cohere-ai/cohere-python) | [✅ docs](#cohere-platform) | [✅ docs](#bedrock) | [✅ docs](#sagemaker) | [✅ docs](#azure) | [✅ docs](#oci) | [✅ docs](#private-deployment) |
| [Go](https://github.com/cohere-ai/cohere-go) | [✅ docs](#cohere-platform) | [🟠 soon](#bedrock) | [🟠 soon](#sagemaker) | [✅ docs](#azure) | [🟠 soon](#) | [✅ docs](#private-deployment) |
| [Java](https://github.com/cohere-ai/cohere-java) | [✅ docs](#cohere-platform) | [🟠 soon](#bedrock) | [🟠 soon](#sagemaker) | [✅ docs](#azure) | [🟠 soon]() | [✅ docs](#private-deployment) |

Expand All @@ -35,8 +35,8 @@ The most complete set of features is found on the cohere platform, while each of
| --------------- | --------------- | ----------- | ----------- | ----------- | ----------- | -------------- |
| chat_stream | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| chat | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| generate_stream | ✅ | ✅ | ✅ | ✅ | | ✅ |
| generate | ✅ | ✅ | ✅ | ✅ | | ✅ |
| generate_stream | ✅ | ✅ | ✅ | ✅ | ⬜️ | ✅ |
| generate | ✅ | ✅ | ✅ | ✅ | ⬜️ | ✅ |
| embed | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| rerank | ✅ | ✅ | ✅ | ✅ | ⬜️ | ✅ |
| classify | ✅ | ⬜️ | ⬜️ | ⬜️ | ⬜️ | ✅ |
Expand Down Expand Up @@ -595,3 +595,30 @@ public class ChatPost {
}
```
</CodeBlocks>

#### OCI

<CodeBlocks>
```python PYTHON
import cohere

co = cohere.OciClient(
oci_region="us-chicago-1",
oci_compartment_id="ocid1.compartment.oc1...",
)

response = co.chat(
model="command-r-plus-08-2024",
chat_history=[
{"role": "USER", "message": "Who discovered gravity?"},
{
"role": "CHATBOT",
"message": "The man who is widely credited with discovering gravity is Sir Isaac Newton",
},
],
message="What year was he born?",
)

print(response)
```
</CodeBlocks>
Loading
Loading