netease-youdao / QAnything

Question and Answer based on Anything.
https://qanything.ai
GNU Affero General Public License v3.0
11.84k stars 1.15k forks source link

如何配置接入Qwen的 llm-api #132

Closed warrenwangxd closed 8 months ago

warrenwangxd commented 8 months ago

接入openai 的api成本较高,国内阿里云的Qwen-api价格较低,且效果也还OK,该如何接入呢?

songkq commented 8 months ago

Try to implement a similar LLM interface to replace the OpenAILLM https://github.com/netease-youdao/QAnything/blob/f435b125016bcbc7c22582aa730f54ce0d4a33df/qanything_kernel/connector/llm/llm_for_openai_api.py#L27

ssbg2 commented 7 months ago

接入openai 的api成本较高,国内阿里云的Qwen-api价格较低,且效果也还OK,该如何接入呢?

您好,您这部分有继续尝试么?