langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
51.29k stars 7.39k forks source link

Issues with Spark Pro #8658

Closed qidianlinjin1990 closed 1 month ago

qidianlinjin1990 commented 1 month ago

Self Checks

Dify version

0.8.3

Cloud or Self Hosted

Cloud

Steps to reproduce

Spark Pro has an issue with screenshots IMG_20240923_121922

✔️ Expected Behavior

None

❌ Actual Behavior

None

dosubot[bot] commented 1 month ago

@qidianlinjin1990 Hello there! I'm here to help you with any bugs, questions, or contributions you may have regarding Spark Pro. Let's get to the bottom of this together!

I found a similar unsolved discussion that might be relevant to your issue: Why this not work, which was last updated on September 5, 2024 [1].

The issue with Spark Pro showing a Spark error with code 400 and AppIdNoAuthError is likely due to the error provider_not_initialize, which indicates that there is no available model credential configuration. This error suggests that the necessary credentials for the model have not been set up or initialized, leading to the AppIdNoAuthError [2][3][4].

To resolve this, you need to configure the model credentials (app_id, api_key, api_secret) in the Dify platform. Follow these steps:

  1. Navigate to Settings --> Model Providers in the Dify platform.
  2. Select the model provider you wish to configure.
  3. Obtain the API key from the model provider's official website.
  4. Enter the API key in the appropriate field in Dify.

Dify uses PKCS1_OAEP encryption to protect your API keys, ensuring they remain confidential [5].

Additionally, ensure that your .env file is correctly configured with the necessary environment variables for Spark Pro to work correctly. This includes settings for vector database services, storage services, API and web services, server configuration, database configuration, Redis configuration, Celery configuration, and CORS configuration [6][7].

If you continue to face issues, please check the common pitfalls and mistakes users make when setting up Spark Pro in the Dify platform, such as password reset issues, file not found errors, login and 401 errors, CORS errors, port conflicts, FFmpeg installation, Nginx configuration file mount failures, and 502 Bad Gateway errors [8][9].

To continue talking to Dosu, mention @dosu.

crazywoola commented 1 month ago

Check the app id has the correct permission to access this model.

授权错误:该appId没有相关功能的授权 或者 业务量超过限制

https://www.xfyun.cn/doc/spark/HTTP%E8%B0%83%E7%94%A8%E6%96%87%E6%A1%A3.html#_8-%E9%94%99%E8%AF%AF%E7%A0%81%E8%AF%B4%E6%98%8E

image