Cohere
Cohere: Command R
cohere/command-r
Command-R is a 35B parameter model that performs conversational language tasks at a higher quality, more reliably, and with a longer context than previous models. It can be used for complex workflows like code generation, retrieval augmented generation (RAG), tool use, and agents.
Read the launch post here.
Use of this model is subject to Cohere's Acceptable Use Policy.
Tools
Function Calling
Community
Open Source
Context Window
128,000
Using Cohere: Command R with Python API
Using Cohere: Command R with OpenAI compatible API
import openai
client = openai.Client(
api_key= '{your_api_key}',
base_url="https://api.model.box/v1",
)
response = client.chat.completions.create(
model="cohere/command-r",
messages: [
{
role: 'user',
content:
'introduce your self',
},
]
)
print(response)