-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SparkLite API Auth error #12781
Comments
Hey there, @tiaotiao97! I'm here to help you with any bugs, questions, or contributions you have for the project. Let's work together to solve this issue. To resolve the "400 AppIdNoAuthError" when using the iFlytek SparkLite LLM with Dify version 0.15.1, you need to change the model_api_configs = {
"spark-lite": {"version": "v1.1", "chat_domain": "lite"}, # Change "general" to "lite"
...
} Make sure this change is applied in the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Hey @tiaotiao97! 👋 I'm here to help you with bugs, questions, and even becoming a contributor. Let's squash those bugs together! I found a similar discussion that might help you resolve the issue. The error message "AppIdNoAuthError" with code 11200 suggests an authentication problem, possibly due to incorrect domain settings or token misconfiguration. In a previous discussion, it was noted that the To resolve this, ensure that your If these steps don't resolve the issue, you might want to review your network configuration to ensure it doesn't interfere with authentication headers. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
@dosu You mentioned that the recommended value in the documentation is set to "general." Is there a detailed link to the documentation? |
The official iFlytek SparkLite documentation specifies the correct 'chat_domain' value as "general" for the "spark-lite" model. This information is reflected in the Dify codebase within the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Let the developer close the issue :) |
* commit '6db3ae9b8ec2f8491e2c9355056a8693ecd67f47': (22 commits) chore: remove webapp ga (langgenius#12909) fix: variable panel scrollable (langgenius#12769) fix: OpenAI o1 Bad Request Error (langgenius#12839) Update deepseek model configuration (langgenius#12899) fix: external dataset hit test display issue(langgenius#12564) (langgenius#12612) add deepseek-reasoner (langgenius#12898) chore(fix): Invalid quotes for using Array[String] in HTTP request node as JSON body (langgenius#12761) fix: Issues related to the deletion of conversation_id (langgenius#12488) (langgenius#12665) chore(lint): fix quotes for f-string formatting by bumping ruff to 0.9.x (langgenius#12702) feat:Support Minimax-Text-01 (langgenius#12763) fix: serply credential check query might return empty records (langgenius#12784) feat: allow updating chunk settings for the existing documents (langgenius#12833) fix: SparkLite API Auth error (langgenius#12781) (langgenius#12790) fix: "parmas" spelling mistake. (langgenius#12875) Fix suggested_question_prompt (langgenius#12738) fix(i18n): correct typo in zh-Hant translation (langgenius#12852) chore: fix chinese translation for 'recall' (langgenius#12772) fix: DeepSeek API Error with response format active (text and json_object) (langgenius#12747) feat: enhance credential extraction logic based on configurate method (langgenius#12853) fix: Fix rerank model switching issue (langgenius#12721) ... # Conflicts: # api/core/tools/utils/message_transformer.py # api/poetry.lock
Self Checks
Dify version
0.15.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
1. I applied for the Token of iFlytek SparkLite LLM, and it can be called correctly in iFlytek developer console (https://console.xfyun.cn/services/sparkapiCenter).
2. The Token is configured correctly on dify's latest version of the web. However, when using the model, an error is reported
3. I read the relevant source code for spark lite initialization in dify
dify/api/core/model_runtime/model_providers/spark/llm/_client.py
Line 24 in bc3a570
The "chat_domain" corresponding to spark-lite model was found to be "general".
4. I read the official documentation and the argument should be
lite
(https://www.xfyun.cn/doc/spark/Web.html)✔️ Expected Behavior
Please fit Spark-Lite model correctly
❌ Actual Behavior
[spark] Error: [Spark] code: 400, error: Code: 11200, Error: AppIdNoAuthError:(09:53:39.885) domain.general
The text was updated successfully, but these errors were encountered: