镜像自地址
https://github.com/binary-husky/gpt_academic.git
已同步 2025-12-07 06:56:48 +00:00
fix qwen api change
这个提交包含在:
@@ -48,6 +48,10 @@ class QwenRequestInstance():
|
|||||||
for response in responses:
|
for response in responses:
|
||||||
if response.status_code == HTTPStatus.OK:
|
if response.status_code == HTTPStatus.OK:
|
||||||
if response.output.choices[0].finish_reason == 'stop':
|
if response.output.choices[0].finish_reason == 'stop':
|
||||||
|
try:
|
||||||
|
self.result_buf += response.output.choices[0].message.content
|
||||||
|
except:
|
||||||
|
pass
|
||||||
yield self.result_buf
|
yield self.result_buf
|
||||||
break
|
break
|
||||||
elif response.output.choices[0].finish_reason == 'length':
|
elif response.output.choices[0].finish_reason == 'length':
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户