Skip to content

Commit c22dbfb

Browse files
committed
fix: harden OCI client and preserve dual-client support
1 parent 47c9d5f commit c22dbfb

6 files changed

Lines changed: 577 additions & 195 deletions

File tree

.fernignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ src/cohere/manually_maintained/__init__.py
1515
src/cohere/bedrock_client.py
1616
src/cohere/aws_client.py
1717
src/cohere/sagemaker_client.py
18+
src/cohere/oci_client.py
1819
src/cohere/client_v2.py
1920
mypy.ini
20-
src/cohere/aliases.py
21+
src/cohere/aliases.py

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,21 +140,21 @@ co = cohere.OciClient(
140140
### Supported OCI APIs
141141

142142
The OCI client supports the following Cohere APIs:
143-
- **Embed**: Full support for all embedding models (embed-english-v3.0, embed-light-v3.0, embed-multilingual-v3.0)
143+
- **Embed**: Full support for all embedding models (embed-english-v3.0, embed-english-light-v3.0, embed-multilingual-v3.0)
144144
- **Chat**: Full support with both V1 (`OciClient`) and V2 (`OciClientV2`) APIs
145145
- Streaming available via `chat_stream()`
146146
- Supports Command-R and Command-A model families
147147

148148
### OCI Model Availability and Limitations
149149

150150
**Available on OCI On-Demand Inference:**
151-
- **Embed models**: embed-english-v3.0, embed-light-v3.0, embed-multilingual-v3.0
152-
- **Chat models**: command-r-08-2024, command-r-plus, command-a-03-2025
151+
- **Embed models**: embed-english-v3.0, embed-english-light-v3.0, embed-multilingual-v3.0
152+
- **Chat models**: command-r-08-2024, command-r-plus, command-a-03-2025
153153

154154
**Not Available on OCI On-Demand Inference:**
155-
- **Generate API**: OCI TEXT_GENERATION models are base models that require fine-tuning before deployment
156-
- **Rerank API**: OCI TEXT_RERANK models are base models that require fine-tuning before deployment
157-
- **Multiple Embedding Types**: OCI on-demand models only support single embedding type per request (cannot request both `float` and `int8` simultaneously)
155+
- **Generate API**: OCI TEXT_GENERATION models are base models that require fine-tuning before deployment
156+
- **Rerank API**: OCI TEXT_RERANK models are base models that require fine-tuning before deployment
157+
- **Multiple Embedding Types**: OCI on-demand models only support single embedding type per request (cannot request both `float` and `int8` simultaneously)
158158

159159
**Note**: To use Generate or Rerank models on OCI, you need to:
160160
1. Fine-tune the base model using OCI's fine-tuning service

0 commit comments

Comments
 (0)