fix: webapp stop chat & citation (#2376)

This commit is contained in:
zxhlyh
2024-02-04 18:08:53 +08:00
committed by GitHub
parent 51d359268e
commit 1ebf740908
7 changed files with 21 additions and 23 deletions

View File

@@ -54,11 +54,7 @@ const DebugWithSingleModel = forwardRef<DebugWithSingleModelRefType, DebugWithSi
handleAnnotationEdited,
handleAnnotationRemoved,
} = useChat(
{
...config,
supportAnnotation: true,
appId,
},
config,
{
inputs,
promptVariables: modelConfig.configs.prompt_variables,

View File

@@ -126,6 +126,7 @@ export const useConfigFromDebugContext = () => {
supportAnnotation: true,
appId,
supportCitationHitInfo: true,
}
return config