@radheim/ai 0.0.0-stage → 2.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1890 -3
- package/dist/ai.d.ts +36 -0
- package/dist/ai.js +46 -0
- package/dist/cache-policy.d.ts +6 -0
- package/dist/cache-policy.js +205 -0
- package/dist/decision-client.d.ts +10 -0
- package/dist/decision-client.js +42 -0
- package/dist/decision.d.ts +378 -0
- package/dist/decision.js +171 -0
- package/dist/effect.d.ts +59 -0
- package/dist/effect.js +33 -0
- package/dist/effort-updates.d.ts +12 -0
- package/dist/effort-updates.js +23 -0
- package/dist/embedding-client.d.ts +10 -0
- package/dist/embedding-client.js +17 -0
- package/dist/embedding.d.ts +113 -0
- package/dist/embedding.js +76 -0
- package/dist/experimental/cloudflare-run-extraction.d.ts +17 -0
- package/dist/experimental/cloudflare-run-extraction.js +85 -0
- package/dist/experimental/extraction.d.ts +153 -0
- package/dist/experimental/extraction.js +103 -0
- package/dist/experimental/realtime.d.ts +80 -0
- package/dist/experimental/realtime.js +96 -0
- package/dist/experimental.d.ts +10 -0
- package/dist/experimental.js +6 -0
- package/dist/fetch-middleware.d.ts +7 -0
- package/dist/fetch-middleware.js +41 -0
- package/dist/generation.d.ts +77 -0
- package/dist/generation.js +109 -0
- package/dist/image-client.d.ts +14 -0
- package/dist/image-client.js +39 -0
- package/dist/image.d.ts +323 -0
- package/dist/image.js +103 -0
- package/dist/index.d.ts +300 -0
- package/dist/index.js +179 -0
- package/dist/llm.d.ts +109 -0
- package/dist/llm.js +177 -0
- package/dist/loop.d.ts +38 -0
- package/dist/loop.js +139 -0
- package/dist/media-client.d.ts +30 -0
- package/dist/media-client.js +44 -0
- package/dist/media-model.d.ts +49 -0
- package/dist/media-model.js +55 -0
- package/dist/media.d.ts +237 -0
- package/dist/media.js +285 -0
- package/dist/promise-media.d.ts +20 -0
- package/dist/promise-media.js +16 -0
- package/dist/protocols/alibaba-chat.d.ts +315 -0
- package/dist/protocols/alibaba-chat.js +78 -0
- package/dist/protocols/alibaba-images.d.ts +22 -0
- package/dist/protocols/alibaba-images.js +77 -0
- package/dist/protocols/alibaba-messages.d.ts +413 -0
- package/dist/protocols/alibaba-messages.js +44 -0
- package/dist/protocols/alibaba-responses.d.ts +298 -0
- package/dist/protocols/alibaba-responses.js +67 -0
- package/dist/protocols/anthropic-messages.d.ts +1213 -0
- package/dist/protocols/anthropic-messages.js +1412 -0
- package/dist/protocols/assemblyai-transcription.d.ts +41 -0
- package/dist/protocols/assemblyai-transcription.js +137 -0
- package/dist/protocols/bedrock-converse.d.ts +548 -0
- package/dist/protocols/bedrock-converse.js +801 -0
- package/dist/protocols/bedrock-event-stream.d.ts +14 -0
- package/dist/protocols/bedrock-event-stream.js +100 -0
- package/dist/protocols/cartesia-speech.d.ts +117 -0
- package/dist/protocols/cartesia-speech.js +120 -0
- package/dist/protocols/cloudflare-run-decisions.d.ts +9 -0
- package/dist/protocols/cloudflare-run-decisions.js +36 -0
- package/dist/protocols/cloudflare-workers-ai-images.d.ts +23 -0
- package/dist/protocols/cloudflare-workers-ai-images.js +80 -0
- package/dist/protocols/cohere-chat.d.ts +184 -0
- package/dist/protocols/cohere-chat.js +317 -0
- package/dist/protocols/deepgram-speech.d.ts +109 -0
- package/dist/protocols/deepgram-speech.js +93 -0
- package/dist/protocols/deepgram-transcription.d.ts +26 -0
- package/dist/protocols/deepgram-transcription.js +119 -0
- package/dist/protocols/elevenlabs-speech.d.ts +112 -0
- package/dist/protocols/elevenlabs-speech.js +111 -0
- package/dist/protocols/elevenlabs-transcription.d.ts +28 -0
- package/dist/protocols/elevenlabs-transcription.js +137 -0
- package/dist/protocols/gemini.d.ts +388 -0
- package/dist/protocols/gemini.js +741 -0
- package/dist/protocols/google-decisions.d.ts +13 -0
- package/dist/protocols/google-decisions.js +133 -0
- package/dist/protocols/google-embed-content.d.ts +34 -0
- package/dist/protocols/google-embed-content.js +110 -0
- package/dist/protocols/google-images.d.ts +18 -0
- package/dist/protocols/google-images.js +169 -0
- package/dist/protocols/google-interactions-video.d.ts +38 -0
- package/dist/protocols/google-interactions-video.js +185 -0
- package/dist/protocols/google-interactions.d.ts +554 -0
- package/dist/protocols/google-interactions.js +756 -0
- package/dist/protocols/google-speech.d.ts +120 -0
- package/dist/protocols/google-speech.js +94 -0
- package/dist/protocols/google-transcription.d.ts +148 -0
- package/dist/protocols/google-transcription.js +129 -0
- package/dist/protocols/google-vertex-predict-embeddings.d.ts +18 -0
- package/dist/protocols/google-vertex-predict-embeddings.js +74 -0
- package/dist/protocols/index.d.ts +21 -0
- package/dist/protocols/index.js +21 -0
- package/dist/protocols/meta-images.d.ts +26 -0
- package/dist/protocols/meta-images.js +101 -0
- package/dist/protocols/meta-messages.d.ts +423 -0
- package/dist/protocols/meta-messages.js +63 -0
- package/dist/protocols/meta-responses.d.ts +533 -0
- package/dist/protocols/meta-responses.js +189 -0
- package/dist/protocols/minimax-images.d.ts +25 -0
- package/dist/protocols/minimax-images.js +150 -0
- package/dist/protocols/minimax-video.d.ts +45 -0
- package/dist/protocols/minimax-video.js +296 -0
- package/dist/protocols/mistral-chat.d.ts +565 -0
- package/dist/protocols/mistral-chat.js +606 -0
- package/dist/protocols/open-responses-channel.d.ts +25 -0
- package/dist/protocols/open-responses-channel.js +137 -0
- package/dist/protocols/open-responses-continuation.d.ts +18 -0
- package/dist/protocols/open-responses-continuation.js +172 -0
- package/dist/protocols/open-responses.d.ts +2509 -0
- package/dist/protocols/open-responses.js +1335 -0
- package/dist/protocols/openai-chat.d.ts +2571 -0
- package/dist/protocols/openai-chat.js +1140 -0
- package/dist/protocols/openai-compatible-chat.d.ts +184 -0
- package/dist/protocols/openai-compatible-chat.js +19 -0
- package/dist/protocols/openai-compatible-responses.d.ts +231 -0
- package/dist/protocols/openai-compatible-responses.js +18 -0
- package/dist/protocols/openai-decisions.d.ts +22 -0
- package/dist/protocols/openai-decisions.js +141 -0
- package/dist/protocols/openai-embeddings.d.ts +16 -0
- package/dist/protocols/openai-embeddings.js +76 -0
- package/dist/protocols/openai-freeform.d.ts +78 -0
- package/dist/protocols/openai-freeform.js +222 -0
- package/dist/protocols/openai-images.d.ts +148 -0
- package/dist/protocols/openai-images.js +303 -0
- package/dist/protocols/openai-responses.d.ts +1600 -0
- package/dist/protocols/openai-responses.js +360 -0
- package/dist/protocols/openai-speech.d.ts +110 -0
- package/dist/protocols/openai-speech.js +112 -0
- package/dist/protocols/openai-transcription.d.ts +185 -0
- package/dist/protocols/openai-transcription.js +206 -0
- package/dist/protocols/openrouter-video.d.ts +36 -0
- package/dist/protocols/openrouter-video.js +139 -0
- package/dist/protocols/seedance-video.d.ts +45 -0
- package/dist/protocols/seedance-video.js +217 -0
- package/dist/protocols/shared.d.ts +249 -0
- package/dist/protocols/shared.js +446 -0
- package/dist/protocols/system-one.d.ts +145 -0
- package/dist/protocols/system-one.js +272 -0
- package/dist/protocols/utils/bedrock-auth.d.ts +60 -0
- package/dist/protocols/utils/bedrock-auth.js +86 -0
- package/dist/protocols/utils/bedrock-cache.d.ts +19 -0
- package/dist/protocols/utils/bedrock-cache.js +49 -0
- package/dist/protocols/utils/bedrock-media.d.ts +53 -0
- package/dist/protocols/utils/bedrock-media.js +98 -0
- package/dist/protocols/utils/cache.d.ts +25 -0
- package/dist/protocols/utils/cache.js +33 -0
- package/dist/protocols/utils/claude-model.d.ts +8 -0
- package/dist/protocols/utils/claude-model.js +15 -0
- package/dist/protocols/utils/gateway-protocol.d.ts +17 -0
- package/dist/protocols/utils/gateway-protocol.js +59 -0
- package/dist/protocols/utils/gemini-generate-content.d.ts +75 -0
- package/dist/protocols/utils/gemini-generate-content.js +96 -0
- package/dist/protocols/utils/gemini-json-schema.d.ts +8 -0
- package/dist/protocols/utils/gemini-json-schema.js +76 -0
- package/dist/protocols/utils/image-sizing.d.ts +31 -0
- package/dist/protocols/utils/image-sizing.js +73 -0
- package/dist/protocols/utils/lifecycle.d.ts +24 -0
- package/dist/protocols/utils/lifecycle.js +62 -0
- package/dist/protocols/utils/media-input.d.ts +32 -0
- package/dist/protocols/utils/media-input.js +62 -0
- package/dist/protocols/utils/mistral-tool-id.d.ts +5 -0
- package/dist/protocols/utils/mistral-tool-id.js +31 -0
- package/dist/protocols/utils/open-responses-options.d.ts +54 -0
- package/dist/protocols/utils/open-responses-options.js +59 -0
- package/dist/protocols/utils/partial-json-options.d.ts +61 -0
- package/dist/protocols/utils/partial-json-options.js +51 -0
- package/dist/protocols/utils/partial-json.d.ts +8 -0
- package/dist/protocols/utils/partial-json.js +280 -0
- package/dist/protocols/utils/responses-checkpoint.d.ts +4 -0
- package/dist/protocols/utils/responses-checkpoint.js +103 -0
- package/dist/protocols/utils/responses-compaction.d.ts +6 -0
- package/dist/protocols/utils/responses-compaction.js +162 -0
- package/dist/protocols/utils/responses-hosted-tools.d.ts +122 -0
- package/dist/protocols/utils/responses-hosted-tools.js +63 -0
- package/dist/protocols/utils/speaker-turns.d.ts +3 -0
- package/dist/protocols/utils/speaker-turns.js +9 -0
- package/dist/protocols/utils/speech-stream.d.ts +49 -0
- package/dist/protocols/utils/speech-stream.js +64 -0
- package/dist/protocols/utils/tool-schema.d.ts +10 -0
- package/dist/protocols/utils/tool-schema.js +109 -0
- package/dist/protocols/utils/tool-stream.d.ts +478 -0
- package/dist/protocols/utils/tool-stream.js +153 -0
- package/dist/protocols/venice-chat.d.ts +340 -0
- package/dist/protocols/venice-chat.js +283 -0
- package/dist/protocols/xai-images.d.ts +25 -0
- package/dist/protocols/xai-images.js +87 -0
- package/dist/protocols/xai-responses.d.ts +294 -0
- package/dist/protocols/xai-responses.js +86 -0
- package/dist/protocols/xai-video.d.ts +35 -0
- package/dist/protocols/xai-video.js +159 -0
- package/dist/protocols/zai-chat.d.ts +296 -0
- package/dist/protocols/zai-chat.js +56 -0
- package/dist/protocols/zai-images.d.ts +20 -0
- package/dist/protocols/zai-images.js +79 -0
- package/dist/protocols/zai-messages.d.ts +409 -0
- package/dist/protocols/zai-messages.js +30 -0
- package/dist/protocols.d.ts +1 -0
- package/dist/protocols.js +1 -0
- package/dist/provider-error.d.ts +22 -0
- package/dist/provider-error.js +228 -0
- package/dist/provider-package.d.ts +17 -0
- package/dist/provider-package.js +1 -0
- package/dist/providers/alibaba/chat.d.ts +1 -0
- package/dist/providers/alibaba/chat.js +1 -0
- package/dist/providers/alibaba/embeddings.d.ts +2 -0
- package/dist/providers/alibaba/embeddings.js +1 -0
- package/dist/providers/alibaba/images.d.ts +2 -0
- package/dist/providers/alibaba/images.js +1 -0
- package/dist/providers/alibaba/messages.d.ts +3 -0
- package/dist/providers/alibaba/messages.js +1 -0
- package/dist/providers/alibaba/responses.d.ts +3 -0
- package/dist/providers/alibaba/responses.js +1 -0
- package/dist/providers/alibaba.d.ts +905 -0
- package/dist/providers/alibaba.js +119 -0
- package/dist/providers/amazon-bedrock/mantle/chat.d.ts +2 -0
- package/dist/providers/amazon-bedrock/mantle/chat.js +1 -0
- package/dist/providers/amazon-bedrock/mantle/messages.d.ts +2 -0
- package/dist/providers/amazon-bedrock/mantle/messages.js +1 -0
- package/dist/providers/amazon-bedrock/mantle/responses.d.ts +2 -0
- package/dist/providers/amazon-bedrock/mantle/responses.js +1 -0
- package/dist/providers/amazon-bedrock/mantle.d.ts +2 -0
- package/dist/providers/amazon-bedrock/mantle.js +1 -0
- package/dist/providers/amazon-bedrock-mantle.d.ts +789 -0
- package/dist/providers/amazon-bedrock-mantle.js +107 -0
- package/dist/providers/amazon-bedrock.d.ts +190 -0
- package/dist/providers/amazon-bedrock.js +44 -0
- package/dist/providers/anthropic-compatible.d.ts +364 -0
- package/dist/providers/anthropic-compatible.js +47 -0
- package/dist/providers/anthropic.d.ts +362 -0
- package/dist/providers/anthropic.js +36 -0
- package/dist/providers/assemblyai.d.ts +19 -0
- package/dist/providers/assemblyai.js +19 -0
- package/dist/providers/azure/chat.d.ts +2 -0
- package/dist/providers/azure/chat.js +1 -0
- package/dist/providers/azure/embeddings.d.ts +2 -0
- package/dist/providers/azure/embeddings.js +1 -0
- package/dist/providers/azure/images.d.ts +2 -0
- package/dist/providers/azure/images.js +1 -0
- package/dist/providers/azure/messages.d.ts +2 -0
- package/dist/providers/azure/messages.js +1 -0
- package/dist/providers/azure/responses.d.ts +2 -0
- package/dist/providers/azure/responses.js +1 -0
- package/dist/providers/azure.d.ts +1074 -0
- package/dist/providers/azure.js +150 -0
- package/dist/providers/baseten/decisions.d.ts +2 -0
- package/dist/providers/baseten/decisions.js +1 -0
- package/dist/providers/baseten.d.ts +384 -0
- package/dist/providers/baseten.js +56 -0
- package/dist/providers/byteplus/videos.d.ts +2 -0
- package/dist/providers/byteplus/videos.js +1 -0
- package/dist/providers/byteplus.d.ts +24 -0
- package/dist/providers/byteplus.js +21 -0
- package/dist/providers/cartesia.d.ts +18 -0
- package/dist/providers/cartesia.js +17 -0
- package/dist/providers/cerebras.d.ts +375 -0
- package/dist/providers/cerebras.js +33 -0
- package/dist/providers/cloudflare-ai-gateway/decisions.d.ts +2 -0
- package/dist/providers/cloudflare-ai-gateway/decisions.js +1 -0
- package/dist/providers/cloudflare-ai-gateway.d.ts +1581 -0
- package/dist/providers/cloudflare-ai-gateway.js +120 -0
- package/dist/providers/cloudflare-shared.d.ts +9 -0
- package/dist/providers/cloudflare-shared.js +25 -0
- package/dist/providers/cloudflare-workers-ai/decisions.d.ts +2 -0
- package/dist/providers/cloudflare-workers-ai/decisions.js +1 -0
- package/dist/providers/cloudflare-workers-ai/images.d.ts +2 -0
- package/dist/providers/cloudflare-workers-ai/images.js +1 -0
- package/dist/providers/cloudflare-workers-ai.d.ts +391 -0
- package/dist/providers/cloudflare-workers-ai.js +69 -0
- package/dist/providers/cohere/chat.d.ts +4 -0
- package/dist/providers/cohere/chat.js +3 -0
- package/dist/providers/cohere/embeddings.d.ts +2 -0
- package/dist/providers/cohere/embeddings.js +1 -0
- package/dist/providers/cohere.d.ts +502 -0
- package/dist/providers/cohere.js +55 -0
- package/dist/providers/deepgram.d.ts +22 -0
- package/dist/providers/deepgram.js +20 -0
- package/dist/providers/deepinfra/embeddings.d.ts +2 -0
- package/dist/providers/deepinfra/embeddings.js +1 -0
- package/dist/providers/deepinfra.d.ts +378 -0
- package/dist/providers/deepinfra.js +52 -0
- package/dist/providers/deepseek.d.ts +376 -0
- package/dist/providers/deepseek.js +30 -0
- package/dist/providers/digitalocean/decisions.d.ts +2 -0
- package/dist/providers/digitalocean/decisions.js +1 -0
- package/dist/providers/digitalocean/embeddings.d.ts +2 -0
- package/dist/providers/digitalocean/embeddings.js +1 -0
- package/dist/providers/digitalocean/images.d.ts +2 -0
- package/dist/providers/digitalocean/images.js +1 -0
- package/dist/providers/digitalocean/responses.d.ts +4 -0
- package/dist/providers/digitalocean/responses.js +1 -0
- package/dist/providers/digitalocean.d.ts +874 -0
- package/dist/providers/digitalocean.js +106 -0
- package/dist/providers/elevenlabs.d.ts +22 -0
- package/dist/providers/elevenlabs.js +22 -0
- package/dist/providers/fireworks/embeddings.d.ts +2 -0
- package/dist/providers/fireworks/embeddings.js +1 -0
- package/dist/providers/fireworks.d.ts +379 -0
- package/dist/providers/fireworks.js +40 -0
- package/dist/providers/google/decisions.d.ts +2 -0
- package/dist/providers/google/decisions.js +1 -0
- package/dist/providers/google/embeddings.d.ts +2 -0
- package/dist/providers/google/embeddings.js +1 -0
- package/dist/providers/google/images.d.ts +2 -0
- package/dist/providers/google/images.js +1 -0
- package/dist/providers/google/interactions.d.ts +7 -0
- package/dist/providers/google/interactions.js +3 -0
- package/dist/providers/google/videos.d.ts +2 -0
- package/dist/providers/google/videos.js +1 -0
- package/dist/providers/google-vertex/chat.d.ts +2 -0
- package/dist/providers/google-vertex/chat.js +1 -0
- package/dist/providers/google-vertex/embeddings.d.ts +2 -0
- package/dist/providers/google-vertex/embeddings.js +1 -0
- package/dist/providers/google-vertex/gemini.d.ts +2 -0
- package/dist/providers/google-vertex/gemini.js +1 -0
- package/dist/providers/google-vertex/images.d.ts +2 -0
- package/dist/providers/google-vertex/images.js +1 -0
- package/dist/providers/google-vertex/interactions.d.ts +2 -0
- package/dist/providers/google-vertex/interactions.js +1 -0
- package/dist/providers/google-vertex/messages.d.ts +2 -0
- package/dist/providers/google-vertex/messages.js +1 -0
- package/dist/providers/google-vertex/mistral.d.ts +2 -0
- package/dist/providers/google-vertex/mistral.js +1 -0
- package/dist/providers/google-vertex/responses.d.ts +2 -0
- package/dist/providers/google-vertex/responses.js +1 -0
- package/dist/providers/google-vertex-chat.d.ts +204 -0
- package/dist/providers/google-vertex-chat.js +29 -0
- package/dist/providers/google-vertex-interactions.d.ts +111 -0
- package/dist/providers/google-vertex-interactions.js +62 -0
- package/dist/providers/google-vertex-messages.d.ts +362 -0
- package/dist/providers/google-vertex-messages.js +51 -0
- package/dist/providers/google-vertex-mistral.d.ts +120 -0
- package/dist/providers/google-vertex-mistral.js +43 -0
- package/dist/providers/google-vertex-responses.d.ts +253 -0
- package/dist/providers/google-vertex-responses.js +30 -0
- package/dist/providers/google-vertex-shared.d.ts +58 -0
- package/dist/providers/google-vertex-shared.js +128 -0
- package/dist/providers/google-vertex.d.ts +132 -0
- package/dist/providers/google-vertex.js +161 -0
- package/dist/providers/google.d.ts +246 -0
- package/dist/providers/google.js +80 -0
- package/dist/providers/groq.d.ts +470 -0
- package/dist/providers/groq.js +63 -0
- package/dist/providers/index.d.ts +45 -0
- package/dist/providers/index.js +45 -0
- package/dist/providers/meta/chat.d.ts +2 -0
- package/dist/providers/meta/chat.js +1 -0
- package/dist/providers/meta/images.d.ts +2 -0
- package/dist/providers/meta/images.js +1 -0
- package/dist/providers/meta/messages.d.ts +2 -0
- package/dist/providers/meta/messages.js +1 -0
- package/dist/providers/meta/responses.d.ts +2 -0
- package/dist/providers/meta/responses.js +1 -0
- package/dist/providers/meta.d.ts +804 -0
- package/dist/providers/meta.js +96 -0
- package/dist/providers/minimax/chat.d.ts +4 -0
- package/dist/providers/minimax/chat.js +3 -0
- package/dist/providers/minimax/images.d.ts +3 -0
- package/dist/providers/minimax/images.js +1 -0
- package/dist/providers/minimax/messages.d.ts +1 -0
- package/dist/providers/minimax/messages.js +1 -0
- package/dist/providers/minimax/responses.d.ts +4 -0
- package/dist/providers/minimax/responses.js +3 -0
- package/dist/providers/minimax/videos.d.ts +3 -0
- package/dist/providers/minimax/videos.js +1 -0
- package/dist/providers/minimax.d.ts +798 -0
- package/dist/providers/minimax.js +99 -0
- package/dist/providers/mistral.d.ts +208 -0
- package/dist/providers/mistral.js +17 -0
- package/dist/providers/moonshot/chat.d.ts +1 -0
- package/dist/providers/moonshot/chat.js +1 -0
- package/dist/providers/moonshot/messages.d.ts +4 -0
- package/dist/providers/moonshot/messages.js +3 -0
- package/dist/providers/moonshot/responses.d.ts +4 -0
- package/dist/providers/moonshot/responses.js +3 -0
- package/dist/providers/moonshot.d.ts +785 -0
- package/dist/providers/moonshot.js +78 -0
- package/dist/providers/open-responses-options.d.ts +5 -0
- package/dist/providers/open-responses-options.js +1 -0
- package/dist/providers/openai/chat.d.ts +2 -0
- package/dist/providers/openai/chat.js +1 -0
- package/dist/providers/openai/embeddings.d.ts +2 -0
- package/dist/providers/openai/embeddings.js +1 -0
- package/dist/providers/openai/images.d.ts +2 -0
- package/dist/providers/openai/images.js +1 -0
- package/dist/providers/openai/responses.d.ts +2 -0
- package/dist/providers/openai/responses.js +1 -0
- package/dist/providers/openai-compatible/decisions.d.ts +2 -0
- package/dist/providers/openai-compatible/decisions.js +1 -0
- package/dist/providers/openai-compatible/embeddings.d.ts +2 -0
- package/dist/providers/openai-compatible/embeddings.js +1 -0
- package/dist/providers/openai-compatible/images.d.ts +2 -0
- package/dist/providers/openai-compatible/images.js +1 -0
- package/dist/providers/openai-compatible/responses.d.ts +1 -0
- package/dist/providers/openai-compatible/responses.js +1 -0
- package/dist/providers/openai-compatible-responses.d.ts +250 -0
- package/dist/providers/openai-compatible-responses.js +26 -0
- package/dist/providers/openai-compatible.d.ts +208 -0
- package/dist/providers/openai-compatible.js +71 -0
- package/dist/providers/openai-options.d.ts +21 -0
- package/dist/providers/openai-options.js +37 -0
- package/dist/providers/openai.d.ts +522 -0
- package/dist/providers/openai.js +118 -0
- package/dist/providers/opencode/decisions.d.ts +2 -0
- package/dist/providers/opencode/decisions.js +1 -0
- package/dist/providers/opencode.d.ts +23 -0
- package/dist/providers/opencode.js +25 -0
- package/dist/providers/openrouter/decisions.d.ts +2 -0
- package/dist/providers/openrouter/decisions.js +1 -0
- package/dist/providers/openrouter/embeddings.d.ts +2 -0
- package/dist/providers/openrouter/embeddings.js +1 -0
- package/dist/providers/openrouter/images.d.ts +2 -0
- package/dist/providers/openrouter/images.js +1 -0
- package/dist/providers/openrouter/responses.d.ts +3 -0
- package/dist/providers/openrouter/responses.js +1 -0
- package/dist/providers/openrouter/videos.d.ts +2 -0
- package/dist/providers/openrouter/videos.js +1 -0
- package/dist/providers/openrouter.d.ts +1204 -0
- package/dist/providers/openrouter.js +210 -0
- package/dist/providers/settings.d.ts +40 -0
- package/dist/providers/settings.js +18 -0
- package/dist/providers/togetherai.d.ts +375 -0
- package/dist/providers/togetherai.js +30 -0
- package/dist/providers/typesafe-ai/decisions.d.ts +2 -0
- package/dist/providers/typesafe-ai/decisions.js +1 -0
- package/dist/providers/typesafe-ai.d.ts +23 -0
- package/dist/providers/typesafe-ai.js +25 -0
- package/dist/providers/venice/responses.d.ts +4 -0
- package/dist/providers/venice/responses.js +1 -0
- package/dist/providers/venice.d.ts +632 -0
- package/dist/providers/venice.js +57 -0
- package/dist/providers/vercel-ai-gateway/chat.d.ts +2 -0
- package/dist/providers/vercel-ai-gateway/chat.js +1 -0
- package/dist/providers/vercel-ai-gateway/decisions.d.ts +2 -0
- package/dist/providers/vercel-ai-gateway/decisions.js +1 -0
- package/dist/providers/vercel-ai-gateway/embeddings.d.ts +2 -0
- package/dist/providers/vercel-ai-gateway/embeddings.js +1 -0
- package/dist/providers/vercel-ai-gateway/images.d.ts +2 -0
- package/dist/providers/vercel-ai-gateway/images.js +1 -0
- package/dist/providers/vercel-ai-gateway/messages.d.ts +2 -0
- package/dist/providers/vercel-ai-gateway/messages.js +1 -0
- package/dist/providers/vercel-ai-gateway/responses.d.ts +2 -0
- package/dist/providers/vercel-ai-gateway/responses.js +1 -0
- package/dist/providers/vercel-ai-gateway.d.ts +111 -0
- package/dist/providers/vercel-ai-gateway.js +181 -0
- package/dist/providers/volcengine/videos.d.ts +2 -0
- package/dist/providers/volcengine/videos.js +1 -0
- package/dist/providers/volcengine.d.ts +24 -0
- package/dist/providers/volcengine.js +21 -0
- package/dist/providers/xai/images.d.ts +2 -0
- package/dist/providers/xai/images.js +1 -0
- package/dist/providers/xai/videos.d.ts +2 -0
- package/dist/providers/xai/videos.js +1 -0
- package/dist/providers/xai.d.ts +235 -0
- package/dist/providers/xai.js +89 -0
- package/dist/providers/zai/chat.d.ts +1 -0
- package/dist/providers/zai/chat.js +1 -0
- package/dist/providers/zai/images.d.ts +2 -0
- package/dist/providers/zai/images.js +1 -0
- package/dist/providers/zai-coding-plan/chat.d.ts +1 -0
- package/dist/providers/zai-coding-plan/chat.js +1 -0
- package/dist/providers/zai-coding-plan/messages.d.ts +4 -0
- package/dist/providers/zai-coding-plan/messages.js +3 -0
- package/dist/providers/zai-coding-plan/responses.d.ts +4 -0
- package/dist/providers/zai-coding-plan/responses.js +3 -0
- package/dist/providers/zai-coding-plan.d.ts +846 -0
- package/dist/providers/zai-coding-plan.js +56 -0
- package/dist/providers/zai.d.ts +285 -0
- package/dist/providers/zai.js +44 -0
- package/dist/providers.d.ts +1 -0
- package/dist/providers.js +1 -0
- package/dist/public.d.ts +18 -0
- package/dist/public.js +7 -0
- package/dist/route/auth-options.d.ts +35 -0
- package/dist/route/auth-options.js +17 -0
- package/dist/route/auth.d.ts +52 -0
- package/dist/route/auth.js +92 -0
- package/dist/route/client.d.ts +229 -0
- package/dist/route/client.js +293 -0
- package/dist/route/decision.d.ts +55 -0
- package/dist/route/decision.js +73 -0
- package/dist/route/embedding.d.ts +58 -0
- package/dist/route/embedding.js +85 -0
- package/dist/route/endpoint.d.ts +29 -0
- package/dist/route/endpoint.js +21 -0
- package/dist/route/executor-service.d.ts +54 -0
- package/dist/route/executor-service.js +115 -0
- package/dist/route/executor.d.ts +37 -0
- package/dist/route/executor.js +225 -0
- package/dist/route/framing.d.ts +44 -0
- package/dist/route/framing.js +63 -0
- package/dist/route/index.d.ts +21 -0
- package/dist/route/index.js +18 -0
- package/dist/route/media-protocol.d.ts +187 -0
- package/dist/route/media-protocol.js +117 -0
- package/dist/route/media.d.ts +91 -0
- package/dist/route/media.js +251 -0
- package/dist/route/protocol.d.ts +85 -0
- package/dist/route/protocol.js +19 -0
- package/dist/route/transport/http.d.ts +34 -0
- package/dist/route/transport/http.js +67 -0
- package/dist/route/transport/index.d.ts +42 -0
- package/dist/route/transport/index.js +4 -0
- package/dist/route/transport/websocket-channel.d.ts +56 -0
- package/dist/route/transport/websocket-channel.js +1 -0
- package/dist/route/transport/websocket.d.ts +32 -0
- package/dist/route/transport/websocket.js +315 -0
- package/dist/route.d.ts +1 -0
- package/dist/route.js +1 -0
- package/dist/schema/errors.d.ts +194 -0
- package/dist/schema/errors.js +217 -0
- package/dist/schema/events.d.ts +11001 -0
- package/dist/schema/events.js +542 -0
- package/dist/schema/ids.d.ts +17 -0
- package/dist/schema/ids.js +10 -0
- package/dist/schema/index.d.ts +5 -0
- package/dist/schema/index.js +5 -0
- package/dist/schema/messages.d.ts +2706 -0
- package/dist/schema/messages.js +344 -0
- package/dist/schema/options.d.ts +270 -0
- package/dist/schema/options.js +198 -0
- package/dist/speech.d.ts +266 -0
- package/dist/speech.js +114 -0
- package/dist/test-ai.d.ts +15 -0
- package/dist/test-ai.js +49 -0
- package/dist/testing.d.ts +1585 -0
- package/dist/testing.js +108 -0
- package/dist/tool-history.d.ts +2 -0
- package/dist/tool-history.js +91 -0
- package/dist/tool-runtime.d.ts +22 -0
- package/dist/tool-runtime.js +55 -0
- package/dist/tool-updates.d.ts +34 -0
- package/dist/tool-updates.js +93 -0
- package/dist/tool.d.ts +150 -0
- package/dist/tool.js +159 -0
- package/dist/transcription.d.ts +254 -0
- package/dist/transcription.js +119 -0
- package/dist/utils/bytes.d.ts +1 -0
- package/dist/utils/bytes.js +10 -0
- package/dist/utils/json.d.ts +4 -0
- package/dist/utils/json.js +4 -0
- package/dist/utils/media-type.d.ts +8 -0
- package/dist/utils/media-type.js +93 -0
- package/dist/utils/provider-codes.d.ts +3 -0
- package/dist/utils/provider-codes.js +41 -0
- package/dist/utils/record.d.ts +2 -0
- package/dist/utils/record.js +2 -0
- package/dist/utils/sanitize.d.ts +5 -0
- package/dist/utils/sanitize.js +31 -0
- package/dist/video-client.d.ts +12 -0
- package/dist/video-client.js +24 -0
- package/dist/video.d.ts +178 -0
- package/dist/video.js +79 -0
- package/package.json +648 -4
|
@@ -0,0 +1,632 @@
|
|
|
1
|
+
import type { ProviderPackage } from "../provider-package.js";
|
|
2
|
+
import { VeniceChat } from "../protocols/venice-chat.js";
|
|
3
|
+
import { type ProviderAuthOption } from "../route/auth-options.js";
|
|
4
|
+
import { Route } from "../route/client.js";
|
|
5
|
+
import { type ModelID, type RequestOptions } from "../schema/index.js";
|
|
6
|
+
import type { OpenResponsesProviderOptionsInput } from "./open-responses-options.js";
|
|
7
|
+
export declare const id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
8
|
+
export type ChatOptionsInput = VeniceChat.OptionsInput;
|
|
9
|
+
export type Config = Omit<RequestOptions, "providerOptions"> & ProviderAuthOption<"optional"> & {
|
|
10
|
+
readonly baseURL?: string;
|
|
11
|
+
readonly queryParams?: Readonly<Record<string, string>>;
|
|
12
|
+
readonly providerOptions?: ChatOptionsInput | OpenResponsesProviderOptionsInput;
|
|
13
|
+
};
|
|
14
|
+
export type Settings<Options = ChatOptionsInput> = ProviderPackage.Settings & Options & {
|
|
15
|
+
readonly apiKey?: string | false;
|
|
16
|
+
readonly baseURL?: string;
|
|
17
|
+
readonly queryParams?: Readonly<Record<string, string>>;
|
|
18
|
+
};
|
|
19
|
+
export declare const routes: (Route<{
|
|
20
|
+
readonly model: string;
|
|
21
|
+
readonly input: readonly ({
|
|
22
|
+
readonly type: "configuration_update";
|
|
23
|
+
readonly reasoning: {
|
|
24
|
+
readonly effort: import("../schema/options.js").ReasoningEffort;
|
|
25
|
+
};
|
|
26
|
+
} | {
|
|
27
|
+
readonly type: "additional_tools";
|
|
28
|
+
readonly role: "developer";
|
|
29
|
+
readonly tools: readonly ({
|
|
30
|
+
readonly type: "custom";
|
|
31
|
+
readonly name: string;
|
|
32
|
+
readonly description: string;
|
|
33
|
+
readonly format: {
|
|
34
|
+
readonly type: "text";
|
|
35
|
+
} | {
|
|
36
|
+
readonly type: "grammar";
|
|
37
|
+
readonly syntax: "lark" | "regex";
|
|
38
|
+
readonly definition: string;
|
|
39
|
+
};
|
|
40
|
+
} | {
|
|
41
|
+
readonly type: "function";
|
|
42
|
+
readonly name: string;
|
|
43
|
+
readonly description: string;
|
|
44
|
+
readonly parameters: {
|
|
45
|
+
readonly [x: string]: unknown;
|
|
46
|
+
};
|
|
47
|
+
readonly strict?: boolean | undefined;
|
|
48
|
+
} | {
|
|
49
|
+
readonly [x: string]: unknown;
|
|
50
|
+
readonly type: string;
|
|
51
|
+
})[];
|
|
52
|
+
} | {
|
|
53
|
+
readonly type: "message";
|
|
54
|
+
readonly role: "system";
|
|
55
|
+
readonly content: string;
|
|
56
|
+
} | {
|
|
57
|
+
readonly type: "message";
|
|
58
|
+
readonly role: "developer";
|
|
59
|
+
readonly content: string;
|
|
60
|
+
} | {
|
|
61
|
+
readonly type: "custom_tool_call_output" | "function_call_output";
|
|
62
|
+
readonly call_id: string;
|
|
63
|
+
readonly output: string | readonly ({
|
|
64
|
+
readonly type: "input_text";
|
|
65
|
+
readonly text: string;
|
|
66
|
+
} | {
|
|
67
|
+
readonly type: "input_video";
|
|
68
|
+
readonly video_url: string;
|
|
69
|
+
} | {
|
|
70
|
+
readonly type: "input_image";
|
|
71
|
+
readonly image_url: string;
|
|
72
|
+
readonly detail?: string | undefined;
|
|
73
|
+
} | {
|
|
74
|
+
readonly type: "input_file";
|
|
75
|
+
readonly filename?: string | undefined;
|
|
76
|
+
readonly detail?: string | undefined;
|
|
77
|
+
readonly file_data?: string | undefined;
|
|
78
|
+
readonly file_url?: string | undefined;
|
|
79
|
+
})[];
|
|
80
|
+
} | {
|
|
81
|
+
readonly type: "reasoning";
|
|
82
|
+
readonly id?: string | undefined;
|
|
83
|
+
readonly summary: readonly {
|
|
84
|
+
readonly type: "summary_text";
|
|
85
|
+
readonly text: string;
|
|
86
|
+
}[];
|
|
87
|
+
readonly encrypted_content?: string | null | undefined;
|
|
88
|
+
} | {
|
|
89
|
+
readonly type: "compaction";
|
|
90
|
+
readonly id?: string | null | undefined;
|
|
91
|
+
readonly encrypted_content: string;
|
|
92
|
+
} | {
|
|
93
|
+
readonly type: "message";
|
|
94
|
+
readonly role: "user";
|
|
95
|
+
readonly content: readonly ({
|
|
96
|
+
readonly type: "input_text";
|
|
97
|
+
readonly text: string;
|
|
98
|
+
} | {
|
|
99
|
+
readonly type: "input_video";
|
|
100
|
+
readonly video_url: string;
|
|
101
|
+
} | {
|
|
102
|
+
readonly type: "input_image";
|
|
103
|
+
readonly image_url: string;
|
|
104
|
+
readonly detail?: string | undefined;
|
|
105
|
+
} | {
|
|
106
|
+
readonly type: "input_file";
|
|
107
|
+
readonly filename?: string | undefined;
|
|
108
|
+
readonly detail?: string | undefined;
|
|
109
|
+
readonly file_data?: string | undefined;
|
|
110
|
+
readonly file_url?: string | undefined;
|
|
111
|
+
})[];
|
|
112
|
+
readonly id?: string | undefined;
|
|
113
|
+
readonly status?: string | undefined;
|
|
114
|
+
} | {
|
|
115
|
+
readonly type: "message";
|
|
116
|
+
readonly id?: string | undefined;
|
|
117
|
+
readonly role: "assistant";
|
|
118
|
+
readonly content: readonly {
|
|
119
|
+
readonly type: "output_text";
|
|
120
|
+
readonly text: string;
|
|
121
|
+
}[];
|
|
122
|
+
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
123
|
+
readonly status?: string | undefined;
|
|
124
|
+
} | {
|
|
125
|
+
readonly type: "function_call";
|
|
126
|
+
readonly id?: string | undefined;
|
|
127
|
+
readonly call_id: string;
|
|
128
|
+
readonly name: string;
|
|
129
|
+
readonly namespace?: string | undefined;
|
|
130
|
+
readonly arguments: string;
|
|
131
|
+
} | {
|
|
132
|
+
readonly type: "custom_tool_call";
|
|
133
|
+
readonly id?: string | undefined;
|
|
134
|
+
readonly call_id: string;
|
|
135
|
+
readonly name: string;
|
|
136
|
+
readonly input: string;
|
|
137
|
+
} | {
|
|
138
|
+
readonly [x: string]: unknown;
|
|
139
|
+
readonly type: "web_search_call";
|
|
140
|
+
readonly id: string;
|
|
141
|
+
readonly status?: string | undefined;
|
|
142
|
+
readonly action?: {
|
|
143
|
+
readonly [x: string]: unknown;
|
|
144
|
+
} | null | undefined;
|
|
145
|
+
} | {
|
|
146
|
+
readonly [x: string]: unknown;
|
|
147
|
+
readonly type: "file_search_call";
|
|
148
|
+
readonly id: string;
|
|
149
|
+
readonly status?: string | undefined;
|
|
150
|
+
readonly queries?: readonly string[] | undefined;
|
|
151
|
+
readonly results?: readonly {
|
|
152
|
+
readonly [x: string]: unknown;
|
|
153
|
+
}[] | null | undefined;
|
|
154
|
+
} | {
|
|
155
|
+
readonly [x: string]: unknown;
|
|
156
|
+
readonly type: "code_interpreter_call";
|
|
157
|
+
readonly id: string;
|
|
158
|
+
readonly status?: string | undefined;
|
|
159
|
+
readonly code?: string | null | undefined;
|
|
160
|
+
readonly container_id?: string | null | undefined;
|
|
161
|
+
readonly outputs?: readonly {
|
|
162
|
+
readonly [x: string]: unknown;
|
|
163
|
+
}[] | null | undefined;
|
|
164
|
+
} | {
|
|
165
|
+
readonly [x: string]: unknown;
|
|
166
|
+
readonly type: "mcp_call";
|
|
167
|
+
readonly id: string;
|
|
168
|
+
readonly status?: string | undefined;
|
|
169
|
+
readonly server_label?: string | undefined;
|
|
170
|
+
readonly name?: string | undefined;
|
|
171
|
+
readonly arguments?: string | undefined;
|
|
172
|
+
readonly output?: string | null | undefined;
|
|
173
|
+
readonly error?: unknown;
|
|
174
|
+
} | {
|
|
175
|
+
readonly [x: string]: unknown;
|
|
176
|
+
readonly type: string;
|
|
177
|
+
readonly id: string;
|
|
178
|
+
})[];
|
|
179
|
+
readonly instructions?: string | undefined;
|
|
180
|
+
readonly tools?: readonly ({
|
|
181
|
+
readonly type: "custom";
|
|
182
|
+
readonly name: string;
|
|
183
|
+
readonly description: string;
|
|
184
|
+
readonly format: {
|
|
185
|
+
readonly type: "text";
|
|
186
|
+
} | {
|
|
187
|
+
readonly type: "grammar";
|
|
188
|
+
readonly syntax: "lark" | "regex";
|
|
189
|
+
readonly definition: string;
|
|
190
|
+
};
|
|
191
|
+
} | {
|
|
192
|
+
readonly type: "function";
|
|
193
|
+
readonly name: string;
|
|
194
|
+
readonly description: string;
|
|
195
|
+
readonly parameters: {
|
|
196
|
+
readonly [x: string]: unknown;
|
|
197
|
+
};
|
|
198
|
+
readonly strict?: boolean | undefined;
|
|
199
|
+
} | {
|
|
200
|
+
readonly [x: string]: unknown;
|
|
201
|
+
readonly type: string;
|
|
202
|
+
})[] | undefined;
|
|
203
|
+
readonly tool_choice?: "auto" | "none" | "required" | {
|
|
204
|
+
readonly type: "custom" | "function";
|
|
205
|
+
readonly name: string;
|
|
206
|
+
} | {
|
|
207
|
+
readonly type: "allowed_tools";
|
|
208
|
+
readonly mode: "auto" | "none" | "required";
|
|
209
|
+
readonly tools: readonly {
|
|
210
|
+
readonly type: "custom" | "function";
|
|
211
|
+
readonly name: string;
|
|
212
|
+
}[];
|
|
213
|
+
} | undefined;
|
|
214
|
+
readonly store?: boolean | undefined;
|
|
215
|
+
readonly metadata?: {
|
|
216
|
+
readonly [x: string]: string;
|
|
217
|
+
} | undefined;
|
|
218
|
+
readonly safety_identifier?: string | undefined;
|
|
219
|
+
readonly stream_options?: {
|
|
220
|
+
readonly include_obfuscation?: boolean | undefined;
|
|
221
|
+
} | undefined;
|
|
222
|
+
readonly top_logprobs?: number | undefined;
|
|
223
|
+
readonly truncation?: "auto" | "disabled" | undefined;
|
|
224
|
+
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
225
|
+
readonly prompt_cache_key?: string | undefined;
|
|
226
|
+
readonly include?: readonly import("../schema/options.js").OpenString<"code_interpreter_call.outputs" | "computer_call_output.output.image_url" | "file_search_call.results" | "message.input_image.image_url" | "message.output_text.logprobs" | "reasoning.encrypted_content" | "web_search_call.action.sources" | "web_search_call.results">[] | undefined;
|
|
227
|
+
readonly reasoning?: {
|
|
228
|
+
readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
229
|
+
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
230
|
+
} | undefined;
|
|
231
|
+
readonly text?: {
|
|
232
|
+
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
233
|
+
} | undefined;
|
|
234
|
+
readonly max_output_tokens?: number | undefined;
|
|
235
|
+
readonly max_tool_calls?: number | undefined;
|
|
236
|
+
readonly parallel_tool_calls?: boolean | undefined;
|
|
237
|
+
readonly temperature?: number | undefined;
|
|
238
|
+
readonly top_p?: number | undefined;
|
|
239
|
+
readonly presence_penalty?: number | undefined;
|
|
240
|
+
readonly frequency_penalty?: number | undefined;
|
|
241
|
+
readonly stream: true;
|
|
242
|
+
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | Route<{
|
|
243
|
+
readonly model: string;
|
|
244
|
+
readonly tools?: readonly ({
|
|
245
|
+
readonly type: "function";
|
|
246
|
+
readonly function: {
|
|
247
|
+
readonly name: string;
|
|
248
|
+
readonly description: string;
|
|
249
|
+
readonly parameters: {
|
|
250
|
+
readonly [x: string]: unknown;
|
|
251
|
+
};
|
|
252
|
+
readonly strict?: boolean | undefined;
|
|
253
|
+
};
|
|
254
|
+
readonly cache_control?: {
|
|
255
|
+
readonly type: "ephemeral";
|
|
256
|
+
readonly ttl?: string | undefined;
|
|
257
|
+
} | undefined;
|
|
258
|
+
} | {
|
|
259
|
+
readonly type: "custom";
|
|
260
|
+
readonly custom: {
|
|
261
|
+
readonly name: string;
|
|
262
|
+
readonly description: string;
|
|
263
|
+
readonly format: {
|
|
264
|
+
readonly type: "text";
|
|
265
|
+
} | {
|
|
266
|
+
readonly type: "grammar";
|
|
267
|
+
readonly grammar: {
|
|
268
|
+
readonly syntax: "lark" | "regex";
|
|
269
|
+
readonly definition: string;
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
readonly cache_control?: {
|
|
274
|
+
readonly type: "ephemeral";
|
|
275
|
+
readonly ttl?: string | undefined;
|
|
276
|
+
} | undefined;
|
|
277
|
+
})[] | undefined;
|
|
278
|
+
readonly tool_choice?: "auto" | "none" | "required" | {
|
|
279
|
+
readonly type: "function";
|
|
280
|
+
readonly function: {
|
|
281
|
+
readonly name: string;
|
|
282
|
+
};
|
|
283
|
+
} | {
|
|
284
|
+
readonly type: "custom";
|
|
285
|
+
readonly custom: {
|
|
286
|
+
readonly name: string;
|
|
287
|
+
};
|
|
288
|
+
} | undefined;
|
|
289
|
+
readonly stream: true;
|
|
290
|
+
readonly stream_options?: {
|
|
291
|
+
readonly include_usage: boolean;
|
|
292
|
+
} | undefined;
|
|
293
|
+
readonly store?: boolean | undefined;
|
|
294
|
+
readonly prompt_cache_key?: string | undefined;
|
|
295
|
+
readonly prompt_cache_options?: {
|
|
296
|
+
readonly ttl?: string | undefined;
|
|
297
|
+
} | undefined;
|
|
298
|
+
readonly reasoning_effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
299
|
+
readonly verbosity?: import("../schema/options.js").OpenString<"high" | "low" | "medium"> | undefined;
|
|
300
|
+
readonly service_tier?: import("../schema/options.js").OpenString<"auto" | "default" | "flex" | "priority"> | undefined;
|
|
301
|
+
readonly metadata?: {
|
|
302
|
+
readonly [x: string]: string;
|
|
303
|
+
} | undefined;
|
|
304
|
+
readonly safety_identifier?: string | undefined;
|
|
305
|
+
readonly tool_stream?: boolean | undefined;
|
|
306
|
+
readonly max_completion_tokens?: number | undefined;
|
|
307
|
+
readonly max_tokens?: number | undefined;
|
|
308
|
+
readonly temperature?: number | undefined;
|
|
309
|
+
readonly top_p?: number | undefined;
|
|
310
|
+
readonly frequency_penalty?: number | undefined;
|
|
311
|
+
readonly presence_penalty?: number | undefined;
|
|
312
|
+
readonly seed?: number | undefined;
|
|
313
|
+
readonly stop?: readonly string[] | undefined;
|
|
314
|
+
readonly messages: readonly ({
|
|
315
|
+
readonly role: "system";
|
|
316
|
+
readonly content: string | readonly ({
|
|
317
|
+
readonly type: "image_url";
|
|
318
|
+
readonly image_url: {
|
|
319
|
+
readonly url: string;
|
|
320
|
+
};
|
|
321
|
+
} | {
|
|
322
|
+
readonly type: "video_url";
|
|
323
|
+
readonly video_url: {
|
|
324
|
+
readonly url: string;
|
|
325
|
+
};
|
|
326
|
+
} | {
|
|
327
|
+
readonly type: "file";
|
|
328
|
+
readonly file: {
|
|
329
|
+
readonly filename: string;
|
|
330
|
+
readonly file_data: string;
|
|
331
|
+
};
|
|
332
|
+
} | {
|
|
333
|
+
readonly type: "text";
|
|
334
|
+
readonly text: string;
|
|
335
|
+
readonly cache_control?: {
|
|
336
|
+
readonly type: "ephemeral";
|
|
337
|
+
readonly ttl?: string | undefined;
|
|
338
|
+
} | undefined;
|
|
339
|
+
})[];
|
|
340
|
+
} | {
|
|
341
|
+
readonly role: "user";
|
|
342
|
+
readonly content: string | readonly ({
|
|
343
|
+
readonly type: "image_url";
|
|
344
|
+
readonly image_url: {
|
|
345
|
+
readonly url: string;
|
|
346
|
+
};
|
|
347
|
+
} | {
|
|
348
|
+
readonly type: "video_url";
|
|
349
|
+
readonly video_url: {
|
|
350
|
+
readonly url: string;
|
|
351
|
+
};
|
|
352
|
+
} | {
|
|
353
|
+
readonly type: "file";
|
|
354
|
+
readonly file: {
|
|
355
|
+
readonly filename: string;
|
|
356
|
+
readonly file_data: string;
|
|
357
|
+
};
|
|
358
|
+
} | {
|
|
359
|
+
readonly type: "text";
|
|
360
|
+
readonly text: string;
|
|
361
|
+
readonly cache_control?: {
|
|
362
|
+
readonly type: "ephemeral";
|
|
363
|
+
readonly ttl?: string | undefined;
|
|
364
|
+
} | undefined;
|
|
365
|
+
})[];
|
|
366
|
+
} | {
|
|
367
|
+
readonly role: "tool";
|
|
368
|
+
readonly tool_call_id: string;
|
|
369
|
+
readonly content: string | readonly {
|
|
370
|
+
readonly type: "text";
|
|
371
|
+
readonly text: string;
|
|
372
|
+
readonly cache_control?: {
|
|
373
|
+
readonly type: "ephemeral";
|
|
374
|
+
readonly ttl?: string | undefined;
|
|
375
|
+
} | undefined;
|
|
376
|
+
}[];
|
|
377
|
+
} | {
|
|
378
|
+
readonly [x: string]: unknown;
|
|
379
|
+
readonly role: "assistant";
|
|
380
|
+
readonly content: string | readonly {
|
|
381
|
+
readonly type: "text";
|
|
382
|
+
readonly text: string;
|
|
383
|
+
readonly cache_control?: {
|
|
384
|
+
readonly type: "ephemeral";
|
|
385
|
+
readonly ttl?: string | undefined;
|
|
386
|
+
} | undefined;
|
|
387
|
+
}[] | null;
|
|
388
|
+
readonly reasoning_content?: string | undefined;
|
|
389
|
+
readonly reasoning?: string | undefined;
|
|
390
|
+
readonly reasoning_text?: string | undefined;
|
|
391
|
+
readonly reasoning_details?: unknown;
|
|
392
|
+
readonly reasoning_opaque?: string | undefined;
|
|
393
|
+
readonly tool_calls?: readonly ({
|
|
394
|
+
readonly id: string;
|
|
395
|
+
readonly type: "custom";
|
|
396
|
+
readonly custom: {
|
|
397
|
+
readonly name: string;
|
|
398
|
+
readonly input: string;
|
|
399
|
+
};
|
|
400
|
+
} | {
|
|
401
|
+
readonly id: string;
|
|
402
|
+
readonly type: "function";
|
|
403
|
+
readonly function: {
|
|
404
|
+
readonly name: string;
|
|
405
|
+
readonly arguments: string;
|
|
406
|
+
};
|
|
407
|
+
readonly extra_content?: {
|
|
408
|
+
readonly google: {
|
|
409
|
+
readonly thought_signature: string;
|
|
410
|
+
};
|
|
411
|
+
} | undefined;
|
|
412
|
+
readonly thought_signature?: string | undefined;
|
|
413
|
+
})[] | undefined;
|
|
414
|
+
readonly thought_signature?: string | undefined;
|
|
415
|
+
})[];
|
|
416
|
+
readonly reasoning?: {
|
|
417
|
+
readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
418
|
+
readonly enabled?: boolean | undefined;
|
|
419
|
+
readonly summary?: import("../schema/options.js").OpenString<"auto" | "concise" | "detailed"> | undefined;
|
|
420
|
+
} | undefined;
|
|
421
|
+
readonly venice_parameters: {
|
|
422
|
+
readonly [x: string]: string | boolean;
|
|
423
|
+
};
|
|
424
|
+
readonly prompt_cache_retention?: import("../schema/options.js").OpenString<"24h" | "default" | "extended"> | undefined;
|
|
425
|
+
readonly parallel_tool_calls?: boolean | undefined;
|
|
426
|
+
readonly min_p?: number | undefined;
|
|
427
|
+
readonly top_k?: number | undefined;
|
|
428
|
+
readonly repetition_penalty?: number | undefined;
|
|
429
|
+
readonly stop_token_ids?: readonly number[] | undefined;
|
|
430
|
+
readonly logprobs?: boolean | undefined;
|
|
431
|
+
readonly top_logprobs?: number | undefined;
|
|
432
|
+
readonly max_temp?: number | undefined;
|
|
433
|
+
readonly min_temp?: number | undefined;
|
|
434
|
+
readonly response_format?: {
|
|
435
|
+
readonly [x: string]: unknown;
|
|
436
|
+
} | undefined;
|
|
437
|
+
readonly user?: string | undefined;
|
|
438
|
+
}, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined>)[];
|
|
439
|
+
export declare const configure: (input?: Config) => {
|
|
440
|
+
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
441
|
+
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<{
|
|
442
|
+
readonly reasoningEffort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
443
|
+
readonly reasoning?: {
|
|
444
|
+
readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
445
|
+
readonly enabled?: boolean | undefined;
|
|
446
|
+
readonly summary?: import("../schema/options.js").OpenString<"auto" | "concise" | "detailed"> | undefined;
|
|
447
|
+
} | undefined;
|
|
448
|
+
readonly veniceParameters?: {
|
|
449
|
+
readonly enableWebSearch?: import("../schema/options.js").OpenString<"auto" | "off" | "on"> | undefined;
|
|
450
|
+
readonly enableWebScraping?: boolean | undefined;
|
|
451
|
+
readonly enableWebCitations?: boolean | undefined;
|
|
452
|
+
readonly enableXSearch?: boolean | undefined;
|
|
453
|
+
readonly stripThinkingResponse?: boolean | undefined;
|
|
454
|
+
readonly disableThinking?: boolean | undefined;
|
|
455
|
+
readonly includeVeniceSystemPrompt?: boolean | undefined;
|
|
456
|
+
readonly characterSlug?: string | undefined;
|
|
457
|
+
readonly includeSearchResultsInStream?: boolean | undefined;
|
|
458
|
+
readonly returnSearchResultsAsDocuments?: boolean | undefined;
|
|
459
|
+
} | undefined;
|
|
460
|
+
readonly promptCacheKey?: string | undefined;
|
|
461
|
+
readonly promptCacheRetention?: import("../schema/options.js").OpenString<"24h" | "default" | "extended"> | undefined;
|
|
462
|
+
readonly parallelToolCalls?: boolean | undefined;
|
|
463
|
+
readonly maxCompletionTokens?: number | undefined;
|
|
464
|
+
readonly maxTokens?: number | undefined;
|
|
465
|
+
readonly minP?: number | undefined;
|
|
466
|
+
readonly repetitionPenalty?: number | undefined;
|
|
467
|
+
readonly stopTokenIds?: readonly number[] | undefined;
|
|
468
|
+
readonly logprobs?: boolean | undefined;
|
|
469
|
+
readonly topLogprobs?: number | undefined;
|
|
470
|
+
readonly maxTemp?: number | undefined;
|
|
471
|
+
readonly minTemp?: number | undefined;
|
|
472
|
+
readonly responseFormat?: {
|
|
473
|
+
readonly [x: string]: unknown;
|
|
474
|
+
} | undefined;
|
|
475
|
+
readonly user?: string | undefined;
|
|
476
|
+
}, import("../route/client.js").CompactionOperations | undefined>;
|
|
477
|
+
chat: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<{
|
|
478
|
+
readonly reasoningEffort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
479
|
+
readonly reasoning?: {
|
|
480
|
+
readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
481
|
+
readonly enabled?: boolean | undefined;
|
|
482
|
+
readonly summary?: import("../schema/options.js").OpenString<"auto" | "concise" | "detailed"> | undefined;
|
|
483
|
+
} | undefined;
|
|
484
|
+
readonly veniceParameters?: {
|
|
485
|
+
readonly enableWebSearch?: import("../schema/options.js").OpenString<"auto" | "off" | "on"> | undefined;
|
|
486
|
+
readonly enableWebScraping?: boolean | undefined;
|
|
487
|
+
readonly enableWebCitations?: boolean | undefined;
|
|
488
|
+
readonly enableXSearch?: boolean | undefined;
|
|
489
|
+
readonly stripThinkingResponse?: boolean | undefined;
|
|
490
|
+
readonly disableThinking?: boolean | undefined;
|
|
491
|
+
readonly includeVeniceSystemPrompt?: boolean | undefined;
|
|
492
|
+
readonly characterSlug?: string | undefined;
|
|
493
|
+
readonly includeSearchResultsInStream?: boolean | undefined;
|
|
494
|
+
readonly returnSearchResultsAsDocuments?: boolean | undefined;
|
|
495
|
+
} | undefined;
|
|
496
|
+
readonly promptCacheKey?: string | undefined;
|
|
497
|
+
readonly promptCacheRetention?: import("../schema/options.js").OpenString<"24h" | "default" | "extended"> | undefined;
|
|
498
|
+
readonly parallelToolCalls?: boolean | undefined;
|
|
499
|
+
readonly maxCompletionTokens?: number | undefined;
|
|
500
|
+
readonly maxTokens?: number | undefined;
|
|
501
|
+
readonly minP?: number | undefined;
|
|
502
|
+
readonly repetitionPenalty?: number | undefined;
|
|
503
|
+
readonly stopTokenIds?: readonly number[] | undefined;
|
|
504
|
+
readonly logprobs?: boolean | undefined;
|
|
505
|
+
readonly topLogprobs?: number | undefined;
|
|
506
|
+
readonly maxTemp?: number | undefined;
|
|
507
|
+
readonly minTemp?: number | undefined;
|
|
508
|
+
readonly responseFormat?: {
|
|
509
|
+
readonly [x: string]: unknown;
|
|
510
|
+
} | undefined;
|
|
511
|
+
readonly user?: string | undefined;
|
|
512
|
+
}, import("../route/client.js").CompactionOperations | undefined>;
|
|
513
|
+
responses: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./open-responses-options.js").OpenResponsesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
514
|
+
configure: typeof configure;
|
|
515
|
+
};
|
|
516
|
+
export declare const provider: {
|
|
517
|
+
id: string & import("effect/Brand").Brand<"AI.ProviderID">;
|
|
518
|
+
model: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<{
|
|
519
|
+
readonly reasoningEffort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
520
|
+
readonly reasoning?: {
|
|
521
|
+
readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
522
|
+
readonly enabled?: boolean | undefined;
|
|
523
|
+
readonly summary?: import("../schema/options.js").OpenString<"auto" | "concise" | "detailed"> | undefined;
|
|
524
|
+
} | undefined;
|
|
525
|
+
readonly veniceParameters?: {
|
|
526
|
+
readonly enableWebSearch?: import("../schema/options.js").OpenString<"auto" | "off" | "on"> | undefined;
|
|
527
|
+
readonly enableWebScraping?: boolean | undefined;
|
|
528
|
+
readonly enableWebCitations?: boolean | undefined;
|
|
529
|
+
readonly enableXSearch?: boolean | undefined;
|
|
530
|
+
readonly stripThinkingResponse?: boolean | undefined;
|
|
531
|
+
readonly disableThinking?: boolean | undefined;
|
|
532
|
+
readonly includeVeniceSystemPrompt?: boolean | undefined;
|
|
533
|
+
readonly characterSlug?: string | undefined;
|
|
534
|
+
readonly includeSearchResultsInStream?: boolean | undefined;
|
|
535
|
+
readonly returnSearchResultsAsDocuments?: boolean | undefined;
|
|
536
|
+
} | undefined;
|
|
537
|
+
readonly promptCacheKey?: string | undefined;
|
|
538
|
+
readonly promptCacheRetention?: import("../schema/options.js").OpenString<"24h" | "default" | "extended"> | undefined;
|
|
539
|
+
readonly parallelToolCalls?: boolean | undefined;
|
|
540
|
+
readonly maxCompletionTokens?: number | undefined;
|
|
541
|
+
readonly maxTokens?: number | undefined;
|
|
542
|
+
readonly minP?: number | undefined;
|
|
543
|
+
readonly repetitionPenalty?: number | undefined;
|
|
544
|
+
readonly stopTokenIds?: readonly number[] | undefined;
|
|
545
|
+
readonly logprobs?: boolean | undefined;
|
|
546
|
+
readonly topLogprobs?: number | undefined;
|
|
547
|
+
readonly maxTemp?: number | undefined;
|
|
548
|
+
readonly minTemp?: number | undefined;
|
|
549
|
+
readonly responseFormat?: {
|
|
550
|
+
readonly [x: string]: unknown;
|
|
551
|
+
} | undefined;
|
|
552
|
+
readonly user?: string | undefined;
|
|
553
|
+
}, import("../route/client.js").CompactionOperations | undefined>;
|
|
554
|
+
chat: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<{
|
|
555
|
+
readonly reasoningEffort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
556
|
+
readonly reasoning?: {
|
|
557
|
+
readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
558
|
+
readonly enabled?: boolean | undefined;
|
|
559
|
+
readonly summary?: import("../schema/options.js").OpenString<"auto" | "concise" | "detailed"> | undefined;
|
|
560
|
+
} | undefined;
|
|
561
|
+
readonly veniceParameters?: {
|
|
562
|
+
readonly enableWebSearch?: import("../schema/options.js").OpenString<"auto" | "off" | "on"> | undefined;
|
|
563
|
+
readonly enableWebScraping?: boolean | undefined;
|
|
564
|
+
readonly enableWebCitations?: boolean | undefined;
|
|
565
|
+
readonly enableXSearch?: boolean | undefined;
|
|
566
|
+
readonly stripThinkingResponse?: boolean | undefined;
|
|
567
|
+
readonly disableThinking?: boolean | undefined;
|
|
568
|
+
readonly includeVeniceSystemPrompt?: boolean | undefined;
|
|
569
|
+
readonly characterSlug?: string | undefined;
|
|
570
|
+
readonly includeSearchResultsInStream?: boolean | undefined;
|
|
571
|
+
readonly returnSearchResultsAsDocuments?: boolean | undefined;
|
|
572
|
+
} | undefined;
|
|
573
|
+
readonly promptCacheKey?: string | undefined;
|
|
574
|
+
readonly promptCacheRetention?: import("../schema/options.js").OpenString<"24h" | "default" | "extended"> | undefined;
|
|
575
|
+
readonly parallelToolCalls?: boolean | undefined;
|
|
576
|
+
readonly maxCompletionTokens?: number | undefined;
|
|
577
|
+
readonly maxTokens?: number | undefined;
|
|
578
|
+
readonly minP?: number | undefined;
|
|
579
|
+
readonly repetitionPenalty?: number | undefined;
|
|
580
|
+
readonly stopTokenIds?: readonly number[] | undefined;
|
|
581
|
+
readonly logprobs?: boolean | undefined;
|
|
582
|
+
readonly topLogprobs?: number | undefined;
|
|
583
|
+
readonly maxTemp?: number | undefined;
|
|
584
|
+
readonly minTemp?: number | undefined;
|
|
585
|
+
readonly responseFormat?: {
|
|
586
|
+
readonly [x: string]: unknown;
|
|
587
|
+
} | undefined;
|
|
588
|
+
readonly user?: string | undefined;
|
|
589
|
+
}, import("../route/client.js").CompactionOperations | undefined>;
|
|
590
|
+
responses: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./open-responses-options.js").OpenResponsesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
591
|
+
configure: typeof configure;
|
|
592
|
+
};
|
|
593
|
+
export declare const chat: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<{
|
|
594
|
+
readonly reasoningEffort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
595
|
+
readonly reasoning?: {
|
|
596
|
+
readonly effort?: import("../schema/options.js").ReasoningEffort | undefined;
|
|
597
|
+
readonly enabled?: boolean | undefined;
|
|
598
|
+
readonly summary?: import("../schema/options.js").OpenString<"auto" | "concise" | "detailed"> | undefined;
|
|
599
|
+
} | undefined;
|
|
600
|
+
readonly veniceParameters?: {
|
|
601
|
+
readonly enableWebSearch?: import("../schema/options.js").OpenString<"auto" | "off" | "on"> | undefined;
|
|
602
|
+
readonly enableWebScraping?: boolean | undefined;
|
|
603
|
+
readonly enableWebCitations?: boolean | undefined;
|
|
604
|
+
readonly enableXSearch?: boolean | undefined;
|
|
605
|
+
readonly stripThinkingResponse?: boolean | undefined;
|
|
606
|
+
readonly disableThinking?: boolean | undefined;
|
|
607
|
+
readonly includeVeniceSystemPrompt?: boolean | undefined;
|
|
608
|
+
readonly characterSlug?: string | undefined;
|
|
609
|
+
readonly includeSearchResultsInStream?: boolean | undefined;
|
|
610
|
+
readonly returnSearchResultsAsDocuments?: boolean | undefined;
|
|
611
|
+
} | undefined;
|
|
612
|
+
readonly promptCacheKey?: string | undefined;
|
|
613
|
+
readonly promptCacheRetention?: import("../schema/options.js").OpenString<"24h" | "default" | "extended"> | undefined;
|
|
614
|
+
readonly parallelToolCalls?: boolean | undefined;
|
|
615
|
+
readonly maxCompletionTokens?: number | undefined;
|
|
616
|
+
readonly maxTokens?: number | undefined;
|
|
617
|
+
readonly minP?: number | undefined;
|
|
618
|
+
readonly repetitionPenalty?: number | undefined;
|
|
619
|
+
readonly stopTokenIds?: readonly number[] | undefined;
|
|
620
|
+
readonly logprobs?: boolean | undefined;
|
|
621
|
+
readonly topLogprobs?: number | undefined;
|
|
622
|
+
readonly maxTemp?: number | undefined;
|
|
623
|
+
readonly minTemp?: number | undefined;
|
|
624
|
+
readonly responseFormat?: {
|
|
625
|
+
readonly [x: string]: unknown;
|
|
626
|
+
} | undefined;
|
|
627
|
+
readonly user?: string | undefined;
|
|
628
|
+
}, import("../route/client.js").CompactionOperations | undefined>;
|
|
629
|
+
export declare const responses: (modelID: string | ModelID) => import("../schema/options.js").LanguageModel<import("./open-responses-options.js").OpenResponsesOptionsInput, import("../route/client.js").CompactionOperations | undefined>;
|
|
630
|
+
export declare const model: ProviderPackage.Model<Settings, ChatOptionsInput>;
|
|
631
|
+
export declare const responsesModel: ProviderPackage.Model<Settings<OpenResponsesProviderOptionsInput>, OpenResponsesProviderOptionsInput>;
|
|
632
|
+
export * as Venice from "./venice.js";
|