Add Venice assistant web search option

This commit is contained in:
reidellawfirm committed 2026-10-31 16:01:25 -05:00
1 parent cc8dc544be
commit 9a8c681d67
14 files changed
+218 -30

No files matched your search

+4 -1
View File
@@ -41,6 +41,8 @@ export type DirectTurnOptions = {
effort?: "low" | "medium" | "high";
/** Hermes: the API root, and the server-side session this conversation maps to. */
baseUrl?: string;
/** Venice-only web search for this interactive turn. */
webSearch?: boolean;
sessionId?: string;
system: string;
/** Owned by the session; this loop appends assistant + tool_result messages. */
@@ -86,11 +88,12 @@ export class DirectAssistantBackend {
return;
}
const streamOptions: LlmStreamOptions = {
const streamOptions: LlmStreamOptions & { webSearch?: boolean } = {
apiKey: options.apiKey,
model: options.model,
system: options.system,
effort: options.effort,
webSearch: options.webSearch,
messages: options.messages,
// Hermes runs its own tools; Faceclaw's are not offered to it.
tools: options.provider === "hermes" ? [] : options.buildTools(),