Skip to content

Commit dce828c

Browse files
Sync Core Integrations API reference (cohere) on Docusaurus (#10143)
Co-authored-by: vblagoje <[email protected]>
1 parent 1a40d9e commit dce828c

File tree

4 files changed

+16
-16
lines changed
  • docs-website

4 files changed

+16
-16
lines changed

docs-website/reference/integrations-api/cohere.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ generator.run(prompt="What's the capital of France?")
568568
```python
569569
def __init__(api_key: Secret = Secret.from_env_var(
570570
["COHERE_API_KEY", "CO_API_KEY"]),
571-
model: str = "command-r-08-2024",
571+
model: str = "command-a-03-2025",
572572
streaming_callback: Optional[Callable] = None,
573573
api_base_url: Optional[str] = None,
574574
**kwargs: Any)
@@ -660,7 +660,7 @@ from haystack.dataclasses import ChatMessage
660660
from haystack.utils import Secret
661661
from haystack_integrations.components.generators.cohere import CohereChatGenerator
662662

663-
client = CohereChatGenerator(model="command-r-08-2024", api_key=Secret.from_env_var("COHERE_API_KEY"))
663+
client = CohereChatGenerator(api_key=Secret.from_env_var("COHERE_API_KEY"))
664664
messages = [ChatMessage.from_user("What's Natural Language Processing?")]
665665
client.run(messages)
666666

@@ -720,7 +720,7 @@ weather_tool = Tool(
720720

721721
# Create and set up the pipeline
722722
pipeline = Pipeline()
723-
pipeline.add_component("generator", CohereChatGenerator(model="command-r-08-2024", tools=[weather_tool]))
723+
pipeline.add_component("generator", CohereChatGenerator(tools=[weather_tool]))
724724
pipeline.add_component("tool_invoker", ToolInvoker(tools=[weather_tool]))
725725
pipeline.connect("generator", "tool_invoker")
726726

@@ -741,7 +741,7 @@ print(results["tool_invoker"]["tool_messages"][0].tool_call_result.result)
741741
```python
742742
def __init__(api_key: Secret = Secret.from_env_var(
743743
["COHERE_API_KEY", "CO_API_KEY"]),
744-
model: str = "command-r-08-2024",
744+
model: str = "command-a-03-2025",
745745
streaming_callback: Optional[StreamingCallbackT] = None,
746746
api_base_url: Optional[str] = None,
747747
generation_kwargs: Optional[dict[str, Any]] = None,

docs-website/reference_versioned_docs/version-2.18/integrations-api/cohere.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ generator.run(prompt="What's the capital of France?")
568568
```python
569569
def __init__(api_key: Secret = Secret.from_env_var(
570570
["COHERE_API_KEY", "CO_API_KEY"]),
571-
model: str = "command-r-08-2024",
571+
model: str = "command-a-03-2025",
572572
streaming_callback: Optional[Callable] = None,
573573
api_base_url: Optional[str] = None,
574574
**kwargs: Any)
@@ -660,7 +660,7 @@ from haystack.dataclasses import ChatMessage
660660
from haystack.utils import Secret
661661
from haystack_integrations.components.generators.cohere import CohereChatGenerator
662662

663-
client = CohereChatGenerator(model="command-r-08-2024", api_key=Secret.from_env_var("COHERE_API_KEY"))
663+
client = CohereChatGenerator(api_key=Secret.from_env_var("COHERE_API_KEY"))
664664
messages = [ChatMessage.from_user("What's Natural Language Processing?")]
665665
client.run(messages)
666666

@@ -720,7 +720,7 @@ weather_tool = Tool(
720720

721721
# Create and set up the pipeline
722722
pipeline = Pipeline()
723-
pipeline.add_component("generator", CohereChatGenerator(model="command-r-08-2024", tools=[weather_tool]))
723+
pipeline.add_component("generator", CohereChatGenerator(tools=[weather_tool]))
724724
pipeline.add_component("tool_invoker", ToolInvoker(tools=[weather_tool]))
725725
pipeline.connect("generator", "tool_invoker")
726726

@@ -741,7 +741,7 @@ print(results["tool_invoker"]["tool_messages"][0].tool_call_result.result)
741741
```python
742742
def __init__(api_key: Secret = Secret.from_env_var(
743743
["COHERE_API_KEY", "CO_API_KEY"]),
744-
model: str = "command-r-08-2024",
744+
model: str = "command-a-03-2025",
745745
streaming_callback: Optional[StreamingCallbackT] = None,
746746
api_base_url: Optional[str] = None,
747747
generation_kwargs: Optional[dict[str, Any]] = None,

docs-website/reference_versioned_docs/version-2.19/integrations-api/cohere.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ generator.run(prompt="What's the capital of France?")
568568
```python
569569
def __init__(api_key: Secret = Secret.from_env_var(
570570
["COHERE_API_KEY", "CO_API_KEY"]),
571-
model: str = "command-r-08-2024",
571+
model: str = "command-a-03-2025",
572572
streaming_callback: Optional[Callable] = None,
573573
api_base_url: Optional[str] = None,
574574
**kwargs: Any)
@@ -660,7 +660,7 @@ from haystack.dataclasses import ChatMessage
660660
from haystack.utils import Secret
661661
from haystack_integrations.components.generators.cohere import CohereChatGenerator
662662

663-
client = CohereChatGenerator(model="command-r-08-2024", api_key=Secret.from_env_var("COHERE_API_KEY"))
663+
client = CohereChatGenerator(api_key=Secret.from_env_var("COHERE_API_KEY"))
664664
messages = [ChatMessage.from_user("What's Natural Language Processing?")]
665665
client.run(messages)
666666

@@ -720,7 +720,7 @@ weather_tool = Tool(
720720

721721
# Create and set up the pipeline
722722
pipeline = Pipeline()
723-
pipeline.add_component("generator", CohereChatGenerator(model="command-r-08-2024", tools=[weather_tool]))
723+
pipeline.add_component("generator", CohereChatGenerator(tools=[weather_tool]))
724724
pipeline.add_component("tool_invoker", ToolInvoker(tools=[weather_tool]))
725725
pipeline.connect("generator", "tool_invoker")
726726

@@ -741,7 +741,7 @@ print(results["tool_invoker"]["tool_messages"][0].tool_call_result.result)
741741
```python
742742
def __init__(api_key: Secret = Secret.from_env_var(
743743
["COHERE_API_KEY", "CO_API_KEY"]),
744-
model: str = "command-r-08-2024",
744+
model: str = "command-a-03-2025",
745745
streaming_callback: Optional[StreamingCallbackT] = None,
746746
api_base_url: Optional[str] = None,
747747
generation_kwargs: Optional[dict[str, Any]] = None,

docs-website/reference_versioned_docs/version-2.20/integrations-api/cohere.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ generator.run(prompt="What's the capital of France?")
568568
```python
569569
def __init__(api_key: Secret = Secret.from_env_var(
570570
["COHERE_API_KEY", "CO_API_KEY"]),
571-
model: str = "command-r-08-2024",
571+
model: str = "command-a-03-2025",
572572
streaming_callback: Optional[Callable] = None,
573573
api_base_url: Optional[str] = None,
574574
**kwargs: Any)
@@ -660,7 +660,7 @@ from haystack.dataclasses import ChatMessage
660660
from haystack.utils import Secret
661661
from haystack_integrations.components.generators.cohere import CohereChatGenerator
662662

663-
client = CohereChatGenerator(model="command-r-08-2024", api_key=Secret.from_env_var("COHERE_API_KEY"))
663+
client = CohereChatGenerator(api_key=Secret.from_env_var("COHERE_API_KEY"))
664664
messages = [ChatMessage.from_user("What's Natural Language Processing?")]
665665
client.run(messages)
666666

@@ -720,7 +720,7 @@ weather_tool = Tool(
720720

721721
# Create and set up the pipeline
722722
pipeline = Pipeline()
723-
pipeline.add_component("generator", CohereChatGenerator(model="command-r-08-2024", tools=[weather_tool]))
723+
pipeline.add_component("generator", CohereChatGenerator(tools=[weather_tool]))
724724
pipeline.add_component("tool_invoker", ToolInvoker(tools=[weather_tool]))
725725
pipeline.connect("generator", "tool_invoker")
726726

@@ -741,7 +741,7 @@ print(results["tool_invoker"]["tool_messages"][0].tool_call_result.result)
741741
```python
742742
def __init__(api_key: Secret = Secret.from_env_var(
743743
["COHERE_API_KEY", "CO_API_KEY"]),
744-
model: str = "command-r-08-2024",
744+
model: str = "command-a-03-2025",
745745
streaming_callback: Optional[StreamingCallbackT] = None,
746746
api_base_url: Optional[str] = None,
747747
generation_kwargs: Optional[dict[str, Any]] = None,

0 commit comments

Comments
 (0)