mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-05 15:20:30 +08:00
fix: synchronize chat model configuration (#17717)
This commit is contained in:
@@ -87,6 +87,10 @@ export function ChatSettings({ hasSingleChatBox }: ChatSettingsProps) {
|
||||
|
||||
// Add model_type to llm_setting based on the selected llm_id
|
||||
if (nextValues.llm_id) {
|
||||
// The model selector returns the tenant model ID. Keep the legacy
|
||||
// llm_id and the tenant-scoped ID synchronized; the backend gives
|
||||
// tenant_llm_id precedence when resolving the chat model.
|
||||
nextValues.tenant_llm_id = nextValues.llm_id;
|
||||
nextValues.llm_setting = {
|
||||
...nextValues.llm_setting,
|
||||
model_type: findLlmByUuid(nextValues.llm_id)?.model_type || 'chat',
|
||||
|
||||
@@ -39,6 +39,7 @@ export const useCreateChatDialog = () => {
|
||||
toc_enhance: false,
|
||||
},
|
||||
llm_id: defaultModelDictionary?.llm_id,
|
||||
tenant_llm_id: defaultModelDictionary?.llm_id,
|
||||
llm_setting: {},
|
||||
similarity_threshold: 0.2,
|
||||
vector_similarity_weight: 0.3,
|
||||
|
||||
Reference in New Issue
Block a user