feat: configure deep search llm models
This commit is contained in:
@@ -90,6 +90,8 @@ export async function startResearchTask(question, {
|
||||
endpoint,
|
||||
depth = 'standard',
|
||||
userId = null,
|
||||
llmProviderKeyId = '',
|
||||
llmModel = '',
|
||||
timeoutMs = 30000,
|
||||
fetchImpl = fetch,
|
||||
secret = process.env.TKMIND_DEEP_SEARCH_SECRET,
|
||||
@@ -98,6 +100,9 @@ export async function startResearchTask(question, {
|
||||
question,
|
||||
depth,
|
||||
...(userId ? { userId } : {}),
|
||||
...(llmProviderKeyId && llmModel
|
||||
? { llm_provider_key_id: llmProviderKeyId, llm_model: llmModel }
|
||||
: {}),
|
||||
}, { timeoutMs, fetchImpl, userId, secret });
|
||||
if (!body || typeof body !== 'object' || !body.task_id) throw new Error('Research service returned an invalid task');
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user