File tree Expand file tree Collapse file tree 3 files changed +4
-18
lines changed
pydantic_ai_slim/pydantic_ai/models Expand file tree Collapse file tree 3 files changed +4
-18
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ You can then use `CohereModel` by name:
2727``` python
2828from 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:
3737from pydantic_ai import Agent
3838from pydantic_ai.models.cohere import CohereModel
3939
40- model = CohereModel(' command' )
40+ model = CohereModel(' command-r7b-12-2024 ' )
4141agent = Agent(model)
4242...
4343```
@@ -51,7 +51,7 @@ from pydantic_ai import Agent
5151from pydantic_ai.models.cohere import CohereModel
5252from 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' ))
5555agent = Agent(model)
5656...
5757```
@@ -67,7 +67,7 @@ from pydantic_ai.providers.cohere import CohereProvider
6767
6868custom_http_client = AsyncClient(timeout = 30 )
6969model = CohereModel(
70- ' command' ,
70+ ' command-r7b-12-2024 ' ,
7171 provider = CohereProvider(api_key = ' your-api-key' , http_client = custom_http_client),
7272)
7373agent = Agent(model)
Original file line number Diff line number Diff line change 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' ,
Original file line number Diff line number Diff line change 6262LatestCohereModelNames = 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]
You can’t perform that action at this time.
0 commit comments