Skip to content

fix(web): pass model to newDialogue for knowledge chat - #3113

Open
dropfiles wants to merge 1 commit into
eosphoros-ai:mainfrom
dropfiles:main
Open

fix(web): pass model to newDialogue for knowledge chat#3113
dropfiles wants to merge 1 commit into
eosphoros-ai:mainfrom
dropfiles:main

Conversation

@dropfiles

Copy link
Copy Markdown

…ient-side exception

Description

知识库"开始对话"崩溃,发起对话时没传模型名,导致请求变成 model_name=undefined,页面拿这个非法模型名渲染时抛出 client-side exception。
ChatContext 里其实有可用的 model(来自 getUsableModels(),会自动取模型列表第一个),但 handleChat 没有使用它。

@Aries-ckt Aries-ckt left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@chenliang15405 chenliang15405 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chenliang15405 chenliang15405 changed the title 知识库"开始对话"崩溃,发起对话时没传模型名,导致请求变成 model_name=undefined,页面拿这个非法模型名渲染时抛出 cl… fix(web): pass model to newDialogue for knowledge chat Jul 23, 2026
@github-actions github-actions Bot added fix Bug fixes web Module: web labels Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Bug fixes web Module: web

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants