Skip to content

[Bug]: openai.BadRequestError with gpt-5-nano and keywords/questions/TOC generation features #12388

@MaxRcd

Description

@MaxRcd

Self Checks

  • 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).
  • Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
  • Please do not modify this template :) and fill in all the required fields.

RAGFlow workspace code commit ID

None

RAGFlow image version

0.22.0

Other environment information

Actual behavior

2025-12-31 14:47:02,296 ERROR 38 OpenAI chat_with_tools Traceback (most recent call last): File "/ragflow/rag/llm/chat_model.py", line 334, in chat return self._chat(history, gen_conf, **kwargs) File "/ragflow/rag/llm/chat_model.py", line 163, in _chat response = self.client.chat.completions.create(model=self.model_name, messages=history, **gen_conf, **kwargs) File "/ragflow/.venv/lib/python3.10/site-packages/openai/_utils/_utils.py", line 287, in wrapper return func(*args, **kwargs) File "/ragflow/.venv/lib/python3.10/site-packages/openai/resources/chat/completions/completions.py", line 1150, in create return self._post( File "/ragflow/.venv/lib/python3.10/site-packages/openai/_base_client.py", line 1259, in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) File "/ragflow/.venv/lib/python3.10/site-packages/openai/_base_client.py", line 1047, in request raise self._make_status_error_from_response(err.response) from None openai.BadRequestError: Error code: 400 - {'error': {'message': "Unsupported value: 'temperature' does not support 0.2 with this model. Only the default (1) value is supported.", 'type': 'invalid_request_error', 'param': 'temperature', 'code': 'unsupported_value'}}

Expected behavior

Being able to generate keyworks, questions and TOC using gpt-5-nano

Image

Steps to reproduce

1. Set gpt-5-nano as default LLM
2. Create a dataset with General ingestion pipeline + TOC + Keyword + Questions
3. Upload and parse document

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working, pull request that fix bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions