Cohere¶
Setup¶
Model prefix¶
Always prefix with cohere/:
completion("cohere/command-r-plus", messages)
completion("cohere/command-r", messages)
completion("cohere/command-a-03-2025", messages)
Embeddings¶
Cohere has excellent embedding models:
from llmgate import embed
resp = embed("cohere/embed-english-v3.0", "Hello world")
resp = embed("cohere/embed-multilingual-v3.0", "Bonjour monde")
Vision¶
Not supported
Cohere's vision API is not yet stable. Passing image content to a Cohere model raises VisionNotSupported.