Skip to content

[Bug]: Upgrade to version 0.19.1, and an error was reported when asking questions in the chat session. #8423

@doomer2012

Description

@doomer2012

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

#8187

RAGFlow image version

v0.19.1

Other environment information

ragflow从0.19.0 升级到 0.19.1
服务正常启动后,所有聊天会话,提问都报错,服务端错误日志:
2025-06-23 12:06:42,456 ERROR    14 Base.init() got multiple values for argument 'base_url'
Traceback (most recent call last):
  File "/ragflow/.venv/lib/python3.10/site-packages/flask/app.py", line 880, in full_dispatch_request
    rv = self.dispatch_request()
  File "/ragflow/.venv/lib/python3.10/site-packages/flask/app.py", line 865, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(view_args)  # type: ignore[no-any-return]
  File "/ragflow/.venv/lib/python3.10/site-packages/flask_login/utils.py", line 290, in decorated_view
    return current_app.ensure_sync(func)(*args, kwargs)
  File "/ragflow/api/utils/api_utils.py", line 172, in decorated_function
    return func(*_args, _kwargs)
  File "/ragflow/api/apps/llm_app.py", line 222, in add_llm
    mdl = ChatModel[factory](
  File "/ragflow/rag/llm/chat_model.py", line 459, in init
    super().init(key, model_name, kwargs["base_url"], kwargs)
TypeError: Base.init() got multiple values for argument 'base_url'

Actual behavior

聊天会话提问均报错:
Image

添加模型,提交也报错:
Image

Expected behavior

No response

Steps to reproduce

ragflow从0.19.0 正常升级到 0.19.1。
聊天会话提问,问题复现。

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