Skip to content

知识库"开始对话"崩溃,发起对话时没传模型名,导致请求变成 model_name=undefined,页面拿这个非法模型名渲染时抛出 cl…#3113

Open
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants