Wrapper around Ali Tongyi large language models that use the Chat endpoint.
To use you should have the ALIBABA_API_KEY environment variable set.
ALIBABA_API_KEY
const qwen = new ChatAlibabaTongyi({ alibabaApiKey: "YOUR-API-KEY",});const qwen = new ChatAlibabaTongyi({ model: "qwen-turbo", temperature: 1, alibabaApiKey: "YOUR-API-KEY",});const messages = [new HumanMessage("Hello")];await qwen.call(messages); Copy
const qwen = new ChatAlibabaTongyi({ alibabaApiKey: "YOUR-API-KEY",});const qwen = new ChatAlibabaTongyi({ model: "qwen-turbo", temperature: 1, alibabaApiKey: "YOUR-API-KEY",});const messages = [new HumanMessage("Hello")];await qwen.call(messages);
Wrapper around Ali Tongyi large language models that use the Chat endpoint.
To use you should have the
ALIBABA_API_KEY
environment variable set.Example