Browse Source

Update @openrouter/ai-sdk-provider and ai

pull/7432/head
Thomas Kaul 1 month ago
parent
commit
5d6abe46a0
  1. 5
      apps/api/src/services/fetch/fetch.service.ts

5
apps/api/src/services/fetch/fetch.service.ts

@ -118,9 +118,9 @@ export class FetchService implements OnModuleInit {
].join('\n'), ].join('\n'),
timeout: FetchService.WEB_FETCH_TIMEOUT, timeout: FetchService.WEB_FETCH_TIMEOUT,
tools: { tools: {
// Provider-defined tool: lets OpenRouter perform the actual web // Provider-executed tool: lets OpenRouter perform the actual web
// request server-side via its `web_fetch` engine. `id` and `args` // request server-side via its `web_fetch` engine. `id` and `args`
// are the OpenRouter-specific identifiers; the input schema is left // are the OpenRouter-specific identifiers. The input schema is left
// open as the arguments are supplied by the model. // open as the arguments are supplied by the model.
web_fetch: tool({ web_fetch: tool({
args: { engine: 'openrouter' }, args: { engine: 'openrouter' },
@ -129,6 +129,7 @@ export class FetchService implements OnModuleInit {
additionalProperties: true, additionalProperties: true,
type: 'object' type: 'object'
}), }),
isProviderExecuted: true,
type: 'provider' type: 'provider'
}) })
} }

Loading…
Cancel
Save