Qwen api support? #3032
Unanswered
Beatrice052
asked this question in
Q&A
Replies: 2 comments
|
While mem0 doesn't have a dedicated Option 1 — Using the config = {
"llm": {
"provider": "openai",
"config": {
"model": "qwen-plus", # or qwen-max, qwen-turbo, etc.
"api_key": "your-dashscope-api-key",
"openai_base_url": "https://dashscope.aliyuncs.com/compatible-mode/v1",
},
},
"embedder": {
"provider": "openai",
"config": {
"model": "text-embedding-v3",
"api_key": "your-dashscope-api-key",
"openai_base_url": "https://dashscope.aliyuncs.com/compatible-mode/v1",
},
},
}Qwen (via Alibaba Cloud DashScope) provides an OpenAI-compatible endpoint, so the Option 2 — Using the config = {
"llm": {
"provider": "litellm",
"config": {
"model": "openai/qwen-plus",
"api_key": "your-dashscope-api-key",
"api_base": "https://dashscope.aliyuncs.com/compatible-mode/v1",
},
},
}Install litellm first: See the supported providers list: https://docs.mem0.ai/components/llms/overview |
0 replies
|
Good question |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi! Currently mem0 doesn't support using qwen api, can the team support qwen api in mem0 later? Or how can I use qwen api in mem0?
All reactions