@code-yeongyu/senpi-ai 2026.9.30 → 2026.10.1
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 +189 -19
- package/dist/api/anthropic-messages.js +168 -32
- package/dist/api/azure-openai-responses.js +23 -10
- package/dist/api/bedrock-converse-stream.js +12 -4
- package/dist/api/cloudflare-workers-ai-system-one.d.ts +4 -0
- package/dist/api/cloudflare-workers-ai-system-one.js +43 -0
- package/dist/api/cloudflare-workers-ai-system-one.lazy.d.ts +3 -0
- package/dist/api/cloudflare-workers-ai-system-one.lazy.js +4 -0
- package/dist/api/cloudflare.d.ts +2 -0
- package/dist/api/cloudflare.js +2 -0
- package/dist/api/context-room.d.ts +2 -2
- package/dist/api/cursor-agent.js +19 -10
- package/dist/api/devin-agent/request.d.ts +9 -9
- package/dist/api/devin-agent/request.js +14 -10
- package/dist/api/google-generative-ai.js +20 -80
- package/dist/api/google-shared.d.ts +13 -4
- package/dist/api/google-shared.js +54 -4
- package/dist/api/google-vertex.js +19 -62
- package/dist/api/llama-cpp-classify.d.ts +33 -0
- package/dist/api/llama-cpp-classify.js +365 -0
- package/dist/api/llama-cpp-classify.lazy.d.ts +3 -0
- package/dist/api/llama-cpp-classify.lazy.js +4 -0
- package/dist/api/mistral-conversations.d.ts +1 -1
- package/dist/api/mistral-conversations.js +36 -29
- package/dist/api/openai-codex-responses.d.ts +1 -1
- package/dist/api/openai-codex-responses.js +72 -37
- package/dist/api/openai-completions.d.ts +3 -2
- package/dist/api/openai-completions.js +76 -50
- package/dist/api/openai-images-params.d.ts +2 -2
- package/dist/api/openai-images.d.ts +1 -1
- package/dist/api/openai-responses-shared.d.ts +31 -8
- package/dist/api/openai-responses-shared.js +115 -27
- package/dist/api/openai-responses.d.ts +1 -1
- package/dist/api/openai-responses.js +38 -33
- package/dist/api/openrouter-images.d.ts +2 -1
- package/dist/api/openrouter-images.js +1 -0
- package/dist/api/pi-messages.d.ts +3 -3
- package/dist/api/pi-messages.js +3 -2
- package/dist/api/simple-options.d.ts +2 -2
- package/dist/api/simple-options.js +1 -0
- package/dist/api/system-one-shared.d.ts +23 -0
- package/dist/api/system-one-shared.js +183 -0
- package/dist/api/transform-messages.js +5 -2
- package/dist/api/typesafe-system-one.d.ts +4 -0
- package/dist/api/typesafe-system-one.js +19 -0
- package/dist/api/typesafe-system-one.lazy.d.ts +3 -0
- package/dist/api/typesafe-system-one.lazy.js +4 -0
- package/dist/api-registry.d.ts +3 -3
- package/dist/auth/helpers.js +1 -1
- package/dist/auth/oauth/anthropic-callback-listener.js +1 -1
- package/dist/auth/oauth/callback-server.d.ts +55 -0
- package/dist/auth/oauth/callback-server.js +146 -0
- package/dist/auth/oauth/chatgpt-subscription.d.ts +1 -1
- package/dist/auth/oauth/chatgpt-subscription.js +20 -124
- package/dist/auth/oauth/devin-callback.js +1 -1
- package/dist/auth/oauth/load.d.ts +4 -0
- package/dist/auth/oauth/load.js +10 -0
- package/dist/auth/oauth/meta.d.ts +17 -0
- package/dist/auth/oauth/meta.js +190 -0
- package/dist/auth/oauth/openai-chatgpt.d.ts +9 -0
- package/dist/auth/oauth/openai-chatgpt.js +266 -0
- package/dist/auth/oauth/openrouter.d.ts +1 -1
- package/dist/auth/oauth/openrouter.js +19 -138
- package/dist/auth/oauth/radius.d.ts +1 -1
- package/dist/auth/oauth/radius.js +21 -89
- package/dist/auth/resolve.d.ts +3 -8
- package/dist/auth/resolve.js +3 -18
- package/dist/auth/types.d.ts +10 -1
- package/dist/bun-oauth.js +4 -0
- package/dist/cli.js +3 -1
- package/dist/compat.js +17 -14
- package/dist/env-api-keys.js +2 -0
- package/dist/image-models.d.ts +19 -8
- package/dist/image-models.js +14 -13
- package/dist/images-api-registry.d.ts +8 -8
- package/dist/images.d.ts +7 -2
- package/dist/images.js +5 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/model-catalog.d.ts +27 -9
- package/dist/model-catalog.js +24 -2
- package/dist/model.d.ts +13 -13
- package/dist/models-store.d.ts +3 -2
- package/dist/models.d.ts +106 -36
- package/dist/models.generated.d.ts +142 -42
- package/dist/models.generated.js +142 -42
- package/dist/models.js +174 -36
- package/dist/providers/alibaba-token-plan.models.d.ts +4 -2
- package/dist/providers/alibaba-token-plan.models.js +4 -2
- package/dist/providers/all.d.ts +72 -19
- package/dist/providers/all.js +28 -22
- package/dist/providers/amazon-bedrock.models.d.ts +4 -2
- package/dist/providers/amazon-bedrock.models.js +4 -2
- package/dist/providers/ant-ling.models.d.ts +4 -2
- package/dist/providers/ant-ling.models.js +4 -2
- package/dist/providers/anthropic.models.d.ts +4 -2
- package/dist/providers/anthropic.models.js +4 -2
- package/dist/providers/azure-openai-responses.models.d.ts +4 -2
- package/dist/providers/azure-openai-responses.models.js +4 -2
- package/dist/providers/bai.models.d.ts +4 -2
- package/dist/providers/bai.models.js +4 -2
- package/dist/providers/baseten.models.d.ts +4 -2
- package/dist/providers/baseten.models.js +4 -2
- package/dist/providers/cerebras.models.d.ts +4 -2
- package/dist/providers/cerebras.models.js +4 -2
- package/dist/providers/chatgpt-subscription.models.d.ts +4 -2
- package/dist/providers/chatgpt-subscription.models.js +4 -2
- package/dist/providers/cloudflare-ai-gateway.models.d.ts +4 -2
- package/dist/providers/cloudflare-ai-gateway.models.js +4 -2
- package/dist/providers/cloudflare-stream.d.ts +6 -2
- package/dist/providers/cloudflare-stream.js +6 -0
- package/dist/providers/cloudflare-workers-ai.js +10 -3
- package/dist/providers/cloudflare-workers-ai.models.d.ts +4 -2
- package/dist/providers/cloudflare-workers-ai.models.js +4 -2
- package/dist/providers/data/.manifest.json +1 -1
- package/dist/providers/data/alibaba-token-plan.json +1 -1
- package/dist/providers/data/amazon-bedrock.json +1 -1
- package/dist/providers/data/ant-ling.json +1 -1
- package/dist/providers/data/anthropic.json +1 -1
- package/dist/providers/data/azure-openai-responses.json +1 -1
- package/dist/providers/data/bai.json +1 -1
- package/dist/providers/data/baseten.json +1 -1
- package/dist/providers/data/cerebras.json +1 -1
- package/dist/providers/data/chatgpt-subscription.json +1 -1
- package/dist/providers/data/cloudflare-ai-gateway.json +1 -1
- package/dist/providers/data/cloudflare-workers-ai.json +1 -1
- package/dist/providers/data/deepseek.json +1 -1
- package/dist/providers/data/fireworks.json +1 -1
- package/dist/providers/data/github-copilot.json +1 -1
- package/dist/providers/data/google-vertex.json +1 -1
- package/dist/providers/data/google.json +1 -1
- package/dist/providers/data/groq.json +1 -1
- package/dist/providers/data/huggingface.json +1 -1
- package/dist/providers/data/meta.json +1 -0
- package/dist/providers/data/minimax-cn.json +1 -1
- package/dist/providers/data/minimax.json +1 -1
- package/dist/providers/data/mistral.json +1 -1
- package/dist/providers/data/moonshotai-cn.json +1 -1
- package/dist/providers/data/moonshotai.json +1 -1
- package/dist/providers/data/nvidia.json +1 -1
- package/dist/providers/data/openai.json +1 -1
- package/dist/providers/data/opencode-go.json +1 -1
- package/dist/providers/data/opencode.json +1 -1
- package/dist/providers/data/opengateway.json +1 -1
- package/dist/providers/data/openrouter.json +1 -1
- package/dist/providers/data/qwen-token-plan-cn.json +1 -1
- package/dist/providers/data/qwen-token-plan-individual.json +1 -1
- package/dist/providers/data/qwen-token-plan.json +1 -1
- package/dist/providers/data/radius.json +1 -0
- package/dist/providers/data/together.json +1 -1
- package/dist/providers/data/typesafe.json +1 -0
- package/dist/providers/data/venice.json +1 -1
- package/dist/providers/data/vercel-ai-gateway.json +1 -1
- package/dist/providers/data/xai.json +1 -1
- package/dist/providers/data/xiaomi-token-plan-ams.json +1 -1
- package/dist/providers/data/xiaomi-token-plan-cn.json +1 -1
- package/dist/providers/data/xiaomi-token-plan-sgp.json +1 -1
- package/dist/providers/data/xiaomi.json +1 -1
- package/dist/providers/data/zai-coding-cn.json +1 -1
- package/dist/providers/data/zai.json +1 -1
- package/dist/providers/deepseek.models.d.ts +4 -2
- package/dist/providers/deepseek.models.js +4 -2
- package/dist/providers/faux.d.ts +7 -2
- package/dist/providers/faux.js +31 -22
- package/dist/providers/fireworks.models.d.ts +4 -2
- package/dist/providers/fireworks.models.js +4 -2
- package/dist/providers/github-copilot.models.d.ts +4 -2
- package/dist/providers/github-copilot.models.js +4 -2
- package/dist/providers/google-vertex.models.d.ts +4 -2
- package/dist/providers/google-vertex.models.js +4 -2
- package/dist/providers/google.models.d.ts +4 -2
- package/dist/providers/google.models.js +4 -2
- package/dist/providers/groq.models.d.ts +4 -2
- package/dist/providers/groq.models.js +4 -2
- package/dist/providers/huggingface.models.d.ts +4 -2
- package/dist/providers/huggingface.models.js +4 -2
- package/dist/providers/images/register-builtins.d.ts +2 -2
- package/dist/providers/kimi-coding.models.d.ts +54 -7
- package/dist/providers/kimi-coding.models.js +34 -7
- package/dist/providers/meta.d.ts +3 -0
- package/dist/providers/meta.js +24 -0
- package/dist/providers/meta.models.d.ts +6 -0
- package/dist/providers/meta.models.js +8 -0
- package/dist/providers/minimax-cn.models.d.ts +4 -2
- package/dist/providers/minimax-cn.models.js +4 -2
- package/dist/providers/minimax.models.d.ts +4 -2
- package/dist/providers/minimax.models.js +4 -2
- package/dist/providers/mistral.models.d.ts +4 -2
- package/dist/providers/mistral.models.js +4 -2
- package/dist/providers/moonshotai-cn.models.d.ts +4 -2
- package/dist/providers/moonshotai-cn.models.js +4 -2
- package/dist/providers/moonshotai.models.d.ts +4 -2
- package/dist/providers/moonshotai.models.js +4 -2
- package/dist/providers/nvidia.models.d.ts +4 -2
- package/dist/providers/nvidia.models.js +4 -2
- package/dist/providers/openai.js +4 -2
- package/dist/providers/openai.models.d.ts +4 -2
- package/dist/providers/openai.models.js +4 -2
- package/dist/providers/opencode-go.models.d.ts +4 -2
- package/dist/providers/opencode-go.models.js +4 -2
- package/dist/providers/opencode.d.ts +3 -1
- package/dist/providers/opencode.js +5 -2
- package/dist/providers/opencode.models.d.ts +4 -2
- package/dist/providers/opencode.models.js +4 -2
- package/dist/providers/opengateway.models.d.ts +4 -2
- package/dist/providers/opengateway.models.js +4 -2
- package/dist/providers/openrouter.js +11 -2
- package/dist/providers/openrouter.models.d.ts +4 -2
- package/dist/providers/openrouter.models.js +4 -2
- package/dist/providers/qwen-token-plan-cn.models.d.ts +4 -2
- package/dist/providers/qwen-token-plan-cn.models.js +4 -2
- package/dist/providers/qwen-token-plan-individual.models.d.ts +4 -2
- package/dist/providers/qwen-token-plan-individual.models.js +4 -2
- package/dist/providers/qwen-token-plan.models.d.ts +4 -2
- package/dist/providers/qwen-token-plan.models.js +4 -2
- package/dist/providers/radius.js +19 -5
- package/dist/providers/radius.models.d.ts +6 -0
- package/dist/providers/radius.models.js +8 -0
- package/dist/providers/together.models.d.ts +4 -2
- package/dist/providers/together.models.js +4 -2
- package/dist/providers/typesafe.d.ts +3 -0
- package/dist/providers/typesafe.js +18 -0
- package/dist/providers/typesafe.models.d.ts +6 -0
- package/dist/providers/typesafe.models.js +8 -0
- package/dist/providers/venice.models.d.ts +4 -2
- package/dist/providers/venice.models.js +4 -2
- package/dist/providers/vercel-ai-gateway.js +5 -2
- package/dist/providers/vercel-ai-gateway.models.d.ts +4 -2
- package/dist/providers/vercel-ai-gateway.models.js +4 -2
- package/dist/providers/xai.models.d.ts +4 -2
- package/dist/providers/xai.models.js +4 -2
- package/dist/providers/xiaomi-token-plan-ams.models.d.ts +4 -2
- package/dist/providers/xiaomi-token-plan-ams.models.js +4 -2
- package/dist/providers/xiaomi-token-plan-cn.models.d.ts +4 -2
- package/dist/providers/xiaomi-token-plan-cn.models.js +4 -2
- package/dist/providers/xiaomi-token-plan-sgp.models.d.ts +4 -2
- package/dist/providers/xiaomi-token-plan-sgp.models.js +4 -2
- package/dist/providers/xiaomi.models.d.ts +4 -2
- package/dist/providers/xiaomi.models.js +4 -2
- package/dist/providers/zai-coding-cn.models.d.ts +4 -2
- package/dist/providers/zai-coding-cn.models.js +4 -2
- package/dist/providers/zai.models.d.ts +4 -2
- package/dist/providers/zai.models.js +4 -2
- package/dist/tool-call-middleware/context-transformer.d.ts +8 -5
- package/dist/tool-call-middleware/context-transformer.js +44 -15
- package/dist/types.d.ts +262 -28
- package/dist/utils/diagnostics.d.ts +3 -2
- package/dist/utils/estimate.d.ts +2 -2
- package/dist/utils/estimate.js +22 -30
- package/dist/utils/headers.d.ts +1 -1
- package/dist/utils/headers.js +10 -8
- package/dist/utils/model-operations.d.ts +11 -0
- package/dist/utils/model-operations.js +47 -0
- package/dist/utils/models-error.d.ts +8 -0
- package/dist/utils/models-error.js +18 -0
- package/dist/utils/overflow.d.ts +1 -0
- package/dist/utils/overflow.js +11 -5
- package/dist/utils/prompt-cache-ttl.js +10 -3
- package/dist/utils/retry.js +9 -0
- package/dist/utils/text.d.ts +9 -1
- package/dist/utils/text.js +26 -0
- package/dist/utils/transcript.d.ts +85 -0
- package/dist/utils/transcript.js +205 -0
- package/package.json +3 -4
- package/dist/image-models.generated.d.ts +0 -925
- package/dist/image-models.generated.js +0 -927
- package/dist/images-models.d.ts +0 -95
- package/dist/images-models.js +0 -141
- package/dist/providers/openai-images.d.ts +0 -3
- package/dist/providers/openai-images.js +0 -16
- package/dist/providers/openrouter-images.d.ts +0 -3
- package/dist/providers/openrouter-images.js +0 -22
- /package/dist/{auth/oauth → utils}/oauth-page.d.ts +0 -0
- /package/dist/{auth/oauth → utils}/oauth-page.js +0 -0
|
@@ -6,10 +6,11 @@
|
|
|
6
6
|
* `devin.models.ts` is: a provider the fork ships must survive a catalog
|
|
7
7
|
* regeneration that upstream no longer describes.
|
|
8
8
|
*/
|
|
9
|
-
import {
|
|
9
|
+
import { flattenChatModelCatalog, flattenClassifierModelCatalog, flattenImageModelCatalog, } from "../model-catalog.js";
|
|
10
10
|
const values = {
|
|
11
11
|
"anthropic-messages": {
|
|
12
|
-
"k3": {
|
|
12
|
+
"chat:k3": {
|
|
13
|
+
"type": "chat",
|
|
13
14
|
"id": "k3",
|
|
14
15
|
"name": "Kimi K3",
|
|
15
16
|
"api": "anthropic-messages",
|
|
@@ -34,6 +35,11 @@ const values = {
|
|
|
34
35
|
"image",
|
|
35
36
|
"video"
|
|
36
37
|
],
|
|
38
|
+
"inputLimits": {
|
|
39
|
+
"images": {
|
|
40
|
+
"resize": { "maxWidth": 2000, "maxHeight": 2000, "maxBytes": 4718592, "jpegQuality": 80 }
|
|
41
|
+
}
|
|
42
|
+
},
|
|
37
43
|
"cost": {
|
|
38
44
|
"input": 3,
|
|
39
45
|
"output": 15,
|
|
@@ -43,7 +49,8 @@ const values = {
|
|
|
43
49
|
"contextWindow": 1048576,
|
|
44
50
|
"maxTokens": 131072
|
|
45
51
|
},
|
|
46
|
-
"k3-256k": {
|
|
52
|
+
"chat:k3-256k": {
|
|
53
|
+
"type": "chat",
|
|
47
54
|
"id": "k3-256k",
|
|
48
55
|
"name": "Kimi K3-256K",
|
|
49
56
|
"api": "anthropic-messages",
|
|
@@ -57,6 +64,11 @@ const values = {
|
|
|
57
64
|
"text",
|
|
58
65
|
"image"
|
|
59
66
|
],
|
|
67
|
+
"inputLimits": {
|
|
68
|
+
"images": {
|
|
69
|
+
"resize": { "maxWidth": 2000, "maxHeight": 2000, "maxBytes": 4718592, "jpegQuality": 80 }
|
|
70
|
+
}
|
|
71
|
+
},
|
|
60
72
|
"cost": {
|
|
61
73
|
"input": 0,
|
|
62
74
|
"output": 0,
|
|
@@ -75,7 +87,8 @@ const values = {
|
|
|
75
87
|
"max": "max"
|
|
76
88
|
}
|
|
77
89
|
},
|
|
78
|
-
"kimi-for-coding": {
|
|
90
|
+
"chat:kimi-for-coding": {
|
|
91
|
+
"type": "chat",
|
|
79
92
|
"id": "kimi-for-coding",
|
|
80
93
|
"name": "kimi-for-coding",
|
|
81
94
|
"api": "anthropic-messages",
|
|
@@ -90,6 +103,11 @@ const values = {
|
|
|
90
103
|
"text",
|
|
91
104
|
"image"
|
|
92
105
|
],
|
|
106
|
+
"inputLimits": {
|
|
107
|
+
"images": {
|
|
108
|
+
"resize": { "maxWidth": 2000, "maxHeight": 2000, "maxBytes": 4718592, "jpegQuality": 80 }
|
|
109
|
+
}
|
|
110
|
+
},
|
|
93
111
|
"cost": {
|
|
94
112
|
"input": 0.95,
|
|
95
113
|
"output": 4,
|
|
@@ -108,7 +126,8 @@ const values = {
|
|
|
108
126
|
"max": "max"
|
|
109
127
|
}
|
|
110
128
|
},
|
|
111
|
-
"kimi-for-coding-highspeed": {
|
|
129
|
+
"chat:kimi-for-coding-highspeed": {
|
|
130
|
+
"type": "chat",
|
|
112
131
|
"id": "kimi-for-coding-highspeed",
|
|
113
132
|
"name": "Kimi For Coding HighSpeed",
|
|
114
133
|
"api": "anthropic-messages",
|
|
@@ -122,6 +141,11 @@ const values = {
|
|
|
122
141
|
"text",
|
|
123
142
|
"image"
|
|
124
143
|
],
|
|
144
|
+
"inputLimits": {
|
|
145
|
+
"images": {
|
|
146
|
+
"resize": { "maxWidth": 2000, "maxHeight": 2000, "maxBytes": 4718592, "jpegQuality": 80 }
|
|
147
|
+
}
|
|
148
|
+
},
|
|
125
149
|
"cost": {
|
|
126
150
|
"input": 1.9,
|
|
127
151
|
"output": 8,
|
|
@@ -131,7 +155,8 @@ const values = {
|
|
|
131
155
|
"contextWindow": 262144,
|
|
132
156
|
"maxTokens": 32768
|
|
133
157
|
},
|
|
134
|
-
"kimi-k2-thinking": {
|
|
158
|
+
"chat:kimi-k2-thinking": {
|
|
159
|
+
"type": "chat",
|
|
135
160
|
"id": "kimi-k2-thinking",
|
|
136
161
|
"name": "Kimi K2 Thinking",
|
|
137
162
|
"api": "anthropic-messages",
|
|
@@ -155,5 +180,7 @@ const values = {
|
|
|
155
180
|
}
|
|
156
181
|
}
|
|
157
182
|
};
|
|
158
|
-
export const KIMI_CODING_MODELS =
|
|
183
|
+
export const KIMI_CODING_MODELS = flattenChatModelCatalog("kimi-coding", values);
|
|
184
|
+
export const KIMI_CODING_IMAGE_MODELS = flattenImageModelCatalog("kimi-coding", values);
|
|
185
|
+
export const KIMI_CODING_CLASSIFIER_MODELS = flattenClassifierModelCatalog("kimi-coding", values);
|
|
159
186
|
//# sourceMappingURL=kimi-coding.models.js.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { openAIResponsesApi } from "../api/openai-responses.lazy.js";
|
|
2
|
+
import { envApiKeyAuth, lazyOAuth } from "../auth/helpers.js";
|
|
3
|
+
import { loadMetaOAuth } from "../auth/oauth/load.js";
|
|
4
|
+
import { createProvider } from "../models.js";
|
|
5
|
+
import { META_MODELS } from "./meta.models.js";
|
|
6
|
+
export function metaProvider() {
|
|
7
|
+
return createProvider({
|
|
8
|
+
id: "meta",
|
|
9
|
+
name: "Meta",
|
|
10
|
+
baseUrl: "https://api.meta.ai/v1",
|
|
11
|
+
auth: {
|
|
12
|
+
apiKey: envApiKeyAuth("Meta Model API key", ["META_API_KEY"]),
|
|
13
|
+
oauth: lazyOAuth({
|
|
14
|
+
name: "Meta (Muse subscription)",
|
|
15
|
+
isSubscription: true,
|
|
16
|
+
loginLabel: "Sign in with Meta",
|
|
17
|
+
load: loadMetaOAuth,
|
|
18
|
+
}),
|
|
19
|
+
},
|
|
20
|
+
models: Object.values(META_MODELS),
|
|
21
|
+
api: openAIResponsesApi(),
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=meta.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import values from "./data/meta.json";
|
|
2
|
+
import { type ChatModelCatalog, type ClassifierModelCatalog, type ImageModelCatalog } from "../model-catalog.ts";
|
|
3
|
+
export declare const META_MODELS: ChatModelCatalog<typeof values, "meta">;
|
|
4
|
+
export declare const META_IMAGE_MODELS: ImageModelCatalog<typeof values, "meta">;
|
|
5
|
+
export declare const META_CLASSIFIER_MODELS: ClassifierModelCatalog<typeof values, "meta">;
|
|
6
|
+
//# sourceMappingURL=meta.models.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// This file is auto-generated by scripts/generate-models.ts
|
|
2
|
+
// Do not edit manually - run 'npm run generate-models' to update
|
|
3
|
+
import values from "./data/meta.json" with { type: "json" };
|
|
4
|
+
import { flattenChatModelCatalog, flattenClassifierModelCatalog, flattenImageModelCatalog } from "../model-catalog.js";
|
|
5
|
+
export const META_MODELS = flattenChatModelCatalog("meta", values);
|
|
6
|
+
export const META_IMAGE_MODELS = flattenImageModelCatalog("meta", values);
|
|
7
|
+
export const META_CLASSIFIER_MODELS = flattenClassifierModelCatalog("meta", values);
|
|
8
|
+
//# sourceMappingURL=meta.models.js.map
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import values from "./data/minimax-cn.json";
|
|
2
|
-
import { type
|
|
3
|
-
export declare const MINIMAX_CN_MODELS:
|
|
2
|
+
import { type ChatModelCatalog, type ClassifierModelCatalog, type ImageModelCatalog } from "../model-catalog.ts";
|
|
3
|
+
export declare const MINIMAX_CN_MODELS: ChatModelCatalog<typeof values, "minimax-cn">;
|
|
4
|
+
export declare const MINIMAX_CN_IMAGE_MODELS: ImageModelCatalog<typeof values, "minimax-cn">;
|
|
5
|
+
export declare const MINIMAX_CN_CLASSIFIER_MODELS: ClassifierModelCatalog<typeof values, "minimax-cn">;
|
|
4
6
|
//# sourceMappingURL=minimax-cn.models.d.ts.map
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// This file is auto-generated by scripts/generate-models.ts
|
|
2
2
|
// Do not edit manually - run 'npm run generate-models' to update
|
|
3
3
|
import values from "./data/minimax-cn.json" with { type: "json" };
|
|
4
|
-
import {
|
|
5
|
-
export const MINIMAX_CN_MODELS =
|
|
4
|
+
import { flattenChatModelCatalog, flattenClassifierModelCatalog, flattenImageModelCatalog } from "../model-catalog.js";
|
|
5
|
+
export const MINIMAX_CN_MODELS = flattenChatModelCatalog("minimax-cn", values);
|
|
6
|
+
export const MINIMAX_CN_IMAGE_MODELS = flattenImageModelCatalog("minimax-cn", values);
|
|
7
|
+
export const MINIMAX_CN_CLASSIFIER_MODELS = flattenClassifierModelCatalog("minimax-cn", values);
|
|
6
8
|
//# sourceMappingURL=minimax-cn.models.js.map
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import values from "./data/minimax.json";
|
|
2
|
-
import { type
|
|
3
|
-
export declare const MINIMAX_MODELS:
|
|
2
|
+
import { type ChatModelCatalog, type ClassifierModelCatalog, type ImageModelCatalog } from "../model-catalog.ts";
|
|
3
|
+
export declare const MINIMAX_MODELS: ChatModelCatalog<typeof values, "minimax">;
|
|
4
|
+
export declare const MINIMAX_IMAGE_MODELS: ImageModelCatalog<typeof values, "minimax">;
|
|
5
|
+
export declare const MINIMAX_CLASSIFIER_MODELS: ClassifierModelCatalog<typeof values, "minimax">;
|
|
4
6
|
//# sourceMappingURL=minimax.models.d.ts.map
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// This file is auto-generated by scripts/generate-models.ts
|
|
2
2
|
// Do not edit manually - run 'npm run generate-models' to update
|
|
3
3
|
import values from "./data/minimax.json" with { type: "json" };
|
|
4
|
-
import {
|
|
5
|
-
export const MINIMAX_MODELS =
|
|
4
|
+
import { flattenChatModelCatalog, flattenClassifierModelCatalog, flattenImageModelCatalog } from "../model-catalog.js";
|
|
5
|
+
export const MINIMAX_MODELS = flattenChatModelCatalog("minimax", values);
|
|
6
|
+
export const MINIMAX_IMAGE_MODELS = flattenImageModelCatalog("minimax", values);
|
|
7
|
+
export const MINIMAX_CLASSIFIER_MODELS = flattenClassifierModelCatalog("minimax", values);
|
|
6
8
|
//# sourceMappingURL=minimax.models.js.map
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import values from "./data/mistral.json";
|
|
2
|
-
import { type
|
|
3
|
-
export declare const MISTRAL_MODELS:
|
|
2
|
+
import { type ChatModelCatalog, type ClassifierModelCatalog, type ImageModelCatalog } from "../model-catalog.ts";
|
|
3
|
+
export declare const MISTRAL_MODELS: ChatModelCatalog<typeof values, "mistral">;
|
|
4
|
+
export declare const MISTRAL_IMAGE_MODELS: ImageModelCatalog<typeof values, "mistral">;
|
|
5
|
+
export declare const MISTRAL_CLASSIFIER_MODELS: ClassifierModelCatalog<typeof values, "mistral">;
|
|
4
6
|
//# sourceMappingURL=mistral.models.d.ts.map
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// This file is auto-generated by scripts/generate-models.ts
|
|
2
2
|
// Do not edit manually - run 'npm run generate-models' to update
|
|
3
3
|
import values from "./data/mistral.json" with { type: "json" };
|
|
4
|
-
import {
|
|
5
|
-
export const MISTRAL_MODELS =
|
|
4
|
+
import { flattenChatModelCatalog, flattenClassifierModelCatalog, flattenImageModelCatalog } from "../model-catalog.js";
|
|
5
|
+
export const MISTRAL_MODELS = flattenChatModelCatalog("mistral", values);
|
|
6
|
+
export const MISTRAL_IMAGE_MODELS = flattenImageModelCatalog("mistral", values);
|
|
7
|
+
export const MISTRAL_CLASSIFIER_MODELS = flattenClassifierModelCatalog("mistral", values);
|
|
6
8
|
//# sourceMappingURL=mistral.models.js.map
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import values from "./data/moonshotai-cn.json";
|
|
2
|
-
import { type
|
|
3
|
-
export declare const MOONSHOTAI_CN_MODELS:
|
|
2
|
+
import { type ChatModelCatalog, type ClassifierModelCatalog, type ImageModelCatalog } from "../model-catalog.ts";
|
|
3
|
+
export declare const MOONSHOTAI_CN_MODELS: ChatModelCatalog<typeof values, "moonshotai-cn">;
|
|
4
|
+
export declare const MOONSHOTAI_CN_IMAGE_MODELS: ImageModelCatalog<typeof values, "moonshotai-cn">;
|
|
5
|
+
export declare const MOONSHOTAI_CN_CLASSIFIER_MODELS: ClassifierModelCatalog<typeof values, "moonshotai-cn">;
|
|
4
6
|
//# sourceMappingURL=moonshotai-cn.models.d.ts.map
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// This file is auto-generated by scripts/generate-models.ts
|
|
2
2
|
// Do not edit manually - run 'npm run generate-models' to update
|
|
3
3
|
import values from "./data/moonshotai-cn.json" with { type: "json" };
|
|
4
|
-
import {
|
|
5
|
-
export const MOONSHOTAI_CN_MODELS =
|
|
4
|
+
import { flattenChatModelCatalog, flattenClassifierModelCatalog, flattenImageModelCatalog } from "../model-catalog.js";
|
|
5
|
+
export const MOONSHOTAI_CN_MODELS = flattenChatModelCatalog("moonshotai-cn", values);
|
|
6
|
+
export const MOONSHOTAI_CN_IMAGE_MODELS = flattenImageModelCatalog("moonshotai-cn", values);
|
|
7
|
+
export const MOONSHOTAI_CN_CLASSIFIER_MODELS = flattenClassifierModelCatalog("moonshotai-cn", values);
|
|
6
8
|
//# sourceMappingURL=moonshotai-cn.models.js.map
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import values from "./data/moonshotai.json";
|
|
2
|
-
import { type
|
|
3
|
-
export declare const MOONSHOTAI_MODELS:
|
|
2
|
+
import { type ChatModelCatalog, type ClassifierModelCatalog, type ImageModelCatalog } from "../model-catalog.ts";
|
|
3
|
+
export declare const MOONSHOTAI_MODELS: ChatModelCatalog<typeof values, "moonshotai">;
|
|
4
|
+
export declare const MOONSHOTAI_IMAGE_MODELS: ImageModelCatalog<typeof values, "moonshotai">;
|
|
5
|
+
export declare const MOONSHOTAI_CLASSIFIER_MODELS: ClassifierModelCatalog<typeof values, "moonshotai">;
|
|
4
6
|
//# sourceMappingURL=moonshotai.models.d.ts.map
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// This file is auto-generated by scripts/generate-models.ts
|
|
2
2
|
// Do not edit manually - run 'npm run generate-models' to update
|
|
3
3
|
import values from "./data/moonshotai.json" with { type: "json" };
|
|
4
|
-
import {
|
|
5
|
-
export const MOONSHOTAI_MODELS =
|
|
4
|
+
import { flattenChatModelCatalog, flattenClassifierModelCatalog, flattenImageModelCatalog } from "../model-catalog.js";
|
|
5
|
+
export const MOONSHOTAI_MODELS = flattenChatModelCatalog("moonshotai", values);
|
|
6
|
+
export const MOONSHOTAI_IMAGE_MODELS = flattenImageModelCatalog("moonshotai", values);
|
|
7
|
+
export const MOONSHOTAI_CLASSIFIER_MODELS = flattenClassifierModelCatalog("moonshotai", values);
|
|
6
8
|
//# sourceMappingURL=moonshotai.models.js.map
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import values from "./data/nvidia.json";
|
|
2
|
-
import { type
|
|
3
|
-
export declare const NVIDIA_MODELS:
|
|
2
|
+
import { type ChatModelCatalog, type ClassifierModelCatalog, type ImageModelCatalog } from "../model-catalog.ts";
|
|
3
|
+
export declare const NVIDIA_MODELS: ChatModelCatalog<typeof values, "nvidia">;
|
|
4
|
+
export declare const NVIDIA_IMAGE_MODELS: ImageModelCatalog<typeof values, "nvidia">;
|
|
5
|
+
export declare const NVIDIA_CLASSIFIER_MODELS: ClassifierModelCatalog<typeof values, "nvidia">;
|
|
4
6
|
//# sourceMappingURL=nvidia.models.d.ts.map
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// This file is auto-generated by scripts/generate-models.ts
|
|
2
2
|
// Do not edit manually - run 'npm run generate-models' to update
|
|
3
3
|
import values from "./data/nvidia.json" with { type: "json" };
|
|
4
|
-
import {
|
|
5
|
-
export const NVIDIA_MODELS =
|
|
4
|
+
import { flattenChatModelCatalog, flattenClassifierModelCatalog, flattenImageModelCatalog } from "../model-catalog.js";
|
|
5
|
+
export const NVIDIA_MODELS = flattenChatModelCatalog("nvidia", values);
|
|
6
|
+
export const NVIDIA_IMAGE_MODELS = flattenImageModelCatalog("nvidia", values);
|
|
7
|
+
export const NVIDIA_CLASSIFIER_MODELS = flattenClassifierModelCatalog("nvidia", values);
|
|
6
8
|
//# sourceMappingURL=nvidia.models.js.map
|
package/dist/providers/openai.js
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
|
+
import { openaiImagesApi } from "../api/openai-images.lazy.js";
|
|
1
2
|
import { openAIResponsesApi } from "../api/openai-responses.lazy.js";
|
|
2
3
|
import { envApiKeyAuth } from "../auth/helpers.js";
|
|
3
4
|
import { createProvider } from "../models.js";
|
|
4
|
-
import { OPENAI_MODELS } from "./openai.models.js";
|
|
5
|
+
import { OPENAI_IMAGE_MODELS, OPENAI_MODELS } from "./openai.models.js";
|
|
5
6
|
export function openaiProvider() {
|
|
6
7
|
return createProvider({
|
|
7
8
|
id: "openai",
|
|
8
9
|
name: "OpenAI",
|
|
9
10
|
baseUrl: "https://api.openai.com/v1",
|
|
10
11
|
auth: { apiKey: envApiKeyAuth("OpenAI API key", ["OPENAI_API_KEY"]) },
|
|
11
|
-
models: Object.values(OPENAI_MODELS),
|
|
12
|
+
models: [...Object.values(OPENAI_MODELS), ...Object.values(OPENAI_IMAGE_MODELS)],
|
|
12
13
|
api: openAIResponsesApi(),
|
|
14
|
+
images: { "openai-images": openaiImagesApi() },
|
|
13
15
|
});
|
|
14
16
|
}
|
|
15
17
|
//# sourceMappingURL=openai.js.map
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import values from "./data/openai.json";
|
|
2
|
-
import { type
|
|
3
|
-
export declare const OPENAI_MODELS:
|
|
2
|
+
import { type ChatModelCatalog, type ClassifierModelCatalog, type ImageModelCatalog } from "../model-catalog.ts";
|
|
3
|
+
export declare const OPENAI_MODELS: ChatModelCatalog<typeof values, "openai">;
|
|
4
|
+
export declare const OPENAI_IMAGE_MODELS: ImageModelCatalog<typeof values, "openai">;
|
|
5
|
+
export declare const OPENAI_CLASSIFIER_MODELS: ClassifierModelCatalog<typeof values, "openai">;
|
|
4
6
|
//# sourceMappingURL=openai.models.d.ts.map
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// This file is auto-generated by scripts/generate-models.ts
|
|
2
2
|
// Do not edit manually - run 'npm run generate-models' to update
|
|
3
3
|
import values from "./data/openai.json" with { type: "json" };
|
|
4
|
-
import {
|
|
5
|
-
export const OPENAI_MODELS =
|
|
4
|
+
import { flattenChatModelCatalog, flattenClassifierModelCatalog, flattenImageModelCatalog } from "../model-catalog.js";
|
|
5
|
+
export const OPENAI_MODELS = flattenChatModelCatalog("openai", values);
|
|
6
|
+
export const OPENAI_IMAGE_MODELS = flattenImageModelCatalog("openai", values);
|
|
7
|
+
export const OPENAI_CLASSIFIER_MODELS = flattenClassifierModelCatalog("openai", values);
|
|
6
8
|
//# sourceMappingURL=openai.models.js.map
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import values from "./data/opencode-go.json";
|
|
2
|
-
import { type
|
|
3
|
-
export declare const OPENCODE_GO_MODELS:
|
|
2
|
+
import { type ChatModelCatalog, type ClassifierModelCatalog, type ImageModelCatalog } from "../model-catalog.ts";
|
|
3
|
+
export declare const OPENCODE_GO_MODELS: ChatModelCatalog<typeof values, "opencode-go">;
|
|
4
|
+
export declare const OPENCODE_GO_IMAGE_MODELS: ImageModelCatalog<typeof values, "opencode-go">;
|
|
5
|
+
export declare const OPENCODE_GO_CLASSIFIER_MODELS: ClassifierModelCatalog<typeof values, "opencode-go">;
|
|
4
6
|
//# sourceMappingURL=opencode-go.models.d.ts.map
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// This file is auto-generated by scripts/generate-models.ts
|
|
2
2
|
// Do not edit manually - run 'npm run generate-models' to update
|
|
3
3
|
import values from "./data/opencode-go.json" with { type: "json" };
|
|
4
|
-
import {
|
|
5
|
-
export const OPENCODE_GO_MODELS =
|
|
4
|
+
import { flattenChatModelCatalog, flattenClassifierModelCatalog, flattenImageModelCatalog } from "../model-catalog.js";
|
|
5
|
+
export const OPENCODE_GO_MODELS = flattenChatModelCatalog("opencode-go", values);
|
|
6
|
+
export const OPENCODE_GO_IMAGE_MODELS = flattenImageModelCatalog("opencode-go", values);
|
|
7
|
+
export const OPENCODE_GO_CLASSIFIER_MODELS = flattenClassifierModelCatalog("opencode-go", values);
|
|
6
8
|
//# sourceMappingURL=opencode-go.models.js.map
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { type Provider } from "../models.ts";
|
|
2
|
-
|
|
2
|
+
type OpenCodeApi = "anthropic-messages" | "google-generative-ai" | "openai-completions" | "openai-responses";
|
|
3
|
+
export declare function opencodeProvider(): Provider<OpenCodeApi>;
|
|
4
|
+
export {};
|
|
3
5
|
//# sourceMappingURL=opencode.d.ts.map
|
|
@@ -2,22 +2,25 @@ import { anthropicMessagesApi } from "../api/anthropic-messages.lazy.js";
|
|
|
2
2
|
import { googleGenerativeAIApi } from "../api/google-generative-ai.lazy.js";
|
|
3
3
|
import { openAICompletionsApi } from "../api/openai-completions.lazy.js";
|
|
4
4
|
import { openAIResponsesApi } from "../api/openai-responses.lazy.js";
|
|
5
|
+
import { typesafeSystemOneApi } from "../api/typesafe-system-one.lazy.js";
|
|
5
6
|
import { envApiKeyAuth } from "../auth/helpers.js";
|
|
6
7
|
import { createProvider } from "../models.js";
|
|
7
|
-
import { OPENCODE_MODELS } from "./opencode.models.js";
|
|
8
|
+
import { OPENCODE_CLASSIFIER_MODELS, OPENCODE_MODELS } from "./opencode.models.js";
|
|
8
9
|
import { withOpenCodeSessionHeader } from "./opencode-headers.js";
|
|
9
10
|
export function opencodeProvider() {
|
|
10
11
|
return createProvider({
|
|
11
12
|
id: "opencode",
|
|
12
13
|
name: "OpenCode Zen",
|
|
13
14
|
auth: { apiKey: envApiKeyAuth("OpenCode API key", ["OPENCODE_API_KEY"]) },
|
|
14
|
-
models: Object.values(OPENCODE_MODELS),
|
|
15
|
+
models: [...Object.values(OPENCODE_MODELS), ...Object.values(OPENCODE_CLASSIFIER_MODELS)],
|
|
15
16
|
api: {
|
|
16
17
|
"anthropic-messages": withOpenCodeSessionHeader(anthropicMessagesApi()),
|
|
17
18
|
"google-generative-ai": withOpenCodeSessionHeader(googleGenerativeAIApi()),
|
|
18
19
|
"openai-completions": withOpenCodeSessionHeader(openAICompletionsApi()),
|
|
19
20
|
"openai-responses": withOpenCodeSessionHeader(openAIResponsesApi()),
|
|
20
21
|
},
|
|
22
|
+
// OpenCode Zen serves TypeSafe's System One protocol at /zen/v1/systemone.
|
|
23
|
+
classifiers: { "typesafe-system-one": typesafeSystemOneApi() },
|
|
21
24
|
});
|
|
22
25
|
}
|
|
23
26
|
//# sourceMappingURL=opencode.js.map
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import values from "./data/opencode.json";
|
|
2
|
-
import { type
|
|
3
|
-
export declare const OPENCODE_MODELS:
|
|
2
|
+
import { type ChatModelCatalog, type ClassifierModelCatalog, type ImageModelCatalog } from "../model-catalog.ts";
|
|
3
|
+
export declare const OPENCODE_MODELS: ChatModelCatalog<typeof values, "opencode">;
|
|
4
|
+
export declare const OPENCODE_IMAGE_MODELS: ImageModelCatalog<typeof values, "opencode">;
|
|
5
|
+
export declare const OPENCODE_CLASSIFIER_MODELS: ClassifierModelCatalog<typeof values, "opencode">;
|
|
4
6
|
//# sourceMappingURL=opencode.models.d.ts.map
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// This file is auto-generated by scripts/generate-models.ts
|
|
2
2
|
// Do not edit manually - run 'npm run generate-models' to update
|
|
3
3
|
import values from "./data/opencode.json" with { type: "json" };
|
|
4
|
-
import {
|
|
5
|
-
export const OPENCODE_MODELS =
|
|
4
|
+
import { flattenChatModelCatalog, flattenClassifierModelCatalog, flattenImageModelCatalog } from "../model-catalog.js";
|
|
5
|
+
export const OPENCODE_MODELS = flattenChatModelCatalog("opencode", values);
|
|
6
|
+
export const OPENCODE_IMAGE_MODELS = flattenImageModelCatalog("opencode", values);
|
|
7
|
+
export const OPENCODE_CLASSIFIER_MODELS = flattenClassifierModelCatalog("opencode", values);
|
|
6
8
|
//# sourceMappingURL=opencode.models.js.map
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import values from "./data/opengateway.json";
|
|
2
|
-
import { type
|
|
3
|
-
export declare const OPENGATEWAY_MODELS:
|
|
2
|
+
import { type ChatModelCatalog, type ClassifierModelCatalog, type ImageModelCatalog } from "../model-catalog.ts";
|
|
3
|
+
export declare const OPENGATEWAY_MODELS: ChatModelCatalog<typeof values, "opengateway">;
|
|
4
|
+
export declare const OPENGATEWAY_IMAGE_MODELS: ImageModelCatalog<typeof values, "opengateway">;
|
|
5
|
+
export declare const OPENGATEWAY_CLASSIFIER_MODELS: ClassifierModelCatalog<typeof values, "opengateway">;
|
|
4
6
|
//# sourceMappingURL=opengateway.models.d.ts.map
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// This file is auto-generated by scripts/generate-models.ts
|
|
2
2
|
// Do not edit manually - run 'npm run generate-models' to update
|
|
3
3
|
import values from "./data/opengateway.json" with { type: "json" };
|
|
4
|
-
import {
|
|
5
|
-
export const OPENGATEWAY_MODELS =
|
|
4
|
+
import { flattenChatModelCatalog, flattenClassifierModelCatalog, flattenImageModelCatalog } from "../model-catalog.js";
|
|
5
|
+
export const OPENGATEWAY_MODELS = flattenChatModelCatalog("opengateway", values);
|
|
6
|
+
export const OPENGATEWAY_IMAGE_MODELS = flattenImageModelCatalog("opengateway", values);
|
|
7
|
+
export const OPENGATEWAY_CLASSIFIER_MODELS = flattenClassifierModelCatalog("opengateway", values);
|
|
6
8
|
//# sourceMappingURL=opengateway.models.js.map
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { anthropicMessagesApi } from "../api/anthropic-messages.lazy.js";
|
|
2
2
|
import { openAICompletionsApi } from "../api/openai-completions.lazy.js";
|
|
3
|
+
import { openrouterImagesApi } from "../api/openrouter-images.lazy.js";
|
|
4
|
+
import { typesafeSystemOneApi } from "../api/typesafe-system-one.lazy.js";
|
|
3
5
|
import { envApiKeyAuth, lazyOAuth } from "../auth/helpers.js";
|
|
4
6
|
import { loadOpenRouterOAuth } from "../auth/oauth/load.js";
|
|
5
7
|
import { createProvider } from "../models.js";
|
|
6
|
-
import { OPENROUTER_MODELS } from "./openrouter.models.js";
|
|
8
|
+
import { OPENROUTER_CLASSIFIER_MODELS, OPENROUTER_IMAGE_MODELS, OPENROUTER_MODELS } from "./openrouter.models.js";
|
|
7
9
|
export function openrouterProvider() {
|
|
8
10
|
// The committed catalog is currently openai-completions-only; the anthropic-messages
|
|
9
11
|
// entry is upstream's native Claude routing, which activates once `anthropic/*` models
|
|
@@ -20,11 +22,18 @@ export function openrouterProvider() {
|
|
|
20
22
|
load: loadOpenRouterOAuth,
|
|
21
23
|
}),
|
|
22
24
|
},
|
|
23
|
-
models:
|
|
25
|
+
models: [
|
|
26
|
+
...Object.values(OPENROUTER_MODELS),
|
|
27
|
+
...Object.values(OPENROUTER_IMAGE_MODELS),
|
|
28
|
+
...Object.values(OPENROUTER_CLASSIFIER_MODELS),
|
|
29
|
+
],
|
|
24
30
|
api: {
|
|
25
31
|
"anthropic-messages": anthropicMessagesApi(),
|
|
26
32
|
"openai-completions": openAICompletionsApi(),
|
|
27
33
|
},
|
|
34
|
+
images: { "openrouter-images": openrouterImagesApi() },
|
|
35
|
+
// OpenRouter serves TypeSafe's System One protocol at /api/v1/systemone.
|
|
36
|
+
classifiers: { "typesafe-system-one": typesafeSystemOneApi() },
|
|
28
37
|
});
|
|
29
38
|
}
|
|
30
39
|
//# sourceMappingURL=openrouter.js.map
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import values from "./data/openrouter.json";
|
|
2
|
-
import { type
|
|
3
|
-
export declare const OPENROUTER_MODELS:
|
|
2
|
+
import { type ChatModelCatalog, type ClassifierModelCatalog, type ImageModelCatalog } from "../model-catalog.ts";
|
|
3
|
+
export declare const OPENROUTER_MODELS: ChatModelCatalog<typeof values, "openrouter">;
|
|
4
|
+
export declare const OPENROUTER_IMAGE_MODELS: ImageModelCatalog<typeof values, "openrouter">;
|
|
5
|
+
export declare const OPENROUTER_CLASSIFIER_MODELS: ClassifierModelCatalog<typeof values, "openrouter">;
|
|
4
6
|
//# sourceMappingURL=openrouter.models.d.ts.map
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// This file is auto-generated by scripts/generate-models.ts
|
|
2
2
|
// Do not edit manually - run 'npm run generate-models' to update
|
|
3
3
|
import values from "./data/openrouter.json" with { type: "json" };
|
|
4
|
-
import {
|
|
5
|
-
export const OPENROUTER_MODELS =
|
|
4
|
+
import { flattenChatModelCatalog, flattenClassifierModelCatalog, flattenImageModelCatalog } from "../model-catalog.js";
|
|
5
|
+
export const OPENROUTER_MODELS = flattenChatModelCatalog("openrouter", values);
|
|
6
|
+
export const OPENROUTER_IMAGE_MODELS = flattenImageModelCatalog("openrouter", values);
|
|
7
|
+
export const OPENROUTER_CLASSIFIER_MODELS = flattenClassifierModelCatalog("openrouter", values);
|
|
6
8
|
//# sourceMappingURL=openrouter.models.js.map
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import values from "./data/qwen-token-plan-cn.json";
|
|
2
|
-
import { type
|
|
3
|
-
export declare const QWEN_TOKEN_PLAN_CN_MODELS:
|
|
2
|
+
import { type ChatModelCatalog, type ClassifierModelCatalog, type ImageModelCatalog } from "../model-catalog.ts";
|
|
3
|
+
export declare const QWEN_TOKEN_PLAN_CN_MODELS: ChatModelCatalog<typeof values, "qwen-token-plan-cn">;
|
|
4
|
+
export declare const QWEN_TOKEN_PLAN_CN_IMAGE_MODELS: ImageModelCatalog<typeof values, "qwen-token-plan-cn">;
|
|
5
|
+
export declare const QWEN_TOKEN_PLAN_CN_CLASSIFIER_MODELS: ClassifierModelCatalog<typeof values, "qwen-token-plan-cn">;
|
|
4
6
|
//# sourceMappingURL=qwen-token-plan-cn.models.d.ts.map
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// This file is auto-generated by scripts/generate-models.ts
|
|
2
2
|
// Do not edit manually - run 'npm run generate-models' to update
|
|
3
3
|
import values from "./data/qwen-token-plan-cn.json" with { type: "json" };
|
|
4
|
-
import {
|
|
5
|
-
export const QWEN_TOKEN_PLAN_CN_MODELS =
|
|
4
|
+
import { flattenChatModelCatalog, flattenClassifierModelCatalog, flattenImageModelCatalog } from "../model-catalog.js";
|
|
5
|
+
export const QWEN_TOKEN_PLAN_CN_MODELS = flattenChatModelCatalog("qwen-token-plan-cn", values);
|
|
6
|
+
export const QWEN_TOKEN_PLAN_CN_IMAGE_MODELS = flattenImageModelCatalog("qwen-token-plan-cn", values);
|
|
7
|
+
export const QWEN_TOKEN_PLAN_CN_CLASSIFIER_MODELS = flattenClassifierModelCatalog("qwen-token-plan-cn", values);
|
|
6
8
|
//# sourceMappingURL=qwen-token-plan-cn.models.js.map
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import values from "./data/qwen-token-plan-individual.json";
|
|
2
|
-
import { type
|
|
3
|
-
export declare const QWEN_TOKEN_PLAN_INDIVIDUAL_MODELS:
|
|
2
|
+
import { type ChatModelCatalog, type ClassifierModelCatalog, type ImageModelCatalog } from "../model-catalog.ts";
|
|
3
|
+
export declare const QWEN_TOKEN_PLAN_INDIVIDUAL_MODELS: ChatModelCatalog<typeof values, "qwen-token-plan-individual">;
|
|
4
|
+
export declare const QWEN_TOKEN_PLAN_INDIVIDUAL_IMAGE_MODELS: ImageModelCatalog<typeof values, "qwen-token-plan-individual">;
|
|
5
|
+
export declare const QWEN_TOKEN_PLAN_INDIVIDUAL_CLASSIFIER_MODELS: ClassifierModelCatalog<typeof values, "qwen-token-plan-individual">;
|
|
4
6
|
//# sourceMappingURL=qwen-token-plan-individual.models.d.ts.map
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// This file is auto-generated by scripts/generate-models.ts
|
|
2
2
|
// Do not edit manually - run 'npm run generate-models' to update
|
|
3
3
|
import values from "./data/qwen-token-plan-individual.json" with { type: "json" };
|
|
4
|
-
import {
|
|
5
|
-
export const QWEN_TOKEN_PLAN_INDIVIDUAL_MODELS =
|
|
4
|
+
import { flattenChatModelCatalog, flattenClassifierModelCatalog, flattenImageModelCatalog } from "../model-catalog.js";
|
|
5
|
+
export const QWEN_TOKEN_PLAN_INDIVIDUAL_MODELS = flattenChatModelCatalog("qwen-token-plan-individual", values);
|
|
6
|
+
export const QWEN_TOKEN_PLAN_INDIVIDUAL_IMAGE_MODELS = flattenImageModelCatalog("qwen-token-plan-individual", values);
|
|
7
|
+
export const QWEN_TOKEN_PLAN_INDIVIDUAL_CLASSIFIER_MODELS = flattenClassifierModelCatalog("qwen-token-plan-individual", values);
|
|
6
8
|
//# sourceMappingURL=qwen-token-plan-individual.models.js.map
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import values from "./data/qwen-token-plan.json";
|
|
2
|
-
import { type
|
|
3
|
-
export declare const QWEN_TOKEN_PLAN_MODELS:
|
|
2
|
+
import { type ChatModelCatalog, type ClassifierModelCatalog, type ImageModelCatalog } from "../model-catalog.ts";
|
|
3
|
+
export declare const QWEN_TOKEN_PLAN_MODELS: ChatModelCatalog<typeof values, "qwen-token-plan">;
|
|
4
|
+
export declare const QWEN_TOKEN_PLAN_IMAGE_MODELS: ImageModelCatalog<typeof values, "qwen-token-plan">;
|
|
5
|
+
export declare const QWEN_TOKEN_PLAN_CLASSIFIER_MODELS: ClassifierModelCatalog<typeof values, "qwen-token-plan">;
|
|
4
6
|
//# sourceMappingURL=qwen-token-plan.models.d.ts.map
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// This file is auto-generated by scripts/generate-models.ts
|
|
2
2
|
// Do not edit manually - run 'npm run generate-models' to update
|
|
3
3
|
import values from "./data/qwen-token-plan.json" with { type: "json" };
|
|
4
|
-
import {
|
|
5
|
-
export const QWEN_TOKEN_PLAN_MODELS =
|
|
4
|
+
import { flattenChatModelCatalog, flattenClassifierModelCatalog, flattenImageModelCatalog } from "../model-catalog.js";
|
|
5
|
+
export const QWEN_TOKEN_PLAN_MODELS = flattenChatModelCatalog("qwen-token-plan", values);
|
|
6
|
+
export const QWEN_TOKEN_PLAN_IMAGE_MODELS = flattenImageModelCatalog("qwen-token-plan", values);
|
|
7
|
+
export const QWEN_TOKEN_PLAN_CLASSIFIER_MODELS = flattenClassifierModelCatalog("qwen-token-plan", values);
|
|
6
8
|
//# sourceMappingURL=qwen-token-plan.models.js.map
|