Skip to content

Commit 1cdb064

Browse files
committed
docs: update cohere-works-everywhere (v1) with OCI SDK support
- Change OCI Python from "soon" to "docs" in supported environments - Fix generate/generate_stream as unsupported on OCI - Add OCI V1 code snippet section
1 parent a7eeea6 commit 1cdb064

1 file changed

Lines changed: 30 additions & 3 deletions

File tree

fern/pages/deployment-options/cohere-works-everywhere.mdx

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The table below summarizes the environments in which Cohere models can be deploy
2323
| sdk | [Cohere platform](/reference/about) | [Bedrock](https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters-cohere.html) | Sagemaker | Azure | OCI | Private Deployment |
2424
| ------------------------------------------------------------ | ---------------------------------------------------------- | -------------------------------------------------------------------------------------------- | ------------------------------- | --------------------------- | -------------------------- | ------------------------------ |
2525
| [Typescript](https://github.com/cohere-ai/cohere-typescript) | [✅ docs](#cohere-platform) | [✅ docs](#bedrock) | [✅ docs](#sagemaker) | [✅ docs](#azure) | [🟠 soon]() | [✅ docs](#private-deployment) |
26-
| [Python](https://github.com/cohere-ai/cohere-python) | [✅ docs](#cohere-platform) | [✅ docs](#bedrock) | [✅ docs](#sagemaker) | [✅ docs](#azure) | [🟠 soon]() | [✅ docs](#private-deployment) |
26+
| [Python](https://github.com/cohere-ai/cohere-python) | [✅ docs](#cohere-platform) | [✅ docs](#bedrock) | [✅ docs](#sagemaker) | [✅ docs](#azure) | [✅ docs](#oci) | [✅ docs](#private-deployment) |
2727
| [Go](https://github.com/cohere-ai/cohere-go) | [✅ docs](#cohere-platform) | [🟠 soon](#bedrock) | [🟠 soon](#sagemaker) | [✅ docs](#azure) | [🟠 soon](#) | [✅ docs](#private-deployment) |
2828
| [Java](https://github.com/cohere-ai/cohere-java) | [✅ docs](#cohere-platform) | [🟠 soon](#bedrock) | [🟠 soon](#sagemaker) | [✅ docs](#azure) | [🟠 soon]() | [✅ docs](#private-deployment) |
2929

@@ -35,8 +35,8 @@ The most complete set of features is found on the cohere platform, while each of
3535
| --------------- | --------------- | ----------- | ----------- | ----------- | ----------- | -------------- |
3636
| chat_stream |||||||
3737
| chat |||||||
38-
| generate_stream ||||| ||
39-
| generate ||||| ||
38+
| generate_stream ||||| ⬜️ ||
39+
| generate ||||| ⬜️ ||
4040
| embed |||||||
4141
| rerank ||||| ⬜️ ||
4242
| classify || ⬜️ | ⬜️ | ⬜️ | ⬜️ ||
@@ -595,3 +595,30 @@ public class ChatPost {
595595
}
596596
```
597597
</CodeBlocks>
598+
599+
#### OCI
600+
601+
<CodeBlocks>
602+
```python PYTHON
603+
import cohere
604+
605+
co = cohere.OciClient(
606+
oci_region="us-chicago-1",
607+
oci_compartment_id="ocid1.compartment.oc1...",
608+
)
609+
610+
response = co.chat(
611+
model="command-r-plus-08-2024",
612+
chat_history=[
613+
{"role": "USER", "message": "Who discovered gravity?"},
614+
{
615+
"role": "CHATBOT",
616+
"message": "The man who is widely credited with discovering gravity is Sir Isaac Newton",
617+
},
618+
],
619+
message="What year was he born?",
620+
)
621+
622+
print(response)
623+
```
624+
</CodeBlocks>

0 commit comments

Comments
 (0)