Together is an AI company that develops large language models (LLMs). It provides various platforms and models, such as OpenChatKit, RedPajama, and GPT-JT, to empower developers and researchers in the field of natural language processing (NLP). Together's focus is on open-source AI research and infrastructure, enabling collaboration and innovation in the rapidly growing AI landscape.
togetherai
const { LLMInterface } = require('llm-interface');
LLMInterface.setApiKey({'togetherai': process.env.TOGETHERAI_API_KEY});
async function main() {
try {
const response = await LLMInterface.sendMessage('togetherai', '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
: google/gemma-7blarge
: mistralai/Mixtral-8x22Bsmall
: google/gemma-2bagent
: Qwen/Qwen1.5-14B
default
: bert-base-uncasedlarge
: BAAI/bge-large-en-v1.5small
: BAAI/bge-base-en-v1.5
The following parameters can be passed through options
.
max_tokens
: Details not available, please refer to the LLM provider documentation.response_format
: 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_choice
: Details not available, please refer to the LLM provider documentation.tools
: Details not available, please refer to the LLM provider documentation.
- Native JSON Mode
- Streaming
- Tools
- Embeddings
Commercial with Free Trial: The Together AI API is a commercial product but offers a $5.00 credit to get started. No credit card is required initially.
To get an API key, first create a Together AI account, then visit the link below.
Together AI documentation is available here.