omk-ai 0.95.1 → 0.95.2

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 (46) hide show
  1. package/README.md +31 -2
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +1 -0
  5. package/dist/index.js.map +1 -1
  6. package/dist/models.generated.d.ts +145 -2
  7. package/dist/models.generated.d.ts.map +1 -1
  8. package/dist/models.generated.js +20 -5
  9. package/dist/models.generated.js.map +1 -1
  10. package/dist/providers/anthropic.d.ts.map +1 -1
  11. package/dist/providers/anthropic.js +45 -20
  12. package/dist/providers/anthropic.js.map +1 -1
  13. package/dist/providers/azure-openai-responses.d.ts.map +1 -1
  14. package/dist/providers/azure-openai-responses.js +2 -2
  15. package/dist/providers/azure-openai-responses.js.map +1 -1
  16. package/dist/providers/openai-codex-moa-stream-limits.d.ts +0 -1
  17. package/dist/providers/openai-codex-moa-stream-limits.d.ts.map +1 -1
  18. package/dist/providers/openai-codex-moa-stream-limits.js +1 -17
  19. package/dist/providers/openai-codex-moa-stream-limits.js.map +1 -1
  20. package/dist/providers/openai-codex-moa.d.ts.map +1 -1
  21. package/dist/providers/openai-codex-moa.js +2 -11
  22. package/dist/providers/openai-codex-moa.js.map +1 -1
  23. package/dist/providers/openai-codex-responses.d.ts.map +1 -1
  24. package/dist/providers/openai-codex-responses.js +2 -2
  25. package/dist/providers/openai-codex-responses.js.map +1 -1
  26. package/dist/providers/openai-completions.d.ts.map +1 -1
  27. package/dist/providers/openai-completions.js +23 -10
  28. package/dist/providers/openai-completions.js.map +1 -1
  29. package/dist/providers/openai-prompt-cache.d.ts +6 -0
  30. package/dist/providers/openai-prompt-cache.d.ts.map +1 -1
  31. package/dist/providers/openai-prompt-cache.js +13 -0
  32. package/dist/providers/openai-prompt-cache.js.map +1 -1
  33. package/dist/providers/openai-responses.d.ts.map +1 -1
  34. package/dist/providers/openai-responses.js +4 -2
  35. package/dist/providers/openai-responses.js.map +1 -1
  36. package/dist/providers/prompt-cache.d.ts +10 -0
  37. package/dist/providers/prompt-cache.d.ts.map +1 -0
  38. package/dist/providers/prompt-cache.js +40 -0
  39. package/dist/providers/prompt-cache.js.map +1 -0
  40. package/dist/providers/tool-schema.d.ts.map +1 -1
  41. package/dist/providers/tool-schema.js +10 -4
  42. package/dist/providers/tool-schema.js.map +1 -1
  43. package/dist/types.d.ts +7 -0
  44. package/dist/types.d.ts.map +1 -1
  45. package/dist/types.js.map +1 -1
  46. package/package.json +5 -5
