Samples
List all models
Filter embedding models
Find default models
Arguments
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
api_key | TEXT | NULL | ✖ | Cohere API key |
api_key_name | TEXT | NULL | ✖ | Name of secret containing the API key |
endpoint | TEXT | NULL | ✖ | Filter by endpoint type (e.g., embed, rerank, chat) |
default_only | BOOL | NULL | ✖ | Show only default models |
verbose | BOOLEAN | FALSE | ✖ | Enable verbose logging |
Returns
TABLE: A table with the following columns:
| Column | Type | Description |
|---|---|---|
name | TEXT | Model name |
endpoints | TEXT[] | Supported endpoints (embed, rerank, chat, etc.) |
finetuned | BOOL | Whether the model is fine-tuned |
context_length | INT | Maximum context length in tokens |
tokenizer_url | TEXT | URL to the tokenizer |
default_endpoints | TEXT[] | Endpoints where this is the default model |
Related functions
cohere_embed(): generate embeddingscohere_chat_complete(): chat with Cohere models