Cohere provides enterprise-grade language models including Command R+ with strong multilingual capabilities and retrieval-augmented generation.Model Class:CohereModel
Authentication
export CO_API_KEY="..."
Examples
from upsonic import Agent, Taskfrom upsonic.models.cohere import CohereModelmodel = CohereModel(model_name="command-r-plus")agent = Agent(model=model)task = Task("Hello, how are you?")result = agent.do(task)print(result)
Model Settings
You can set model parameters in two ways: on the model or on the Agent.On the model: