Fetch llm from db

This commit is contained in:
Xin Wang
2026-02-09 08:33:09 +08:00
parent c15c5283e2
commit 8c88d7c57a
2 changed files with 17 additions and 8 deletions

View File

@@ -202,6 +202,10 @@ export const createAssistant = async (data: Partial<Assistant>): Promise<Assista
configMode: data.configMode || 'platform',
apiUrl: data.apiUrl || '',
apiKey: data.apiKey || '',
llmModelId: data.llmModelId || '',
asrModelId: data.asrModelId || '',
embeddingModelId: data.embeddingModelId || '',
rerankModelId: data.rerankModelId || '',
};
const response = await apiRequest<AnyRecord>('/assistants', { method: 'POST', body: payload });
return mapAssistant(response);