Skip to content

Commit 6adf303

Browse files
sijanonlyKludex
andauthored
docs: Replace deprecated Cohere model 'command' with 'command-r7b-12-… (#3201)
Co-authored-by: Marcelo Trylesinski <[email protected]>
1 parent 7f43968 commit 6adf303

File tree

3 files changed

+4
-18
lines changed

3 files changed

+4
-18
lines changed

docs/models/cohere.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ You can then use `CohereModel` by name:
2727
```python
2828
from pydantic_ai import Agent
2929

30-
agent = Agent('cohere:command')
30+
agent = Agent('cohere:command-r7b-12-2024')
3131
...
3232
```
3333

@@ -37,7 +37,7 @@ Or initialise the model directly with just the model name:
3737
from pydantic_ai import Agent
3838
from pydantic_ai.models.cohere import CohereModel
3939

40-
model = CohereModel('command')
40+
model = CohereModel('command-r7b-12-2024')
4141
agent = Agent(model)
4242
...
4343
```
@@ -51,7 +51,7 @@ from pydantic_ai import Agent
5151
from pydantic_ai.models.cohere import CohereModel
5252
from pydantic_ai.providers.cohere import CohereProvider
5353

54-
model = CohereModel('command', provider=CohereProvider(api_key='your-api-key'))
54+
model = CohereModel('command-r7b-12-2024', provider=CohereProvider(api_key='your-api-key'))
5555
agent = Agent(model)
5656
...
5757
```
@@ -67,7 +67,7 @@ from pydantic_ai.providers.cohere import CohereProvider
6767

6868
custom_http_client = AsyncClient(timeout=30)
6969
model = CohereModel(
70-
'command',
70+
'command-r7b-12-2024',
7171
provider=CohereProvider(api_key='your-api-key', http_client=custom_http_client),
7272
)
7373
agent = Agent(model)

pydantic_ai_slim/pydantic_ai/models/__init__.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,8 @@
129129
'cerebras:qwen-3-235b-a22b-thinking-2507',
130130
'cohere:c4ai-aya-expanse-32b',
131131
'cohere:c4ai-aya-expanse-8b',
132-
'cohere:command',
133-
'cohere:command-light',
134-
'cohere:command-light-nightly',
135132
'cohere:command-nightly',
136-
'cohere:command-r',
137-
'cohere:command-r-03-2024',
138133
'cohere:command-r-08-2024',
139-
'cohere:command-r-plus',
140-
'cohere:command-r-plus-04-2024',
141134
'cohere:command-r-plus-08-2024',
142135
'cohere:command-r7b-12-2024',
143136
'deepseek:deepseek-chat',

pydantic_ai_slim/pydantic_ai/models/cohere.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,8 @@
6262
LatestCohereModelNames = Literal[
6363
'c4ai-aya-expanse-32b',
6464
'c4ai-aya-expanse-8b',
65-
'command',
66-
'command-light',
67-
'command-light-nightly',
6865
'command-nightly',
69-
'command-r',
70-
'command-r-03-2024',
7166
'command-r-08-2024',
72-
'command-r-plus',
73-
'command-r-plus-04-2024',
7467
'command-r-plus-08-2024',
7568
'command-r7b-12-2024',
7669
]

0 commit comments

Comments
 (0)