File tree Expand file tree Collapse file tree
packages/server/api/src/app/ai/chat Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ export async function generateChatName(
103103 messages : ModelMessage [ ] ,
104104 projectId : string ,
105105) : Promise < GeneratedChatName > {
106- const { languageModel } = await getLLMConfig ( projectId ) ;
106+ const { languageModel, aiConfig } = await getLLMConfig ( projectId ) ;
107107 const systemPrompt = await loadPrompt ( 'chat-name.txt' ) ;
108108 if ( ! systemPrompt . trim ( ) ) {
109109 throw new Error ( 'Failed to load prompt to generate the chat name.' ) ;
@@ -117,6 +117,7 @@ export async function generateChatName(
117117 system : systemPrompt ,
118118 messages : sanitizedMessages ,
119119 schema : generatedChatNameSchema ,
120+ ...aiConfig . modelSettings ,
120121 experimental_telemetry : { isEnabled : isLLMTelemetryEnabled ( ) } ,
121122 maxRetries : 2 ,
122123 } ) ;
You can’t perform that action at this time.
0 commit comments