Alibaba Cloud
The alibaba
provider access the Alibaba Cloud models.
script({ model: "alibaba:qwen-max",})
Sign up for a Alibaba Cloud account and obtain an API key from their console.
Add your Alibaba API key to the
.env
file:.env ALIBABA_API_KEY=sk_...Find the model that best suits your needs by visiting the Alibaba models.
Update your script to use the
model
you choose.script({...model: "alibaba:qwen-max",})
Aliases
The following model aliases are attempted by default in GenAIScript.
Alias | Model identifier |
---|---|
large | qwen-max |
small | qwen-turbo |
long | qwen-plus |
embeddings | text-embedding-v3 |
Limitations
- Uses OpenAI compatibility layer
- listModels
- Ignore prediction of output tokens
- Tools implemented as fallback tools automatically.