VeighNa量化社区
你的开源社区量化交易平台 | vn.py | vnpy
Member
avatar
加入于:
帖子: 1
声望: 0

使用了kimi2.5和2.6的,配置已经配置完了(没有配置代理),然后使用的时候,出现流式请求失败:

错误内容如下:
Traceback (most recent call last):
File "E:\vnpy-4.4.0\veighna_studio-4.4.0\install_loc\Lib\site-packages\vnag\ui\worker.py", line 74, in run
for delta in self.agent.stream(self.prompt):
~~~^^^^^^^^^^^^^
File "E:\vnpy-4.4.0\veighna_studio-4.4.0\install_loc\Lib\site-packages\vnag\agent.py", line 479, in stream
for delta in self.engine.stream(request):
~
~~~^^^^^^^^^
File "E:\vnpy-4.4.0\veighna_studio-4.4.0\install_loc\Lib\site-packages\vnag\gateways\completion_gateway.py", line 280, in stream
stream: Stream[ChatCompletionChunk] = self.client.chat.completions.create(create_params)
~~~~~~~^^^^^^^^^^^^^^^^^
File "E:\vnpy-4.4.0\veighna_studio-4.4.0\install_loc\Lib\site-packages\openai_utils_utils.py", line 298, in wrapper
return func(*args,
kwargs)
File "E:\vnpy-4.4.0\veighna_studio-4.4.0\install_loc\Lib\site-packages\openai\resources\chat\completions\completions.py", line 1215, in create
return self._post(
~~^
"/chat/completions",
^^^^^^^^^^^^^^^^^^^^
...<51 lines>...
stream_cls=Stream[ChatCompletionChunk],
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "E:\vnpy-4.4.0\veighna_studio-4.4.0\install_loc\Lib\site-packages\openai_base_client.py", line 1332, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\vnpy-4.4.0\veighna_studio-4.4.0\install_loc\Lib\site-packages\openai_base_client.py", line 1105, in request
raise self._make_status_error_from_response(err.response) from None
openai.BadRequestError: Error code: 400 - {'error': {'message': 'invalid temperature: only 1 is allowed for this model', 'type': 'invalid_request_error'}}

请问这是什么原因?

Member
avatar
加入于:
帖子: 6124
声望: 379

因为底层agent的temperature传的0,Kimi K2 Thingking模型temperature只能传1
现在可以换成non-thinking模型再试试看,我们下个版本会把agent的temperature调成1的

© 2015-2022 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】