feat(ai): enable Fireworks Messages deferred tool loading

This commit is contained in:
Vegard Stikbakke 2026-09-10 10:13:33 +02:00
parent 08dc60bc52
commit d92eb8d4b1
5 changed files with 233 additions and 1 deletions

View file

@ -1422,6 +1422,8 @@ function processFireworksModels(provider: ModelsDevProvider | undefined): Model<
if (!provider?.models) return [];
const anthropicCompat: AnthropicMessagesCompat = {
// Arbitrary loader names work, but Fireworks only defers the prefix for ToolSearch/tool_search.
supportsToolReferences: true,
allowEmptySignature: true,
sendSessionAffinityHeaders: true,
supportsEagerToolInputStreaming: false,