Trial Keys Available: Cohere is an AI company specializing in large language models (LLMs) designed for enterprise use. They offer a platform that allows developers to leverage pre-built models or create custom models tailored to specific business needs. Cohere's technology empowers businesses to integrate natural language processing capabilities into their applications, streamlining tasks such as text generation, analysis, and understanding. Their focus on enterprise solutions sets them apart, providing secure and customizable AI tools to improve efficiency and productivity across various industries.
cohere
const { LLMInterface } = require('llm-interface');
LLMInterface.setApiKey({'cohere': process.env.COHERE_API_KEY});
async function main() {
try {
const response = await LLMInterface.sendMessage('cohere', 'Explain the importance of low latency LLMs.');
console.log(response.results);
} catch (error) {
console.error(error);
throw error;
}
}
main();
The following model aliases are provided for this provider.
default
: command-rlarge
: command-r-plussmall
: command-lightagent
: command-r-plus
default
: embed-english-v3.0large
: embed-english-v3.0small
: embed-english-light-v3.0
The following parameters can be passed through options
.
chat_history
: Details not available, please refer to the LLM provider documentation.connectors
: Details not available, please refer to the LLM provider documentation.conversation_id
: Details not available, please refer to the LLM provider documentation.documents
: Details not available, please refer to the LLM provider documentation.force_single_step
: Details not available, please refer to the LLM provider documentation.frequency_penalty
: Details not available, please refer to the LLM provider documentation.k
: Details not available, please refer to the LLM provider documentation.max_input_tokens
: Details not available, please refer to the LLM provider documentation.max_tokens
: Details not available, please refer to the LLM provider documentation.p
: Details not available, please refer to the LLM provider documentation.preamble
: Details not available, please refer to the LLM provider documentation.presence_penalty
: Details not available, please refer to the LLM provider documentation.prompt_truncation
: Details not available, please refer to the LLM provider documentation.seed
: Details not available, please refer to the LLM provider documentation.stop_sequences
: Details not available, please refer to the LLM provider documentation.stream
: Details not available, please refer to the LLM provider documentation.temperature
: Details not available, please refer to the LLM provider documentation.tool_results
: Details not available, please refer to the LLM provider documentation.tools
: Details not available, please refer to the LLM provider documentation.
- Streaming
- Tools
- Embeddings
The Cohere API offers trial keys with rate limits. These keys are not intended for commercial use.
To get an API key, first create a Cohere account, then visit the link below.
Cohere documentation is available here.