add tts-model failed : kokoro and melotts fail #12378

Closed
opened 2026-02-21 19:07:08 -05:00 by yindo · 6 comments
Owner

Originally created by @twoldogs on GitHub (Mar 31, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.0.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Add melotts and kokoro through xinference fail;
ERROR detail {
"code": "invalid_param",
"message": "please check model type, the model you want to invoke is not a text-to-audio model",
"status": 400
}

✔️ Expected Behavior

success add the model

Actual Behavior

ERROR detail {
"code": "invalid_param",
"message": "please check model type, the model you want to invoke is not a text-to-audio model",
"status": 400
}


2025-03-31 08:01:12.137 ERROR [Dummy-1466] [models.py:162] - Failed to save model credentials, tenant_id: 8e74cbc4-52d0-4033-a5e3-61e179a11f93, model: Kokoro-82M, model_type: tts
Traceback (most recent call last):
File "/app/api/controllers/console/workspace/models.py", line 154, in post
model_provider_service.save_model_credentials(
File "/app/api/services/model_provider_service.py", line 237, in save_model_credentials
provider_configuration.add_or_update_custom_model_credentials(
File "/app/api/core/entities/provider_configuration.py", line 422, in add_or_update_custom_model_credentials
provider_model_record, credentials = self.custom_model_credentials_validate(model_type, model, credentials)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/api/core/entities/provider_configuration.py", line 402, in custom_model_credentials_validate
credentials = model_provider_factory.model_credentials_validate(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/api/core/model_runtime/model_providers/model_provider_factory.py", line 191, in model_credentials_validate
self.plugin_model_manager.validate_model_credentials(
File "/app/api/core/plugin/manager/model.py", line 137, in validate_model_credentials
for resp in response:
^^^^^^^^
File "/app/api/core/plugin/manager/base.py", line 189, in _request_with_plugin_daemon_response_stream
self._handle_plugin_daemon_error(error.error_type, error.message)
File "/app/api/core/plugin/manager/base.py", line 219, in _handle_plugin_daemon_error
raise CredentialsValidateFailedError(error_object.get("message"))
core.model_runtime.errors.validate.CredentialsValidateFailedError: please check model type, the model you want to invoke is not a text-to-audio model

Image

Image

Originally created by @twoldogs on GitHub (Mar 31, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.0.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Add melotts and kokoro through xinference fail; ERROR detail { "code": "invalid_param", "message": "please check model type, the model you want to invoke is not a text-to-audio model", "status": 400 } ### ✔️ Expected Behavior success add the model ### ❌ Actual Behavior ERROR detail { "code": "invalid_param", "message": "please check model type, the model you want to invoke is not a text-to-audio model", "status": 400 } ------------------------------------------------------------ 2025-03-31 08:01:12.137 ERROR [Dummy-1466] [models.py:162] - Failed to save model credentials, tenant_id: 8e74cbc4-52d0-4033-a5e3-61e179a11f93, model: Kokoro-82M, model_type: tts Traceback (most recent call last): File "/app/api/controllers/console/workspace/models.py", line 154, in post model_provider_service.save_model_credentials( File "/app/api/services/model_provider_service.py", line 237, in save_model_credentials provider_configuration.add_or_update_custom_model_credentials( File "/app/api/core/entities/provider_configuration.py", line 422, in add_or_update_custom_model_credentials provider_model_record, credentials = self.custom_model_credentials_validate(model_type, model, credentials) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/core/entities/provider_configuration.py", line 402, in custom_model_credentials_validate credentials = model_provider_factory.model_credentials_validate( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/core/model_runtime/model_providers/model_provider_factory.py", line 191, in model_credentials_validate self.plugin_model_manager.validate_model_credentials( File "/app/api/core/plugin/manager/model.py", line 137, in validate_model_credentials for resp in response: ^^^^^^^^ File "/app/api/core/plugin/manager/base.py", line 189, in _request_with_plugin_daemon_response_stream self._handle_plugin_daemon_error(error.error_type, error.message) File "/app/api/core/plugin/manager/base.py", line 219, in _handle_plugin_daemon_error raise CredentialsValidateFailedError(error_object.get("message")) core.model_runtime.errors.validate.CredentialsValidateFailedError: please check model type, the model you want to invoke is not a text-to-audio model ![Image](https://github.com/user-attachments/assets/5a45c082-865c-445a-b120-fcf5dce82b9d) ![Image](https://github.com/user-attachments/assets/8134cdcb-6c12-4457-879d-6a26cd38513d)
yindo added the 🐞 bugstt & tts labels 2026-02-21 19:07:08 -05:00
yindo closed this issue 2026-02-21 19:07:08 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Mar 31, 2025):

Hello, @twoldogs! I'm here to assist with any bugs, questions, or contributions. Let me know how I can help you.

The error you're encountering indicates that the models "melotts" and "kokoro" are not recognized as valid text-to-speech (TTS) models in Dify. The error message "please check model type, the model you want to invoke is not a text-to-audio model" suggests that the model type specified does not match the expected TTS model types.

In Dify, the supported model types for text-to-speech (TTS) models include tts, tts-1, and tts-1-hd [1][2]. Ensure that the models you are trying to add are compatible with these types. If "melotts" and "kokoro" are intended to be TTS models, verify that they are correctly configured and recognized as such within the Dify platform.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Mar 31, 2025): <!-- Greeting --> Hello, @twoldogs! I'm here to assist with any bugs, questions, or contributions. Let me know how I can help you. <!-- Answer --> The error you're encountering indicates that the models "melotts" and "kokoro" are not recognized as valid text-to-speech (TTS) models in Dify. The error message "please check model type, the model you want to invoke is not a text-to-audio model" suggests that the model type specified does not match the expected TTS model types. In Dify, the supported model types for text-to-speech (TTS) models include `tts`, `tts-1`, and `tts-1-hd` <sup>[[1]](https://github.com/langgenius/dify-docs/blob/main/en/plugins/quick-start/develop-plugins/model-plugin/predefined-model.md)</sup><sup>[[2]](https://github.com/langgenius/dify-docs/blob/main/en/plugins/quick-start/develop-plugins/model-plugin/README.md)</sup>. Ensure that the models you are trying to add are compatible with these types. If "melotts" and "kokoro" are intended to be TTS models, verify that they are correctly configured and recognized as such within the Dify platform. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/27dc94cc-27ae-4ce5-a804-3031aef2965a?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/27dc94cc-27ae-4ce5-a804-3031aef2965a?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/27dc94cc-27ae-4ce5-a804-3031aef2965a?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/27dc94cc-27ae-4ce5-a804-3031aef2965a?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/27dc94cc-27ae-4ce5-a804-3031aef2965a?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/27dc94cc-27ae-4ce5-a804-3031aef2965a?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/27dc94cc-27ae-4ce5-a804-3031aef2965a?feedback_type=other)</sup>
Author
Owner

@suntao2015005848 commented on GitHub (Apr 10, 2025):

+1

@suntao2015005848 commented on GitHub (Apr 10, 2025): +1
Author
Owner

@songbl commented on GitHub (May 11, 2025):

+1

@songbl commented on GitHub (May 11, 2025): +1
Author
Owner

@chenqinggang001 commented on GitHub (Jun 29, 2025):

+1

@chenqinggang001 commented on GitHub (Jun 29, 2025): +1
Author
Owner

@chenqinggang001 commented on GitHub (Jul 1, 2025):

Fixed on https://github.com/langgenius/dify-official-plugins/pull/1181

@chenqinggang001 commented on GitHub (Jul 1, 2025): Fixed on [https://github.com/langgenius/dify-official-plugins/pull/1181](dify-official-plugins/pull/1181)
Author
Owner

@HKMV commented on GitHub (Jul 29, 2025):

更新插件后Kokoro-82M可以正常添加了,但是无法使用接口返回500,xinference日志显示这个模型不支持流模式,请问有什么解决方案吗?

7月 29 18:03:59 century-virtual-machine bash[3386476]: 2025-07-29 18:03:59,515 xinference.core.model 3386476 ERROR    [request 58c1bfd2-6c63-11f0-b656-4f33d3ff26f3] Leave speech, error: Kokoro does not support stream mode., elapsed time: 0 s
7月 29 18:03:59 century-virtual-machine bash[3386476]: Traceback (most recent call last):
7月 29 18:03:59 century-virtual-machine bash[3386476]:   File "/home/century/xinference/.venv/lib/python3.9/site-packages/xinference/core/utils.py", line 93, in wrapped
7月 29 18:03:59 century-virtual-machine bash[3386476]:     ret = await func(*args, **kwargs)
7月 29 18:03:59 century-virtual-machine bash[3386476]:   File "/home/century/xinference/.venv/lib/python3.9/site-packages/xinference/core/model.py", line 1032, in speech
7月 29 18:03:59 century-virtual-machine bash[3386476]:     return await self._call_wrapper_binary(
7月 29 18:03:59 century-virtual-machine bash[3386476]:   File "/home/century/xinference/.venv/lib/python3.9/site-packages/xinference/core/model.py", line 674, in _call_wrapper_binary
7月 29 18:03:59 century-virtual-machine bash[3386476]:     return await self._call_wrapper("binary", fn, *args, **kwargs)
7月 29 18:03:59 century-virtual-machine bash[3386476]:   File "/home/century/xinference/.venv/lib/python3.9/site-packages/xinference/core/model.py", line 147, in _async_wrapper
7月 29 18:03:59 century-virtual-machine bash[3386476]:     return await fn(self, *args, **kwargs)
7月 29 18:03:59 century-virtual-machine bash[3386476]:   File "/home/century/xinference/.venv/lib/python3.9/site-packages/xinference/core/model.py", line 696, in _call_wrapper
7月 29 18:03:59 century-virtual-machine bash[3386476]:     ret = await asyncio.to_thread(fn, *args, **kwargs)
7月 29 18:03:59 century-virtual-machine bash[3386476]:   File "/home/century/.local/share/uv/python/cpython-3.9.21-linux-x86_64-gnu/lib/python3.9/asyncio/threads.py", line 25, in to_thread
7月 29 18:03:59 century-virtual-machine bash[3386476]:     return await loop.run_in_executor(None, func_call)
7月 29 18:03:59 century-virtual-machine bash[3386476]:   File "/home/century/.local/share/uv/python/cpython-3.9.21-linux-x86_64-gnu/lib/python3.9/concurrent/futures/thread.py", line 58, in run
7月 29 18:03:59 century-virtual-machine bash[3386476]:     result = self.fn(*self.args, **self.kwargs)
7月 29 18:03:59 century-virtual-machine bash[3386476]:   File "/home/century/xinference/.venv/lib/python3.9/site-packages/xinference/model/audio/kokoro.py", line 99, in speech
7月 29 18:03:59 century-virtual-machine bash[3386476]:     raise Exception("Kokoro does not support stream mode.")
7月 29 18:03:59 century-virtual-machine bash[3386476]: Exception: Kokoro does not support stream mode.
7月 29 18:03:59 century-virtual-machine bash[3051723]: 2025-07-29 18:03:59,521 xinference.api.restful_api 3051723 ERROR    [address=0.0.0.0:35549, pid=3386476] Kokoro does not support stream mode.
7月 29 18:03:59 century-virtual-machine bash[3051723]: Traceback (most recent call last):
7月 29 18:03:59 century-virtual-machine bash[3051723]:   File "/home/century/xinference/.venv/lib/python3.9/site-packages/xinference/api/restful_api.py", line 1649, in create_speech
7月 29 18:03:59 century-virtual-machine bash[3051723]:     out = await model.speech(
7月 29 18:03:59 century-virtual-machine bash[3051723]:   File "/home/century/xinference/.venv/lib/python3.9/site-packages/xoscar/backends/context.py", line 262, in send
7月 29 18:03:59 century-virtual-machine bash[3051723]:     return self._process_result_message(result)
7月 29 18:03:59 century-virtual-machine bash[3051723]:   File "/home/century/xinference/.venv/lib/python3.9/site-packages/xoscar/backends/context.py", line 111, in _process_result_message
7月 29 18:03:59 century-virtual-machine bash[3051723]:     raise message.as_instanceof_cause()
7月 29 18:03:59 century-virtual-machine bash[3051723]:   File "/home/century/xinference/.venv/lib/python3.9/site-packages/xoscar/backends/pool.py", line 689, in send
7月 29 18:03:59 century-virtual-machine bash[3051723]:     result = await self._run_coro(message.message_id, coro)
7月 29 18:03:59 century-virtual-machine bash[3051723]:   File "/home/century/xinference/.venv/lib/python3.9/site-packages/xoscar/backends/pool.py", line 389, in _run_coro
7月 29 18:03:59 century-virtual-machine bash[3051723]:     return await coro
7月 29 18:03:59 century-virtual-machine bash[3051723]:   File "/home/century/xinference/.venv/lib/python3.9/site-packages/xoscar/api.py", line 418, in __on_receive__
7月 29 18:03:59 century-virtual-machine bash[3051723]:     return await super().__on_receive__(message)  # type: ignore
7月 29 18:03:59 century-virtual-machine bash[3051723]:   File "xoscar/core.pyx", line 564, in __on_receive__
7月 29 18:03:59 century-virtual-machine bash[3051723]:     raise ex
7月 29 18:03:59 century-virtual-machine bash[3051723]:   File "xoscar/core.pyx", line 526, in xoscar.core._BaseActor.__on_receive__
7月 29 18:03:59 century-virtual-machine bash[3051723]:     async with self._lock:
7月 29 18:03:59 century-virtual-machine bash[3051723]:   File "xoscar/core.pyx", line 527, in xoscar.core._BaseActor.__on_receive__
7月 29 18:03:59 century-virtual-machine bash[3051723]:     with debug_async_timeout('actor_lock_timeout',
7月 29 18:03:59 century-virtual-machine bash[3051723]:   File "xoscar/core.pyx", line 532, in xoscar.core._BaseActor.__on_receive__
7月 29 18:03:59 century-virtual-machine bash[3051723]:     result = await result
7月 29 18:03:59 century-virtual-machine bash[3051723]:   File "/home/century/xinference/.venv/lib/python3.9/site-packages/xinference/core/model.py", line 112, in wrapped_func
7月 29 18:03:59 century-virtual-machine bash[3051723]:     ret = await fn(self, *args, **kwargs)
7月 29 18:03:59 century-virtual-machine bash[3051723]:   File "/home/century/xinference/.venv/lib/python3.9/site-packages/xoscar/api.py", line 496, in _wrapper
7月 29 18:03:59 century-virtual-machine bash[3051723]:     r = await func(self, *args, **kwargs)
7月 29 18:03:59 century-virtual-machine bash[3051723]:   File "/home/century/xinference/.venv/lib/python3.9/site-packages/xinference/core/utils.py", line 93, in wrapped
7月 29 18:03:59 century-virtual-machine bash[3051723]:     ret = await func(*args, **kwargs)
7月 29 18:03:59 century-virtual-machine bash[3051723]:   File "/home/century/xinference/.venv/lib/python3.9/site-packages/xinference/core/model.py", line 1032, in speech
7月 29 18:03:59 century-virtual-machine bash[3051723]:     return await self._call_wrapper_binary(
7月 29 18:03:59 century-virtual-machine bash[3051723]:   File "/home/century/xinference/.venv/lib/python3.9/site-packages/xinference/core/model.py", line 674, in _call_wrapper_binary
7月 29 18:03:59 century-virtual-machine bash[3051723]:     return await self._call_wrapper("binary", fn, *args, **kwargs)
7月 29 18:03:59 century-virtual-machine bash[3051723]:   File "/home/century/xinference/.venv/lib/python3.9/site-packages/xinference/core/model.py", line 147, in _async_wrapper
7月 29 18:03:59 century-virtual-machine bash[3051723]:     return await fn(self, *args, **kwargs)
7月 29 18:03:59 century-virtual-machine bash[3051723]:   File "/home/century/xinference/.venv/lib/python3.9/site-packages/xinference/core/model.py", line 696, in _call_wrapper
7月 29 18:03:59 century-virtual-machine bash[3051723]:     ret = await asyncio.to_thread(fn, *args, **kwargs)
7月 29 18:03:59 century-virtual-machine bash[3051723]:   File "/home/century/.local/share/uv/python/cpython-3.9.21-linux-x86_64-gnu/lib/python3.9/asyncio/threads.py", line 25, in to_thread
7月 29 18:03:59 century-virtual-machine bash[3051723]:     return await loop.run_in_executor(None, func_call)
7月 29 18:03:59 century-virtual-machine bash[3051723]:   File "/home/century/.local/share/uv/python/cpython-3.9.21-linux-x86_64-gnu/lib/python3.9/concurrent/futures/thread.py", line 58, in run
7月 29 18:03:59 century-virtual-machine bash[3051723]:     result = self.fn(*self.args, **self.kwargs)
7月 29 18:03:59 century-virtual-machine bash[3051723]:   File "/home/century/xinference/.venv/lib/python3.9/site-packages/xinference/model/audio/kokoro.py", line 99, in speech
7月 29 18:03:59 century-virtual-machine bash[3051723]:     raise Exception("Kokoro does not support stream mode.")
7月 29 18:03:59 century-virtual-machine bash[3051723]: Exception: [address=0.0.0.0:35549, pid=3386476] Kokoro does not support stream mode.
@HKMV commented on GitHub (Jul 29, 2025): 更新插件后Kokoro-82M可以正常添加了,但是无法使用接口返回500,xinference日志显示这个模型不支持流模式,请问有什么解决方案吗? ```log 7月 29 18:03:59 century-virtual-machine bash[3386476]: 2025-07-29 18:03:59,515 xinference.core.model 3386476 ERROR [request 58c1bfd2-6c63-11f0-b656-4f33d3ff26f3] Leave speech, error: Kokoro does not support stream mode., elapsed time: 0 s 7月 29 18:03:59 century-virtual-machine bash[3386476]: Traceback (most recent call last): 7月 29 18:03:59 century-virtual-machine bash[3386476]: File "/home/century/xinference/.venv/lib/python3.9/site-packages/xinference/core/utils.py", line 93, in wrapped 7月 29 18:03:59 century-virtual-machine bash[3386476]: ret = await func(*args, **kwargs) 7月 29 18:03:59 century-virtual-machine bash[3386476]: File "/home/century/xinference/.venv/lib/python3.9/site-packages/xinference/core/model.py", line 1032, in speech 7月 29 18:03:59 century-virtual-machine bash[3386476]: return await self._call_wrapper_binary( 7月 29 18:03:59 century-virtual-machine bash[3386476]: File "/home/century/xinference/.venv/lib/python3.9/site-packages/xinference/core/model.py", line 674, in _call_wrapper_binary 7月 29 18:03:59 century-virtual-machine bash[3386476]: return await self._call_wrapper("binary", fn, *args, **kwargs) 7月 29 18:03:59 century-virtual-machine bash[3386476]: File "/home/century/xinference/.venv/lib/python3.9/site-packages/xinference/core/model.py", line 147, in _async_wrapper 7月 29 18:03:59 century-virtual-machine bash[3386476]: return await fn(self, *args, **kwargs) 7月 29 18:03:59 century-virtual-machine bash[3386476]: File "/home/century/xinference/.venv/lib/python3.9/site-packages/xinference/core/model.py", line 696, in _call_wrapper 7月 29 18:03:59 century-virtual-machine bash[3386476]: ret = await asyncio.to_thread(fn, *args, **kwargs) 7月 29 18:03:59 century-virtual-machine bash[3386476]: File "/home/century/.local/share/uv/python/cpython-3.9.21-linux-x86_64-gnu/lib/python3.9/asyncio/threads.py", line 25, in to_thread 7月 29 18:03:59 century-virtual-machine bash[3386476]: return await loop.run_in_executor(None, func_call) 7月 29 18:03:59 century-virtual-machine bash[3386476]: File "/home/century/.local/share/uv/python/cpython-3.9.21-linux-x86_64-gnu/lib/python3.9/concurrent/futures/thread.py", line 58, in run 7月 29 18:03:59 century-virtual-machine bash[3386476]: result = self.fn(*self.args, **self.kwargs) 7月 29 18:03:59 century-virtual-machine bash[3386476]: File "/home/century/xinference/.venv/lib/python3.9/site-packages/xinference/model/audio/kokoro.py", line 99, in speech 7月 29 18:03:59 century-virtual-machine bash[3386476]: raise Exception("Kokoro does not support stream mode.") 7月 29 18:03:59 century-virtual-machine bash[3386476]: Exception: Kokoro does not support stream mode. 7月 29 18:03:59 century-virtual-machine bash[3051723]: 2025-07-29 18:03:59,521 xinference.api.restful_api 3051723 ERROR [address=0.0.0.0:35549, pid=3386476] Kokoro does not support stream mode. 7月 29 18:03:59 century-virtual-machine bash[3051723]: Traceback (most recent call last): 7月 29 18:03:59 century-virtual-machine bash[3051723]: File "/home/century/xinference/.venv/lib/python3.9/site-packages/xinference/api/restful_api.py", line 1649, in create_speech 7月 29 18:03:59 century-virtual-machine bash[3051723]: out = await model.speech( 7月 29 18:03:59 century-virtual-machine bash[3051723]: File "/home/century/xinference/.venv/lib/python3.9/site-packages/xoscar/backends/context.py", line 262, in send 7月 29 18:03:59 century-virtual-machine bash[3051723]: return self._process_result_message(result) 7月 29 18:03:59 century-virtual-machine bash[3051723]: File "/home/century/xinference/.venv/lib/python3.9/site-packages/xoscar/backends/context.py", line 111, in _process_result_message 7月 29 18:03:59 century-virtual-machine bash[3051723]: raise message.as_instanceof_cause() 7月 29 18:03:59 century-virtual-machine bash[3051723]: File "/home/century/xinference/.venv/lib/python3.9/site-packages/xoscar/backends/pool.py", line 689, in send 7月 29 18:03:59 century-virtual-machine bash[3051723]: result = await self._run_coro(message.message_id, coro) 7月 29 18:03:59 century-virtual-machine bash[3051723]: File "/home/century/xinference/.venv/lib/python3.9/site-packages/xoscar/backends/pool.py", line 389, in _run_coro 7月 29 18:03:59 century-virtual-machine bash[3051723]: return await coro 7月 29 18:03:59 century-virtual-machine bash[3051723]: File "/home/century/xinference/.venv/lib/python3.9/site-packages/xoscar/api.py", line 418, in __on_receive__ 7月 29 18:03:59 century-virtual-machine bash[3051723]: return await super().__on_receive__(message) # type: ignore 7月 29 18:03:59 century-virtual-machine bash[3051723]: File "xoscar/core.pyx", line 564, in __on_receive__ 7月 29 18:03:59 century-virtual-machine bash[3051723]: raise ex 7月 29 18:03:59 century-virtual-machine bash[3051723]: File "xoscar/core.pyx", line 526, in xoscar.core._BaseActor.__on_receive__ 7月 29 18:03:59 century-virtual-machine bash[3051723]: async with self._lock: 7月 29 18:03:59 century-virtual-machine bash[3051723]: File "xoscar/core.pyx", line 527, in xoscar.core._BaseActor.__on_receive__ 7月 29 18:03:59 century-virtual-machine bash[3051723]: with debug_async_timeout('actor_lock_timeout', 7月 29 18:03:59 century-virtual-machine bash[3051723]: File "xoscar/core.pyx", line 532, in xoscar.core._BaseActor.__on_receive__ 7月 29 18:03:59 century-virtual-machine bash[3051723]: result = await result 7月 29 18:03:59 century-virtual-machine bash[3051723]: File "/home/century/xinference/.venv/lib/python3.9/site-packages/xinference/core/model.py", line 112, in wrapped_func 7月 29 18:03:59 century-virtual-machine bash[3051723]: ret = await fn(self, *args, **kwargs) 7月 29 18:03:59 century-virtual-machine bash[3051723]: File "/home/century/xinference/.venv/lib/python3.9/site-packages/xoscar/api.py", line 496, in _wrapper 7月 29 18:03:59 century-virtual-machine bash[3051723]: r = await func(self, *args, **kwargs) 7月 29 18:03:59 century-virtual-machine bash[3051723]: File "/home/century/xinference/.venv/lib/python3.9/site-packages/xinference/core/utils.py", line 93, in wrapped 7月 29 18:03:59 century-virtual-machine bash[3051723]: ret = await func(*args, **kwargs) 7月 29 18:03:59 century-virtual-machine bash[3051723]: File "/home/century/xinference/.venv/lib/python3.9/site-packages/xinference/core/model.py", line 1032, in speech 7月 29 18:03:59 century-virtual-machine bash[3051723]: return await self._call_wrapper_binary( 7月 29 18:03:59 century-virtual-machine bash[3051723]: File "/home/century/xinference/.venv/lib/python3.9/site-packages/xinference/core/model.py", line 674, in _call_wrapper_binary 7月 29 18:03:59 century-virtual-machine bash[3051723]: return await self._call_wrapper("binary", fn, *args, **kwargs) 7月 29 18:03:59 century-virtual-machine bash[3051723]: File "/home/century/xinference/.venv/lib/python3.9/site-packages/xinference/core/model.py", line 147, in _async_wrapper 7月 29 18:03:59 century-virtual-machine bash[3051723]: return await fn(self, *args, **kwargs) 7月 29 18:03:59 century-virtual-machine bash[3051723]: File "/home/century/xinference/.venv/lib/python3.9/site-packages/xinference/core/model.py", line 696, in _call_wrapper 7月 29 18:03:59 century-virtual-machine bash[3051723]: ret = await asyncio.to_thread(fn, *args, **kwargs) 7月 29 18:03:59 century-virtual-machine bash[3051723]: File "/home/century/.local/share/uv/python/cpython-3.9.21-linux-x86_64-gnu/lib/python3.9/asyncio/threads.py", line 25, in to_thread 7月 29 18:03:59 century-virtual-machine bash[3051723]: return await loop.run_in_executor(None, func_call) 7月 29 18:03:59 century-virtual-machine bash[3051723]: File "/home/century/.local/share/uv/python/cpython-3.9.21-linux-x86_64-gnu/lib/python3.9/concurrent/futures/thread.py", line 58, in run 7月 29 18:03:59 century-virtual-machine bash[3051723]: result = self.fn(*self.args, **self.kwargs) 7月 29 18:03:59 century-virtual-machine bash[3051723]: File "/home/century/xinference/.venv/lib/python3.9/site-packages/xinference/model/audio/kokoro.py", line 99, in speech 7月 29 18:03:59 century-virtual-machine bash[3051723]: raise Exception("Kokoro does not support stream mode.") 7月 29 18:03:59 century-virtual-machine bash[3051723]: Exception: [address=0.0.0.0:35549, pid=3386476] Kokoro does not support stream mode. ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#12378