Fetch llm from db
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user