mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-26 06:28:56 +08:00
feat: add api args
This commit is contained in:
parent
ad2aa7f6e6
commit
64098a2992
@ -548,7 +548,7 @@ app.post('/v1/chat/completions', (async (req: Request, res: Response) => {
|
||||
visitedURLs,
|
||||
readURLs,
|
||||
allURLs
|
||||
} = await getResponse(undefined, tokenBudget, maxBadAttempts, context, body.messages, body.numReturnedURLs, body.noDirectAnswer)
|
||||
} = await getResponse(undefined, tokenBudget, maxBadAttempts, context, body.messages, body.max_returned_urls, body.no_direct_answer)
|
||||
let finalAnswer = (finalStep as AnswerAction).mdAnswer;
|
||||
|
||||
const annotations = (finalStep as AnswerAction).references?.map(ref => ({
|
||||
|
||||
@ -215,8 +215,8 @@ export interface ChatCompletionRequest {
|
||||
max_attempts?: number;
|
||||
|
||||
response_format?: ResponseFormat;
|
||||
numReturnedURLs?: number;
|
||||
noDirectAnswer?: boolean;
|
||||
no_direct_answer?: boolean;
|
||||
max_returned_urls?: number;
|
||||
}
|
||||
|
||||
export interface URLAnnotation {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user