GPUStack - S2T not found for provider #10438

Closed
opened 2026-02-21 18:46:57 -05:00 by yindo · 0 comments
Owner

Originally created by @Ler-Tor on GitHub (Mar 11, 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

  1. Install GpuStack model plugin
  2. Choose s2t model
  3. Enter creds
  4. Get Internal Server error

✔️ Expected Behavior

S2T model is accessible

Actual Behavior

2025-03-12 04:21:31 2025-03-12 01:21:31.546 ERROR [Dummy-50] [app.py:875] - Exception on /console/api/workspaces/current/model-providers/langgenius/gpustack/gpustack/models [POST]
2025-03-12 04:21:31 Traceback (most recent call last):
2025-03-12 04:21:31   File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request
2025-03-12 04:21:31     rv = self.dispatch_request()
2025-03-12 04:21:31          ^^^^^^^^^^^^^^^^^^^^^^^
2025-03-12 04:21:31   File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request
2025-03-12 04:21:31     return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
2025-03-12 04:21:31            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-12 04:21:31   File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 489, in wrapper
2025-03-12 04:21:31     resp = resource(*args, **kwargs)
2025-03-12 04:21:31            ^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-12 04:21:31   File "/app/api/.venv/lib/python3.12/site-packages/flask/views.py", line 110, in view
2025-03-12 04:21:31     return current_app.ensure_sync(self.dispatch_request)(**kwargs)  # type: ignore[no-any-return]
2025-03-12 04:21:31            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-12 04:21:31   File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 604, in dispatch_request
2025-03-12 04:21:31     resp = meth(*args, **kwargs)
2025-03-12 04:21:31            ^^^^^^^^^^^^^^^^^^^^^
2025-03-12 04:21:31   File "/app/api/controllers/console/wraps.py", line 187, in decorated
2025-03-12 04:21:31     return view(*args, **kwargs)
2025-03-12 04:21:31            ^^^^^^^^^^^^^^^^^^^^^
2025-03-12 04:21:31   File "/app/api/libs/login.py", line 94, in decorated_view
2025-03-12 04:21:31     return current_app.ensure_sync(func)(*args, **kwargs)
2025-03-12 04:21:31            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-12 04:21:31   File "/app/api/controllers/console/wraps.py", line 30, in decorated
2025-03-12 04:21:31     return view(*args, **kwargs)
2025-03-12 04:21:31            ^^^^^^^^^^^^^^^^^^^^^
2025-03-12 04:21:31   File "/app/api/controllers/console/workspace/models.py", line 154, in post
2025-03-12 04:21:31     model_provider_service.save_model_credentials(
2025-03-12 04:21:31   File "/app/api/services/model_provider_service.py", line 237, in save_model_credentials
2025-03-12 04:21:31     provider_configuration.add_or_update_custom_model_credentials(
2025-03-12 04:21:31   File "/app/api/core/entities/provider_configuration.py", line 422, in add_or_update_custom_model_credentials
2025-03-12 04:21:31     provider_model_record, credentials = self.custom_model_credentials_validate(model_type, model, credentials)
2025-03-12 04:21:31                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-12 04:21:31   File "/app/api/core/entities/provider_configuration.py", line 402, in custom_model_credentials_validate
2025-03-12 04:21:31     credentials = model_provider_factory.model_credentials_validate(
2025-03-12 04:21:31                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-03-12 04:21:31   File "/app/api/core/model_runtime/model_providers/model_provider_factory.py", line 191, in model_credentials_validate
2025-03-12 04:21:31     self.plugin_model_manager.validate_model_credentials(
2025-03-12 04:21:31   File "/app/api/core/plugin/manager/model.py", line 137, in validate_model_credentials
2025-03-12 04:21:31     for resp in response:
2025-03-12 04:21:31                 ^^^^^^^^
2025-03-12 04:21:31   File "/app/api/core/plugin/manager/base.py", line 189, in _request_with_plugin_daemon_response_stream
2025-03-12 04:21:31     self._handle_plugin_daemon_error(error.error_type, error.message)
2025-03-12 04:21:31   File "/app/api/core/plugin/manager/base.py", line 221, in _handle_plugin_daemon_error
2025-03-12 04:21:31     raise PluginInvokeError(description=message)
2025-03-12 04:21:31 core.plugin.manager.exc.PluginInvokeError: PluginInvokeError: {"args":{},"error_type":"ValueError","message":"Model `ModelType.SPEECH2TEXT` not found for provider `gpustack`"}
Originally created by @Ler-Tor on GitHub (Mar 11, 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)). - [ ] [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 1. Install GpuStack model plugin 2. Choose s2t model 3. Enter creds 4. Get Internal Server error ### ✔️ Expected Behavior S2T model is accessible ### ❌ Actual Behavior ``` 2025-03-12 04:21:31 2025-03-12 01:21:31.546 ERROR [Dummy-50] [app.py:875] - Exception on /console/api/workspaces/current/model-providers/langgenius/gpustack/gpustack/models [POST] 2025-03-12 04:21:31 Traceback (most recent call last): 2025-03-12 04:21:31 File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request 2025-03-12 04:21:31 rv = self.dispatch_request() 2025-03-12 04:21:31 ^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-12 04:21:31 File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request 2025-03-12 04:21:31 return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return] 2025-03-12 04:21:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-12 04:21:31 File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 489, in wrapper 2025-03-12 04:21:31 resp = resource(*args, **kwargs) 2025-03-12 04:21:31 ^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-12 04:21:31 File "/app/api/.venv/lib/python3.12/site-packages/flask/views.py", line 110, in view 2025-03-12 04:21:31 return current_app.ensure_sync(self.dispatch_request)(**kwargs) # type: ignore[no-any-return] 2025-03-12 04:21:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-12 04:21:31 File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 604, in dispatch_request 2025-03-12 04:21:31 resp = meth(*args, **kwargs) 2025-03-12 04:21:31 ^^^^^^^^^^^^^^^^^^^^^ 2025-03-12 04:21:31 File "/app/api/controllers/console/wraps.py", line 187, in decorated 2025-03-12 04:21:31 return view(*args, **kwargs) 2025-03-12 04:21:31 ^^^^^^^^^^^^^^^^^^^^^ 2025-03-12 04:21:31 File "/app/api/libs/login.py", line 94, in decorated_view 2025-03-12 04:21:31 return current_app.ensure_sync(func)(*args, **kwargs) 2025-03-12 04:21:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-12 04:21:31 File "/app/api/controllers/console/wraps.py", line 30, in decorated 2025-03-12 04:21:31 return view(*args, **kwargs) 2025-03-12 04:21:31 ^^^^^^^^^^^^^^^^^^^^^ 2025-03-12 04:21:31 File "/app/api/controllers/console/workspace/models.py", line 154, in post 2025-03-12 04:21:31 model_provider_service.save_model_credentials( 2025-03-12 04:21:31 File "/app/api/services/model_provider_service.py", line 237, in save_model_credentials 2025-03-12 04:21:31 provider_configuration.add_or_update_custom_model_credentials( 2025-03-12 04:21:31 File "/app/api/core/entities/provider_configuration.py", line 422, in add_or_update_custom_model_credentials 2025-03-12 04:21:31 provider_model_record, credentials = self.custom_model_credentials_validate(model_type, model, credentials) 2025-03-12 04:21:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-12 04:21:31 File "/app/api/core/entities/provider_configuration.py", line 402, in custom_model_credentials_validate 2025-03-12 04:21:31 credentials = model_provider_factory.model_credentials_validate( 2025-03-12 04:21:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-03-12 04:21:31 File "/app/api/core/model_runtime/model_providers/model_provider_factory.py", line 191, in model_credentials_validate 2025-03-12 04:21:31 self.plugin_model_manager.validate_model_credentials( 2025-03-12 04:21:31 File "/app/api/core/plugin/manager/model.py", line 137, in validate_model_credentials 2025-03-12 04:21:31 for resp in response: 2025-03-12 04:21:31 ^^^^^^^^ 2025-03-12 04:21:31 File "/app/api/core/plugin/manager/base.py", line 189, in _request_with_plugin_daemon_response_stream 2025-03-12 04:21:31 self._handle_plugin_daemon_error(error.error_type, error.message) 2025-03-12 04:21:31 File "/app/api/core/plugin/manager/base.py", line 221, in _handle_plugin_daemon_error 2025-03-12 04:21:31 raise PluginInvokeError(description=message) 2025-03-12 04:21:31 core.plugin.manager.exc.PluginInvokeError: PluginInvokeError: {"args":{},"error_type":"ValueError","message":"Model `ModelType.SPEECH2TEXT` not found for provider `gpustack`"} ```
yindo added the 🐞 bug label 2026-02-21 18:46:57 -05:00
yindo closed this issue 2026-02-21 18:46:57 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#10438