Mark tool calls to be implemented later for non-streaming

This commit is contained in:
Kerollmops 2025-05-30 16:37:16 +02:00
parent ef0f877bb9
commit 7fd34b5f19
No known key found for this signature in database
GPG Key ID: F250A4C4E3AE5F5F

View File

@ -338,7 +338,8 @@ async fn non_streamed_chat(
let client = Client::with_config(config);
let auth_token = extract_token_from_request(&req)?.unwrap();
let FunctionSupport { report_progress, report_sources, append_to_conversation, report_errors } =
// TODO do function support later
let _function_support =
setup_search_tool(&index_scheduler, filters, &mut chat_completion, &chat_settings.prompts)?;
let mut response;
@ -377,8 +378,9 @@ async fn non_streamed_chat(
Err(err) => Err(err.to_string()),
};
// TODO report documents sources later
let text = match result {
Ok((_, documents, text)) => text,
Ok((_, _documents, text)) => text,
Err(err) => err,
};