@opencode/ai 0.0.0-dev-21392 → 0.0.0-dev-21406

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.
Files changed (73) hide show
  1. package/dist/experimental/evaluation.d.ts +7 -6
  2. package/dist/experimental/evaluation.js +2 -3
  3. package/dist/experimental/realtime.js +2 -2
  4. package/dist/experimental/system-one.js +8 -8
  5. package/dist/llm.d.ts +2 -4
  6. package/dist/llm.js +2 -2
  7. package/dist/media.js +3 -3
  8. package/dist/promise.d.ts +1 -1
  9. package/dist/promise.js +3 -5
  10. package/dist/protocols/alibaba-chat.d.ts +6 -6
  11. package/dist/protocols/alibaba-chat.js +3 -3
  12. package/dist/protocols/alibaba-messages.d.ts +1 -1
  13. package/dist/protocols/alibaba-messages.js +1 -1
  14. package/dist/protocols/alibaba-responses.d.ts +3 -3
  15. package/dist/protocols/anthropic-messages.js +10 -12
  16. package/dist/protocols/bedrock-converse.js +2 -2
  17. package/dist/protocols/cohere-chat.d.ts +6 -2
  18. package/dist/protocols/cohere-chat.js +2 -2
  19. package/dist/protocols/gemini.d.ts +12 -2
  20. package/dist/protocols/gemini.js +10 -13
  21. package/dist/protocols/google-interactions.d.ts +2 -1
  22. package/dist/protocols/google-interactions.js +14 -9
  23. package/dist/protocols/meta-responses.d.ts +6 -6
  24. package/dist/protocols/mistral-chat.js +1 -4
  25. package/dist/protocols/open-responses.d.ts +21 -21
  26. package/dist/protocols/open-responses.js +3 -3
  27. package/dist/protocols/openai-chat.d.ts +8 -7
  28. package/dist/protocols/openai-chat.js +4 -5
  29. package/dist/protocols/openai-compatible-responses.d.ts +3 -3
  30. package/dist/protocols/openai-responses.d.ts +18 -18
  31. package/dist/protocols/utils/open-responses-options.d.ts +8 -8
  32. package/dist/protocols/utils/open-responses-options.js +4 -6
  33. package/dist/protocols/utils/partial-json.js +5 -4
  34. package/dist/protocols/utils/tool-schema.d.ts +0 -3
  35. package/dist/protocols/utils/tool-schema.js +0 -4
  36. package/dist/protocols/venice-chat.js +6 -6
  37. package/dist/protocols/xai-images.js +3 -4
  38. package/dist/protocols/xai-responses.d.ts +3 -3
  39. package/dist/provider-error.js +3 -4
  40. package/dist/providers/alibaba.d.ts +30 -30
  41. package/dist/providers/amazon-bedrock-mantle.d.ts +3 -3
  42. package/dist/providers/amazon-bedrock.d.ts +7 -7
  43. package/dist/providers/azure.d.ts +6 -6
  44. package/dist/providers/cloudflare-ai-gateway.d.ts +7 -7
  45. package/dist/providers/cloudflare-ai-gateway.js +2 -4
  46. package/dist/providers/cohere.d.ts +6 -2
  47. package/dist/providers/google-vertex-interactions.d.ts +3 -3
  48. package/dist/providers/google-vertex-messages.d.ts +18 -18
  49. package/dist/providers/google-vertex-mistral.d.ts +3 -3
  50. package/dist/providers/google-vertex-responses.d.ts +3 -3
  51. package/dist/providers/google.d.ts +66 -66
  52. package/dist/providers/meta.d.ts +21 -21
  53. package/dist/providers/minimax.d.ts +195 -195
  54. package/dist/providers/moonshot.d.ts +3 -3
  55. package/dist/providers/openai-compatible-responses.d.ts +3 -3
  56. package/dist/providers/openai-options.d.ts +3 -3
  57. package/dist/providers/openai.d.ts +3 -3
  58. package/dist/providers/vercel-ai-gateway.js +7 -6
  59. package/dist/providers/zai-coding-plan.d.ts +3 -3
  60. package/dist/route/client.d.ts +0 -216
  61. package/dist/route/client.js +1 -5
  62. package/dist/route/executor-service.d.ts +6 -2
  63. package/dist/route/executor-service.js +7 -0
  64. package/dist/route/executor.d.ts +2 -3
  65. package/dist/route/executor.js +2 -8
  66. package/dist/route/media-protocol.d.ts +1 -1
  67. package/dist/route/media-protocol.js +3 -3
  68. package/dist/route/transport/http.js +5 -8
  69. package/dist/route/transport/websocket.d.ts +0 -24
  70. package/dist/route/transport/websocket.js +0 -50
  71. package/package.json +3 -3
  72. package/dist/protocols/utils/openai-options.d.ts +0 -16
  73. package/dist/protocols/utils/openai-options.js +0 -15
@@ -1,15 +0,0 @@
1
- import { OpenResponsesOptions } from "./open-responses-options.js";
2
- export const OpenAIReasoningEfforts = OpenResponsesOptions.ReasoningEfforts;
3
- export const OpenAITextVerbosities = OpenResponsesOptions.TextVerbosities;
4
- // Mirrors OpenAI's `ResponseIncludable` union from the official SDK. Keep this
5
- // in lockstep with `openai-node/src/resources/responses/responses.ts`.
6
- export const OpenAIResponseIncludables = OpenResponsesOptions.ResponseIncludables;
7
- // Mirrors OpenAI's `ServiceTier` union from the official SDK.
8
- export const OpenAIServiceTiers = [...OpenResponsesOptions.ServiceTiers, "scale", "fast", "ultrafast"];
9
- export const OpenAIReasoningEffort = OpenResponsesOptions.ReasoningEffort;
10
- export const OpenAITextVerbosity = OpenResponsesOptions.TextVerbosity;
11
- export const OpenAIResponseIncludable = OpenResponsesOptions.ResponseIncludableSchema;
12
- export const OpenAIServiceTier = OpenResponsesOptions.ServiceTierSchema;
13
- export const isReasoningEffort = (effort) => typeof effort === "string";
14
- export const resolve = OpenResponsesOptions.resolve;
15
- export * as OpenAIOptions from "./openai-options.js";