Cohere
Cohere: Command
cohere/command
Command is an instruction-following conversational model that performs language tasks with high quality, more reliably and with a longer context than our base generative models.
Use of this model is subject to Cohere's Acceptable Use Policy.
Community
Open Source
Context Window
4,096
Using Cohere: Command with Python API
Using Cohere: Command 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",
messages: [
{
role: 'user',
content:
'introduce your self',
},
]
)
print(response)