@@ -639,6 +639,7 @@ export default function ChatView({ threadId }: ChatViewProps) {
639639 } ) ,
640640 [ selectedModel , selectedModelOptionsForDispatch , selectedProvider ] ,
641641 ) ;
642+ const selectedTextGenerationModel = settings . textGenerationModel || undefined ;
642643 const providerOptionsForDispatch = useMemo ( ( ) => getProviderStartOptions ( settings ) , [ settings ] ) ;
643644 const selectedModelForPicker = selectedModel ;
644645 const modelOptionsByProvider = useMemo (
@@ -2646,7 +2647,7 @@ export default function ChatView({ threadId }: ChatViewProps) {
26462647 attachments : turnAttachments ,
26472648 } ,
26482649 modelSelection : selectedModelSelection ,
2649- textGenerationModel : settings . textGenerationModel || undefined ,
2650+ textGenerationModel : selectedTextGenerationModel ,
26502651 ...( providerOptionsForDispatch ? { providerOptions : providerOptionsForDispatch } : { } ) ,
26512652 assistantDeliveryMode : settings . enableAssistantStreaming ? "streaming" : "buffered" ,
26522653 runtimeMode,
@@ -2929,7 +2930,7 @@ export default function ChatView({ threadId }: ChatViewProps) {
29292930 attachments : [ ] ,
29302931 } ,
29312932 modelSelection : selectedModelSelection ,
2932- textGenerationModel : settings . textGenerationModel || undefined ,
2933+ textGenerationModel : selectedTextGenerationModel ,
29332934 ...( providerOptionsForDispatch ? { providerOptions : providerOptionsForDispatch } : { } ) ,
29342935 assistantDeliveryMode : settings . enableAssistantStreaming ? "streaming" : "buffered" ,
29352936 runtimeMode,
@@ -2983,7 +2984,7 @@ export default function ChatView({ threadId }: ChatViewProps) {
29832984 setThreadError ,
29842985 settings . enableAssistantStreaming ,
29852986 selectedModel ,
2986- settings . textGenerationModel ,
2987+ selectedTextGenerationModel ,
29872988 ] ,
29882989 ) ;
29892990
@@ -3048,7 +3049,7 @@ export default function ChatView({ threadId }: ChatViewProps) {
30483049 attachments : [ ] ,
30493050 } ,
30503051 modelSelection : selectedModelSelection ,
3051- textGenerationModel : settings . textGenerationModel || undefined ,
3052+ textGenerationModel : selectedTextGenerationModel ,
30523053 ...( providerOptionsForDispatch ? { providerOptions : providerOptionsForDispatch } : { } ) ,
30533054 assistantDeliveryMode : settings . enableAssistantStreaming ? "streaming" : "buffered" ,
30543055 runtimeMode,
@@ -3104,7 +3105,7 @@ export default function ChatView({ threadId }: ChatViewProps) {
31043105 providerOptionsForDispatch ,
31053106 selectedProvider ,
31063107 settings . enableAssistantStreaming ,
3107- settings . textGenerationModel ,
3108+ selectedTextGenerationModel ,
31083109 syncServerReadModel ,
31093110 selectedModel ,
31103111 ] ) ;
0 commit comments