@theokit/sdk 4.13.0 → 4.14.0

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 (37) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{cron-C7catiH8.d.ts → cron-DY0uC1ng.d.ts} +7 -0
  3. package/dist/{cron-DK1WVZnI.d.cts → cron-ElTj1cSH.d.cts} +7 -0
  4. package/dist/cron.cjs +183 -20
  5. package/dist/cron.cjs.map +1 -1
  6. package/dist/cron.d.cts +1 -1
  7. package/dist/cron.d.ts +1 -1
  8. package/dist/cron.js +183 -20
  9. package/dist/cron.js.map +1 -1
  10. package/dist/eval.cjs +183 -20
  11. package/dist/eval.cjs.map +1 -1
  12. package/dist/eval.js +183 -20
  13. package/dist/eval.js.map +1 -1
  14. package/dist/index.cjs +183 -20
  15. package/dist/index.cjs.map +1 -1
  16. package/dist/index.d.cts +2 -2
  17. package/dist/index.d.ts +2 -2
  18. package/dist/index.js +183 -20
  19. package/dist/index.js.map +1 -1
  20. package/dist/internal/llm/openai.d.ts +1 -0
  21. package/dist/internal/providers/builtin/cerebras.d.ts +5 -0
  22. package/dist/internal/providers/builtin/cohere.d.ts +6 -0
  23. package/dist/internal/providers/builtin/deepinfra.d.ts +2 -0
  24. package/dist/internal/providers/builtin/google.d.ts +6 -0
  25. package/dist/internal/providers/builtin/groq.d.ts +2 -0
  26. package/dist/internal/providers/builtin/mistral.d.ts +2 -0
  27. package/dist/internal/providers/builtin/openai-compatible.d.ts +1 -0
  28. package/dist/internal/providers/builtin/perplexity.d.ts +5 -0
  29. package/dist/internal/providers/builtin/together.d.ts +2 -0
  30. package/dist/internal/providers/builtin/xai.d.ts +2 -0
  31. package/dist/models.cjs +753 -17
  32. package/dist/models.cjs.map +1 -1
  33. package/dist/models.js +754 -18
  34. package/dist/models.js.map +1 -1
  35. package/dist/provider-catalog.json +473 -146
  36. package/dist/types/provider-profile.d.ts +7 -0
  37. package/package.json +1 -1
@@ -59,6 +59,7 @@ export declare class OpenAIClient implements LlmClient {
59
59
  private readonly options;
60
60
  readonly name = "openai";
61
61
  private readonly baseUrl;
62
+ private readonly chatPath;
62
63
  private readonly fetchImpl;
63
64
  constructor(options: OpenAIClientOptions);
64
65
  stream(request: LlmRequest, signal: AbortSignal): AsyncGenerator<LlmEvent, LlmFinish, void>;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * M45 — Cerebras. Integration header adapted from OpenCode's `cerebras.ts` (MIT — value changed to
3
+ * `theokit`, never `opencode`: the header attributes TRAFFIC). Models per models.dev (2026-07 snapshot).
4
+ */
5
+ export declare const CEREBRAS: import("../types.js").ProviderProfile;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * M45 — Cohere via its OpenAI-compatibility surface (`api.cohere.ai/compatibility/v1` — the native v2 API
3
+ * is NOT chat_completions; the discovery flagged the old catalog baseUrl as doubly wrong). Models per
4
+ * models.dev `cohere` (2026-07 snapshot).
5
+ */
6
+ export declare const COHERE: import("../types.js").ProviderProfile;
@@ -0,0 +1,2 @@
1
+ /** M45 — DeepInfra. OpenAI-compat surface under /v1/openai (models.dev `deepinfra`, OpenCode profile map). */
2
+ export declare const DEEPINFRA: import("../types.js").ProviderProfile;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * M45 — Google Gemini via the DIRECT OpenAI-compat endpoint (a Google API key, not OpenRouter). Distinct
3
+ * from the `gemini` builtin (an OpenRouter passthrough) by ADR D3 — two routes, two names. Endpoint + env
4
+ * vars per Google's OpenAI-compatibility docs (mirrored by models.dev `google` + the M44 catalog entry).
5
+ */
6
+ export declare const GOOGLE: import("../types.js").ProviderProfile;
@@ -0,0 +1,2 @@
1
+ /** M45 — Groq. Values per models.dev `groq` (2026-07 snapshot); OpenAI-compat surface under /openai/v1. */
2
+ export declare const GROQ: import("../types.js").ProviderProfile;
@@ -0,0 +1,2 @@
1
+ /** M45 — Mistral (La Plateforme). Values per models.dev `mistral` (2026-07 snapshot). */
2
+ export declare const MISTRAL: import("../types.js").ProviderProfile;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * M45 — Perplexity. Its endpoint is UNVERSIONED (`/chat/completions`) — the explicit `chatCompletionsPath`
3
+ * escape expresses it (the sonar-online model family was retired; models per models.dev `perplexity`).
4
+ */
5
+ export declare const PERPLEXITY: import("../types.js").ProviderProfile;
@@ -0,0 +1,2 @@
1
+ /** M45 — Together AI (models.dev id `togetherai` — kept as an alias). Values per the 2026-07 snapshot. */
2
+ export declare const TOGETHER: import("../types.js").ProviderProfile;
@@ -0,0 +1,2 @@
1
+ /** M45 — xAI (Grok). Values per models.dev `xai` (2026-07 snapshot; grok-2 retired). */
2
+ export declare const XAI: import("../types.js").ProviderProfile;