feat: add api args

This commit is contained in:
Han Xiao 2025-03-14 16:59:07 +08:00
parent ad2aa7f6e6
commit 64098a2992
2 changed files with 3 additions and 3 deletions

View File

@ -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 => ({

View File

@ -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 {