Wrapper around TogetherAI API for large language models fine-tuned for chat
TogetherAI API is compatible to the OpenAI API with some limitations. View the full API ref at:
To use, you should have the TOGETHER_AI_API_KEY environment variable set.
TOGETHER_AI_API_KEY
const model = new ChatTogetherAI({ temperature: 0.9, apiKey: process.env.TOGETHER_AI_API_KEY,});const response = await model.invoke([new HumanMessage("Hello there!")]);console.log(response); Copy
const model = new ChatTogetherAI({ temperature: 0.9, apiKey: process.env.TOGETHER_AI_API_KEY,});const response = await model.invoke([new HumanMessage("Hello there!")]);console.log(response);
Optional
Wrapper around TogetherAI API for large language models fine-tuned for chat
TogetherAI API is compatible to the OpenAI API with some limitations. View the full API ref at:
Link
To use, you should have the
TOGETHER_AI_API_KEY
environment variable set.Example