ICO-YQ opened a new issue, #12922: URL: https://github.com/apache/apisix/issues/12922
### Description Only the following methods of forwarding are supported 1、curl -X POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions \ -H "Authorization: Bearer $DASHSCOPE_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "qwen-plus", "messages": [ { "role": "user", "content": "你是谁?" } ] }' 2、If invoked in the OpenAI manner, there is no way to handle it. client = OpenAI( api_key=os.getenv("DASHSCOPE_API_KEY"), base_url="https://dashscope.aliyuncs.com/compatible-mode/v1", ) completion = client.chat.completions.create( model="qwen-plus", messages=[{'role': 'user', 'content': '你是谁?'}] ) print(completion.choices[0].message.content) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
