Ernie-4.0-8K-Latest Not Working #4646

Closed
opened 2026-02-21 18:07:22 -05:00 by yindo · 1 comment
Owner

Originally created by @xielong on GitHub (Jul 17, 2024).

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).
  • 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.6.14

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. Choose the "Ernie-4.0-8K
    截屏2024-07-17 17 20 07
    -Latest" model

  2. Send any question to the model, an error will be encountered
    截屏2024-07-17 16 07 21

✔️ Expected Behavior

There is a normal response

Actual Behavior

[wenxin] Bad Request Error, Invalid model: ernie-4.0-8k-Latest

Originally created by @xielong on GitHub (Jul 17, 2024). ### 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] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.6.14 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce 1. Choose the "Ernie-4.0-8K ![截屏2024-07-17 17 20 07](https://github.com/user-attachments/assets/7022b2e7-16e5-4020-bee1-a292b2e72171) -Latest" model 2. Send any question to the model, an error will be encountered ![截屏2024-07-17 16 07 21](https://github.com/user-attachments/assets/4c9fabb2-1ad4-464d-b0dd-446f008a980b) ### ✔️ Expected Behavior There is a normal response ### ❌ Actual Behavior [wenxin] Bad Request Error, Invalid model: ernie-4.0-8k-Latest
yindo added the 🐞 bug label 2026-02-21 18:07:22 -05:00
yindo closed this issue 2026-02-21 18:07:23 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Jul 17, 2024):

@xielong Hello there! I'm here to help you with any bugs, questions, or contributions you may have. I'm a bot designed to assist you while you wait for a human maintainer. Let's tackle this issue together!

To resolve the "Bad Request Error, Invalid model: ernie-4.0-8k-Latest" issue when using the "Ernie-4.0-8K-Latest" model in Dify version 0.6.14, which is self-hosted using Docker, ensure that the model configuration in your YAML file is correctly defined as shown below:

model: ernie-4.0-8k
label:
  en_US: Ernie-4.0-8K
model_type: llm
features:
  - agent-thought
model_properties:
  mode: chat
  context_size: 8192
parameter_rules:
  - name: temperature
    use_template: temperature
    min: 0.1
    max: 1.0
    default: 0.8
  - name: top_p
    use_template: top_p
  - name: max_tokens
    use_template: max_tokens
    default: 1024
    min: 2
    max: 2048
  - name: presence_penalty
    use_template: presence_penalty
    default: 1.0
    min: 1.0
    max: 2.0
  - name: frequency_penalty
    use_template: frequency_penalty
  - name: response_format
    use_template: response_format
  - name: disable_search
    label:
      zh_Hans: 禁用搜索
      en_US: Disable Search
    type: boolean
    help:
      zh_Hans: 禁用模型自行进行外部搜索。
      en_US: Disable the model to perform external search.
    required: false

Make sure that the model name ernie-4.0-8k is correctly referenced in your application and that there are no typos or mismatches in the model name [1][2].

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Jul 17, 2024): <!-- Greeting --> @xielong Hello there! I'm here to help you with any bugs, questions, or contributions you may have. I'm a bot designed to assist you while you wait for a human maintainer. Let's tackle this issue together! <!-- Answer --> To resolve the "Bad Request Error, Invalid model: ernie-4.0-8k-Latest" issue when using the "Ernie-4.0-8K-Latest" model in Dify version 0.6.14, which is self-hosted using Docker, ensure that the model configuration in your YAML file is correctly defined as shown below: ```yaml model: ernie-4.0-8k label: en_US: Ernie-4.0-8K model_type: llm features: - agent-thought model_properties: mode: chat context_size: 8192 parameter_rules: - name: temperature use_template: temperature min: 0.1 max: 1.0 default: 0.8 - name: top_p use_template: top_p - name: max_tokens use_template: max_tokens default: 1024 min: 2 max: 2048 - name: presence_penalty use_template: presence_penalty default: 1.0 min: 1.0 max: 2.0 - name: frequency_penalty use_template: frequency_penalty - name: response_format use_template: response_format - name: disable_search label: zh_Hans: 禁用搜索 en_US: Disable Search type: boolean help: zh_Hans: 禁用模型自行进行外部搜索。 en_US: Disable the model to perform external search. required: false ``` Make sure that the model name `ernie-4.0-8k` is correctly referenced in your application and that there are no typos or mismatches in the model name <sup>[[1]](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/model_providers/wenxin/llm/ernie-4.0-8k-latest.yaml)</sup><sup>[[2]](https://github.com/langgenius/dify/blob/main/api/core/model_runtime/model_providers/wenxin/llm/ernie-4.0-8k.yaml)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#4646