Download the PHP package aisdk/cohere without Composer
On this page you can find all versions of the php package aisdk/cohere. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor aisdk
Package cohere
Short Description Official Cohere provider for the PHP AI SDK.
License MIT
Homepage https://github.com/phpaisdk/cohere
Package cohere
Short Description Official Cohere provider for the PHP AI SDK.
License MIT
Homepage https://github.com/phpaisdk/cohere
Please rate this library. Is it a good library?
Informations about the package cohere
aisdk/cohere
Official Cohere provider for the PHP AI SDK. Uses Cohere's native v2 Chat and Embed APIs.
Installation
Basic Usage
Embeddings
Configuration
| Variable | Description | Default |
|---|---|---|
COHERE_API_KEY |
API key for authentication | Required |
COHERE_BASE_URL |
Base URL for API requests | https://api.cohere.com |
Supported Capabilities
| Capability | Support |
|---|---|
| Text generation and streaming | Native v2 Chat API |
| Tools, structured output, reasoning, image input | Native where supported by the selected model |
| Embeddings | Native v2 Embed API |
Use providerOptions('cohere', ['raw' => [...]]) for Cohere fields outside the portable SDK surface. Model IDs are opaque strings and are validated by Cohere.
Documentation
All versions of cohere with dependencies
PHP Build Version
Package Version
The package aisdk/cohere contains the following files
Loading the files please wait ...