/api/datasets/indexing-estimate return error msg "Model Parameter max_tokens should be less than or equal to 1024.0." #3133

Closed
opened 2026-02-21 17:54:10 -05:00 by yindo · 0 comments
Owner

Originally created by @zw620 on GitHub (May 10, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a quesion, 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).
  • Pleas do not modify this template :) and fill in all the required fields.

Dify version

0.6.5

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Under Knowledge tab:

  1. Create Knowledge-->Choose data source-->upload a docx file and click next
  2. Turn on "Segmenting in Question & Answer format"
  3. Click "Switching to Q&A format" on top right
  4. Show error "Model Parameter max_tokens should be less than or equal to 1024.0."
  5. The req/res of /api/datasets/indexing-estimate:
    Req:
    {
    "info_list": {
    "data_source_type": "upload_file",
    "file_info_list": {
    "file_ids": [
    "cc80eec6-a9f6-416e-90de-d3c917e995ba"
    ]
    }
    },
    "indexing_technique": "high_quality",
    "process_rule": {
    "rules": {},
    "mode": "automatic"
    },
    "doc_form": "qa_model",
    "doc_language": "Chinese"
    }
    Res:
    {
    "code": "invalid_param",
    "message": "Model Parameter max_tokens should be less than or equal to 1024.0.",
    "status": 400
    }

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @zw620 on GitHub (May 10, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a quesion, 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] Pleas do not modify this template :) and fill in all the required fields. ### Dify version 0.6.5 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Under Knowledge tab: 1. Create Knowledge-->Choose data source-->upload a docx file and click next 2. Turn on "Segmenting in Question & Answer format" 3. Click "Switching to Q&A format" on top right 4. Show error "Model Parameter max_tokens should be less than or equal to 1024.0." 5. The req/res of /api/datasets/indexing-estimate: Req: { "info_list": { "data_source_type": "upload_file", "file_info_list": { "file_ids": [ "cc80eec6-a9f6-416e-90de-d3c917e995ba" ] } }, "indexing_technique": "high_quality", "process_rule": { "rules": {}, "mode": "automatic" }, "doc_form": "qa_model", "doc_language": "Chinese" } Res: { "code": "invalid_param", "message": "Model Parameter max_tokens should be less than or equal to 1024.0.", "status": 400 } ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 17:54:10 -05:00
yindo closed this issue 2026-02-21 17:54:10 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#3133