@@ -3832,6 +3832,7 @@ export const MODELS = {
3832
3832
  baseUrl: "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/compat",
3833
3833
  compat: { "sendSessionAffinityHeaders": true },
3834
3834
  reasoning: true,
3835
+ thinkingLevelMap: { "off": null, "minimal": null, "low": "low", "medium": "medium", "high": "high", "xhigh": "xhigh", "max": "max" },
3835
3836
  input: ["text"],
3836
3837
  cost: {
3837
3838
  input: 1.4,
@@ -4069,6 +4070,7 @@ export const MODELS = {
4069
4070
  baseUrl: "https://api.cloudflare.com/client/v4/accounts/{CLOUDFLARE_ACCOUNT_ID}/ai/v1",
4070
4071
  compat: { "sendSessionAffinityHeaders": true },
4071
4072
  reasoning: true,
4073
+ thinkingLevelMap: { "off": null, "minimal": null, "low": "low", "medium": "medium", "high": "high", "xhigh": "xhigh", "max": "max" },
4072
4074
  input: ["text"],
4073
4075
  cost: {
4074
4076
  input: 1.4,
@@ -4165,6 +4167,7 @@ export const MODELS = {
4165
4167
  baseUrl: "https://api.fireworks.ai/inference",
4166
4168
  compat: { "sendSessionAffinityHeaders": true, "supportsEagerToolInputStreaming": false, "supportsCacheControlOnTools": false, "supportsLongCacheRetention": false },
4167
4169
  reasoning: true,
4170
+ thinkingLevelMap: { "off": null, "minimal": null, "low": "low", "medium": "medium", "high": "high", "xhigh": "xhigh", "max": "max" },
4168
4171
  input: ["text"],
4169
4172
  cost: {
4170
4173
  input: 1.4,
@@ -4328,6 +4331,7 @@ export const MODELS = {
4328
4331
  baseUrl: "https://api.fireworks.ai/inference",
4329
4332
  compat: { "sendSessionAffinityHeaders": true, "supportsEagerToolInputStreaming": false, "supportsCacheControlOnTools": false, "supportsLongCacheRetention": false },
4330
4333
  reasoning: true,
4334
+ thinkingLevelMap: { "off": null, "minimal": null, "low": "low", "medium": "medium", "high": "high", "xhigh": "xhigh", "max": "max" },
4331
4335
  input: ["text"],
4332
4336
  cost: {
4333
4337
  input: 2.1,
@@ -6694,6 +6698,7 @@ export const MODELS = {
6694
6698
  baseUrl: "https://router.huggingface.co/v1",
6695
6699
  compat: { "supportsDeveloperRole": false },
6696
6700
  reasoning: true,
6701
+ thinkingLevelMap: { "off": null, "minimal": null, "low": "low", "medium": "medium", "high": "high", "xhigh": "xhigh", "max": "max" },
6697
6702
  input: ["text"],
6698
6703
  cost: {
6699
6704
  input: 1.4,
@@ -8326,6 +8331,7 @@ export const MODELS = {
8326
8331
  headers: { "NVCF-POLL-SECONDS": "3600" },
8327
8332
  compat: { "supportsStore": false, "supportsDeveloperRole": false, "supportsReasoningEffort": false, "maxTokensField": "max_tokens", "supportsStrictMode": false, "supportsLongCacheRetention": false },
8328
8333
  reasoning: true,
8334
+ thinkingLevelMap: { "off": null, "minimal": null, "low": "low", "medium": "medium", "high": "high", "xhigh": "xhigh", "max": "max" },
8329
8335
  input: ["text"],
8330
8336
  cost: {
8331
8337
  input: 0,
@@ -9625,6 +9631,7 @@ export const MODELS = {
9625
9631
  provider: "opencode",
9626
9632
  baseUrl: "https://opencode.ai/zen/v1",
9627
9633
  reasoning: true,
9634
+ thinkingLevelMap: { "off": null, "minimal": null, "low": "low", "medium": "medium", "high": "high", "xhigh": "xhigh", "max": "max" },
9628
9635
  input: ["text"],
9629
9636
  cost: {
9630
9637
  input: 1.4,
@@ -10318,6 +10325,7 @@ export const MODELS = {
10318
10325
  provider: "opencode-go",
10319
10326
  baseUrl: "https://opencode.ai/zen/go/v1",
10320
10327
  reasoning: true,
10328
+ thinkingLevelMap: { "off": null, "minimal": null, "low": "low", "medium": "medium", "high": "high", "xhigh": "xhigh", "max": "max" },
10321
10329
  input: ["text"],
10322
10330
  cost: {
10323
10331
  input: 1.4,
@@ -15029,6 +15037,7 @@ export const MODELS = {
15029
15037
  provider: "openrouter",
15030
15038
  baseUrl: "https://openrouter.ai/api/v1",
15031
15039
  reasoning: true,
15040
+ thinkingLevelMap: { "off": null, "minimal": null, "low": "low", "medium": "medium", "high": "high", "xhigh": "xhigh", "max": "max" },
15032
15041
  input: ["text"],
15033
15042
  cost: {
15034
15043
  input: 1.12,
@@ -15537,7 +15546,7 @@ export const MODELS = {
15537
15546
  baseUrl: "https://api.together.ai/v1",
15538
15547
  compat: { "supportsStore": false, "supportsDeveloperRole": false, "supportsReasoningEffort": false, "maxTokensField": "max_tokens", "supportsStrictMode": false, "supportsLongCacheRetention": false, "thinkingFormat": "together" },
15539
15548
  reasoning: true,
15540
- thinkingLevelMap: { "minimal": null, "low": null, "medium": null },
15549
+ thinkingLevelMap: { "off": null, "minimal": null, "low": "low", "medium": "medium", "high": "high", "xhigh": "xhigh", "max": "max" },
15541
15550
  input: ["text"],
15542
15551
  cost: {
15543
15552
  input: 1.4,
@@ -18862,6 +18871,7 @@ export const MODELS = {
18862
18871
  provider: "vercel-ai-gateway",
18863
18872
  baseUrl: "https://ai-gateway.vercel.sh",
18864
18873
  reasoning: true,
18874
+ thinkingLevelMap: { "off": null, "minimal": null, "low": "low", "medium": "medium", "high": "high", "xhigh": "xhigh", "max": "max" },
18865
18875
  input: ["text"],
18866
18876
  cost: {
18867
18877
  input: 1.1,
@@ -18879,6 +18889,7 @@ export const MODELS = {
18879
18889
  provider: "vercel-ai-gateway",
18880
18890
  baseUrl: "https://ai-gateway.vercel.sh",
18881
18891
  reasoning: true,
18892
+ thinkingLevelMap: { "off": null, "minimal": null, "low": "low", "medium": "medium", "high": "high", "xhigh": "xhigh", "max": "max" },
18882
18893
  input: ["text"],
18883
18894
  cost: {
18884
18895
  input: 2.0999999999999996,
@@ -19474,8 +19485,9 @@ export const MODELS = {
19474
19485
  api: "openai-completions",
19475
19486
  provider: "zai",
19476
19487
  baseUrl: "https://api.z.ai/api/coding/paas/v4",
19477
- compat: { "supportsDeveloperRole": false, "thinkingFormat": "zai", "zaiToolStream": true },
19488
+ compat: { "supportsDeveloperRole": false, "thinkingFormat": "zai", "supportsReasoningEffort": true, "zaiToolStream": true },
19478
19489
  reasoning: true,
19490
+ thinkingLevelMap: { "off": null, "minimal": null, "low": "low", "medium": "medium", "high": "high", "xhigh": "xhigh", "max": "max" },
19479
19491
  input: ["text"],
19480
19492
  cost: {
19481
19493
  input: 0,
@@ -19492,8 +19504,9 @@ export const MODELS = {
19492
19504
  api: "openai-completions",
19493
19505
  provider: "zai",
19494
19506
  baseUrl: "https://api.z.ai/api/coding/paas/v4",
19495
- compat: { "supportsDeveloperRole": false, "thinkingFormat": "zai", "zaiToolStream": true },
19507
+ compat: { "supportsDeveloperRole": false, "thinkingFormat": "zai", "supportsReasoningEffort": true, "zaiToolStream": true },
19496
19508
  reasoning: true,
19509
+ thinkingLevelMap: { "off": null, "minimal": null, "low": "low", "medium": "medium", "high": "high", "xhigh": "xhigh", "max": "max" },
19497
19510
  input: ["text"],
19498
19511
  cost: {
19499
19512
  input: 0,
@@ -19548,8 +19561,9 @@ export const MODELS = {
19548
19561
  api: "openai-completions",
19549
19562
  provider: "zai-coding-cn",
19550
19563
  baseUrl: "https://open.bigmodel.cn/api/coding/paas/v4",
19551
- compat: { "supportsDeveloperRole": false, "thinkingFormat": "zai", "zaiToolStream": true },
19564
+ compat: { "supportsDeveloperRole": false, "thinkingFormat": "zai", "supportsReasoningEffort": true, "zaiToolStream": true },
19552
19565
  reasoning: true,
19566
+ thinkingLevelMap: { "off": null, "minimal": null, "low": "low", "medium": "medium", "high": "high", "xhigh": "xhigh", "max": "max" },
19553
19567
  input: ["text"],
19554
19568
  cost: {
19555
19569
  input: 0,
@@ -19566,8 +19580,9 @@ export const MODELS = {
19566
19580
  api: "openai-completions",
19567
19581
  provider: "zai-coding-cn",
19568
19582
  baseUrl: "https://open.bigmodel.cn/api/coding/paas/v4",
19569
- compat: { "supportsDeveloperRole": false, "thinkingFormat": "zai", "zaiToolStream": true },
19583
+ compat: { "supportsDeveloperRole": false, "thinkingFormat": "zai", "supportsReasoningEffort": true, "zaiToolStream": true },
19570
19584
  reasoning: true,
19585
+ thinkingLevelMap: { "off": null, "minimal": null, "low": "low", "medium": "medium", "high": "high", "xhigh": "xhigh", "max": "max" },
19571
19586
  input: ["text"],
19572
19587
  cost: {
19573
19588
  input: 0,