Repository navigation
Open
Description
Contact Information
No response
MaxKB Version
v2.10.6-lts
Problem Description
新增 OpenAI 类型模型,模型类型选择【语音识别】,模型名称 / 基础模型填写 whisper-v3,API URL 填写兼容 OpenAI 的网关地址 https://aiapi.cnkh.com/v1,配置 API Key 后,在工作流的语音转文字节点调用该模型,抛出 openai.NotFoundError: 404 page not found。
日志中观察到:部分代码分支错误走了 chat/completions 路径,而不是标准的 /v1/audio/transcriptions 语音转写接口,上游网关返回 Not Found。
Steps to Reproduce
- 进入【模型管理】→新增模型,选择 OpenAI 类型
- 模型类型:语音识别;模型名称:whisper-v3;基础模型:whisper-v3;API URL:
https://aiapi.cnkh.com/v1,填写合法 API Key,保存修改 - 新建应用,编排工作流,添加【语音转文字节点】,选择该 whisper-v3 语音识别模型
- 上传音频文件触发节点执行,复现 404 报错
The expected correct result
OpenAI 类型语音识别模型,调用时应该请求标准 OpenAI ASR 接口 /v1/audio/transcriptions,正常完成语音转写,不应该调用 chat/completions 对话接口,不返回 404。
Related log output
2026-11-17 13:59:39 [omni_stt ERROR] :Error: Error code: 404 - {'error': {'message': 'upstream error: {"detail":"Not Found"}', 'type': 'one_api_error', 'param': '', 'code': 'upstream_error'}}: Traceback (most recent call last):
File "/opt/maxkb-app/community/apps/models_provider/impl/aliyun_bai_lian_model_provider/model/stt/omni_stt.py", line 58, in speech_to_text
File "/opt/py3/lib/python3.11/site-packages/openai/_utils/_utils.py", line 298, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/opt/py3/lib/python3.11/site-packages/openai/resources/chat/completions/completions.py", line 1296, in create
return self._post(
^^^^^^^^^^^^^^^^^^^
File "/opt/py3/lib/python3.11/site-packages/openai/_base_client.py", line 1375, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/py3/lib/python3.11/site-packages/openai/_base_client.py", line 1148, in request
raise self._make_status_error_from_response(err.response) from None
openai.NotFoundError: Error code: 404 - {'error': {'message': 'upstream error: {"detail":"Not Found"}', 'type': 'one_api_error', 'param': '', 'code': 'upstream_error'}}
2026-11-17 13:59:39 [default_stt ERROR] Exception: Error code: 404 - {'error': {'message': 'upstream error: {"detail":"Not Found"}', 'type': 'one_api_error', 'param': '', 'code': 'upstream_error'}}
Traceback (most recent call last):
File "/opt/maxkb-app/community/apps/models_provider/impl/aliyun_bai_lian_model_provider/credential/stt/default_stt.py", line 60, in is_valid
File "/opt/maxkb-app/community/apps/models_provider/impl/aliyun_bai_lian_model_provider/model/stt/omni_stt.py", line 44, in check_auth
File "/opt/maxkb-app/community/apps/models_provider/impl/aliyun_bai_lian_model_provider/model/stt/omni_stt.py", line 91, in speech_to_text
File "/opt/maxkb-app/community/apps/models_provider/impl/aliyun_bai_lian_model_provider/model/stt/omni_stt.py", line 58, in speech_to_text
File "/opt/py3/lib/python3.11/site-packages/openai/_utils/_utils.py", line 298, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/opt/py3/lib/python3.11/site-packages/openai/resources/chat/completions/completions.py", line 1296, in create
return self._post(
^^^^^^^^^^^^^^^^^^^
File "/opt/py3/lib/python3.11/site-packages/openai/_base_client.py", line 1375, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream_cls=stream_cls))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/py3/lib/python3.11/site-packages/openai/_base_client.py", line 1148, in request
raise self._make_status_error_from_response(err.response) from None
openai.NotFoundError: Error code: 404 - {'error': {'message': 'upstream error: {"detail":"Not Found"}', 'type': 'one_api_error', 'param': '', 'code': 'upstream_error'}}
2026-11-17 14:03:16 [workflow_manage ERROR] Exception: 404 page not found
Traceback (most recent call last):
File "/opt/maxkb-app/community/apps/application/flow/workflow_manage.py", line 423, in hand_event_node_result
File "/opt/maxkb-app/community/apps/application/flow/workflow_manage.py", line 43, in result
File "/opt/maxkb-app/community/apps/application/flow/workflow_manage.py", line 560, in run_node_future
File "/opt/maxkb-app/community/apps/application/flow/workflow_manage.py", line 566, in run_node
File "/opt/maxkb-app/community/apps/application/flow/i_step_node.py", line 364, in run
File "/opt/maxkb-app/community/apps/application/flow/step_node/speech_to_text_step_node/i_speech_to_text_node.py", line 42, in _run
File "/opt/maxkb-app/community/apps/application/flow/step_node/speech_to_text_step_node/impl/base_speech_to_text_node.py", line 71, in execute
File "/opt/maxkb-app/community/apps/application/flow/step_node/speech_to_text_step_node/impl/base_speech_to_text_node.py", line 68, in process_audio_items
File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 619, in result_iterator
yield _result_or_cancel(fs.pop())
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 317, in _result_or_cancel
return fut.result(timeout)
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 456, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/maxkb-app/community/apps/application/flow/step_node/speech_to_text_step_node/impl/base_speech_to_text_node.py", line 68, in <lambda>
File "/opt/maxkb-app/community/apps/application/flow/step_node/speech_to_text_step_node/impl/base_speech_to_text_node.py", line 60, in process_audio_item
File "/opt/maxkb-app/community/apps/common/utils/common.py", line 289, in split_and_transcribe
File "/opt/maxkb-app/community/apps/models_provider/impl/xinference_model_provider/model/stt.py", line 73, in speech_to_text
File "/opt/py3/lib/python3.11/site-packages/openai/_utils/_utils.py", line 298, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/opt/py3/lib/python3.11/site-packages/openai/resources/audio/transcriptions.py", line 523, in create
return self._post( # type: ignore[return-value]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/py3/lib/python3.11/site-packages/openai/_base_client.py", line 1375, in post
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/py3/lib/python3.11/site-packages/openai/_base_client.py", line 1148, in request
raise self._make_status_error_from_response(err.response) from None
openai.NotFoundError: 404 page not foundAdditional Information
No response
Metadata
Metadata
Assignees
Labels
No labels
Activity