Cohere¶
Setup¶
Get your API key from the Cohere Dashboard, and export it as an environment variable:
Examples¶
from toolfront import Database
db = Database("postgresql://user:pass@host/db")
# Latest Command R+ version
result = db.ask(..., model="cohere:command-r-plus")
# Pinned Command R+ version
result = db.ask(..., model="cohere:command-r-plus-08-2024")
Cohere Model Names
Always specify a Cohere model with the cohere:
prefix.