@xsai-ext/providers 0.4.4 → 0.5.0-beta.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.
- package/dist/{anthropic-C6HzSBof.d.ts → anthropic-DF1J2SNf.d.ts} +1 -1
- package/dist/create.d.ts +189 -77
- package/dist/create.js +4 -3
- package/dist/index.d.ts +258 -82
- package/dist/index.js +25 -3
- package/dist/special/create.d.ts +1 -1
- package/dist/{together-ai-SWwaUOgP.js → together-ai-DV9eE4QK.js} +98 -10
- package/dist/types-JlPM4HgL.d.ts +6 -0
- package/package.json +2 -2
- package/dist/types-B2HZyaCH.d.ts +0 -7
package/dist/index.js
CHANGED
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
import process from 'node:process';
|
|
2
|
-
import { c as createAbacus, a as createAlibaba, b as createAlibabaCn, d as
|
|
2
|
+
import { c as createAbacus, a as createAlibaba, b as createAlibabaCn, d as createAlibabaCodingPlan, e as createAlibabaCodingPlanCn, f as createBailing, g as createBaseten, h as createBerget, i as createCerebras, j as createChutes, k as createCloudferroSherlock, l as createCohere, m as createCortecs, n as createDeepinfra, o as createDeepSeek, p as createDinference, q as createDrun, r as createEvroc, s as createFastrouter, t as createFireworks, u as createFirmware, v as createFriendli, w as createGithubCopilot, x as createGithubModels, y as createGoogleGenerativeAI, z as createGroq, A as createHelicone, B as createHuggingface, C as createIflowcn, D as createInception, E as createInference, F as createIoNet, G as createJiekou, H as createKilo, I as createKimiForCoding, J as createKuaeCloudCodingPlan, K as createLlama, L as createLlmgateway, M as createLmstudio, N as createLucidquery, O as createMeganova, P as createMinimax, Q as createMinimaxCn, R as createMinimaxCnCodingPlan, S as createMinimaxCodingPlan, T as createMistral, U as createMoark, V as createModelscope, W as createMoonshotai, X as createMoonshotaiCn, Y as createMorph, Z as createNanoGpt, _ as createNebius, $ as createNova, a0 as createNovitaAi, a1 as createNvidia, a2 as createOllamaCloud, a3 as createOpenAI, a4 as createOpencode, a5 as createOpencodeGo, a6 as createOvhcloud, a7 as createPerplexity, a8 as createPerplexityAgent, a9 as createPoe, aa as createPrivatemodeAi, ab as createQihangAi, ac as createQiniuAi, ad as createRequesty, ae as createScaleway, af as createSiliconFlow, ag as createSiliconflowCn, ah as createStackit, ai as createStepfun, aj as createSubmodel, ak as createSynthetic, al as createTencentCodingPlan, am as createUpstage, an as createVenice, ao as createVivgrid, ap as createVultr, aq as createWandb, ar as createXai, as as createXiaomi, at as createZai, au as createZaiCodingPlan, av as createZenmux, aw as createZhipuai, ax as createZhipuaiCodingPlan, ay as createTencentHunyuan, az as createOllama, aA as createLitellm, aB as createAnthropic, aC as createFeatherless, aD as createOpenRouter, aE as createTogetherAI } from './together-ai-DV9eE4QK.js';
|
|
3
3
|
import './utils/index.js';
|
|
4
4
|
import '@xsai/shared';
|
|
5
5
|
|
|
6
6
|
const abacus = createAbacus(process.env.ABACUS_API_KEY ?? "");
|
|
7
7
|
const alibaba = createAlibaba(process.env.DASHSCOPE_API_KEY ?? "");
|
|
8
8
|
const alibabaCn = createAlibabaCn(process.env.DASHSCOPE_API_KEY ?? "");
|
|
9
|
+
const alibabaCodingPlan = createAlibabaCodingPlan(process.env.ALIBABA_CODING_PLAN_API_KEY ?? "");
|
|
10
|
+
const alibabaCodingPlanCn = createAlibabaCodingPlanCn(process.env.ALIBABA_CODING_PLAN_API_KEY ?? "");
|
|
9
11
|
const bailing = createBailing(process.env.BAILING_API_TOKEN ?? "");
|
|
10
12
|
const baseten = createBaseten(process.env.BASETEN_API_KEY ?? "");
|
|
13
|
+
const berget = createBerget(process.env.BERGET_API_KEY ?? "");
|
|
11
14
|
const cerebras = createCerebras(process.env.CEREBRAS_API_KEY ?? "");
|
|
12
15
|
const chutes = createChutes(process.env.CHUTES_API_KEY ?? "");
|
|
16
|
+
const cloudferroSherlock = createCloudferroSherlock(process.env.CLOUDFERRO_SHERLOCK_API_KEY ?? "");
|
|
13
17
|
const cohere = createCohere(process.env.COHERE_API_KEY ?? "");
|
|
14
18
|
const cortecs = createCortecs(process.env.CORTECS_API_KEY ?? "");
|
|
15
19
|
const deepinfra = createDeepinfra(process.env.DEEPINFRA_API_KEY ?? "");
|
|
16
20
|
const deepseek = createDeepSeek(process.env.DEEPSEEK_API_KEY ?? "");
|
|
21
|
+
const dinference = createDinference(process.env.DINFERENCE_API_KEY ?? "");
|
|
22
|
+
const drun = createDrun(process.env.DRUN_API_KEY ?? "");
|
|
23
|
+
const evroc = createEvroc(process.env.EVROC_API_KEY ?? "");
|
|
17
24
|
const fastrouter = createFastrouter(process.env.FASTROUTER_API_KEY ?? "");
|
|
18
25
|
const fireworks = createFireworks(process.env.FIREWORKS_API_KEY ?? "");
|
|
19
26
|
const firmware = createFirmware(process.env.FIRMWARE_API_KEY ?? "");
|
|
@@ -28,34 +35,50 @@ const iflowcn = createIflowcn(process.env.IFLOW_API_KEY ?? "");
|
|
|
28
35
|
const inception = createInception(process.env.INCEPTION_API_KEY ?? "");
|
|
29
36
|
const inference = createInference(process.env.INFERENCE_API_KEY ?? "");
|
|
30
37
|
const ioNet = createIoNet(process.env.IOINTELLIGENCE_API_KEY ?? "");
|
|
38
|
+
const jiekou = createJiekou(process.env.JIEKOU_API_KEY ?? "");
|
|
39
|
+
const kilo = createKilo(process.env.KILO_API_KEY ?? "");
|
|
31
40
|
const kimiForCoding = createKimiForCoding(process.env.KIMI_API_KEY ?? "");
|
|
41
|
+
const kuaeCloudCodingPlan = createKuaeCloudCodingPlan(process.env.KUAE_API_KEY ?? "");
|
|
32
42
|
const llama = createLlama(process.env.LLAMA_API_KEY ?? "");
|
|
43
|
+
const llmgateway = createLlmgateway(process.env.LLMGATEWAY_API_KEY ?? "");
|
|
33
44
|
const lmstudio = createLmstudio(process.env.LMSTUDIO_API_KEY ?? "");
|
|
34
45
|
const lucidquery = createLucidquery(process.env.LUCIDQUERY_API_KEY ?? "");
|
|
46
|
+
const meganova = createMeganova(process.env.MEGANOVA_API_KEY ?? "");
|
|
35
47
|
const minimax = createMinimax(process.env.MINIMAX_API_KEY ?? "");
|
|
36
48
|
const minimaxCn = createMinimaxCn(process.env.MINIMAX_API_KEY ?? "");
|
|
49
|
+
const minimaxCnCodingPlan = createMinimaxCnCodingPlan(process.env.MINIMAX_API_KEY ?? "");
|
|
50
|
+
const minimaxCodingPlan = createMinimaxCodingPlan(process.env.MINIMAX_API_KEY ?? "");
|
|
37
51
|
const mistral = createMistral(process.env.MISTRAL_API_KEY ?? "");
|
|
52
|
+
const moark = createMoark(process.env.MOARK_API_KEY ?? "");
|
|
38
53
|
const modelscope = createModelscope(process.env.MODELSCOPE_API_KEY ?? "");
|
|
39
54
|
const moonshotai = createMoonshotai(process.env.MOONSHOT_API_KEY ?? "");
|
|
40
55
|
const moonshotaiCn = createMoonshotaiCn(process.env.MOONSHOT_API_KEY ?? "");
|
|
41
56
|
const morph = createMorph(process.env.MORPH_API_KEY ?? "");
|
|
42
57
|
const nanoGpt = createNanoGpt(process.env.NANO_GPT_API_KEY ?? "");
|
|
43
58
|
const nebius = createNebius(process.env.NEBIUS_API_KEY ?? "");
|
|
59
|
+
const nova = createNova(process.env.NOVA_API_KEY ?? "");
|
|
44
60
|
const novitaAi = createNovitaAi(process.env.NOVITA_API_KEY ?? "");
|
|
45
61
|
const nvidia = createNvidia(process.env.NVIDIA_API_KEY ?? "");
|
|
46
62
|
const ollamaCloud = createOllamaCloud(process.env.OLLAMA_API_KEY ?? "");
|
|
47
63
|
const openai = createOpenAI(process.env.OPENAI_API_KEY ?? "");
|
|
48
64
|
const opencode = createOpencode(process.env.OPENCODE_API_KEY ?? "");
|
|
65
|
+
const opencodeGo = createOpencodeGo(process.env.OPENCODE_API_KEY ?? "");
|
|
49
66
|
const ovhcloud = createOvhcloud(process.env.OVHCLOUD_API_KEY ?? "");
|
|
50
67
|
const perplexity = createPerplexity(process.env.PERPLEXITY_API_KEY ?? "");
|
|
68
|
+
const perplexityAgent = createPerplexityAgent(process.env.PERPLEXITY_API_KEY ?? "");
|
|
51
69
|
const poe = createPoe(process.env.POE_API_KEY ?? "");
|
|
52
70
|
const privatemodeAi = createPrivatemodeAi(process.env.PRIVATEMODE_API_KEY ?? "");
|
|
71
|
+
const qihangAi = createQihangAi(process.env.QIHANG_API_KEY ?? "");
|
|
72
|
+
const qiniuAi = createQiniuAi(process.env.QINIU_API_KEY ?? "");
|
|
53
73
|
const requesty = createRequesty(process.env.REQUESTY_API_KEY ?? "");
|
|
54
74
|
const scaleway = createScaleway(process.env.SCALEWAY_API_KEY ?? "");
|
|
55
75
|
const siliconflow = createSiliconFlow(process.env.SILICONFLOW_API_KEY ?? "");
|
|
56
76
|
const siliconflowCn = createSiliconflowCn(process.env.SILICONFLOW_CN_API_KEY ?? "");
|
|
77
|
+
const stackit = createStackit(process.env.STACKIT_API_KEY ?? "");
|
|
78
|
+
const stepfun = createStepfun(process.env.STEPFUN_API_KEY ?? "");
|
|
57
79
|
const submodel = createSubmodel(process.env.SUBMODEL_INSTAGEN_ACCESS_KEY ?? "");
|
|
58
80
|
const synthetic = createSynthetic(process.env.SYNTHETIC_API_KEY ?? "");
|
|
81
|
+
const tencentCodingPlan = createTencentCodingPlan(process.env.TENCENT_CODING_PLAN_API_KEY ?? "");
|
|
59
82
|
const upstage = createUpstage(process.env.UPSTAGE_API_KEY ?? "");
|
|
60
83
|
const venice = createVenice(process.env.VENICE_API_KEY ?? "");
|
|
61
84
|
const vivgrid = createVivgrid(process.env.VIVGRID_API_KEY ?? "");
|
|
@@ -68,7 +91,6 @@ const zaiCodingPlan = createZaiCodingPlan(process.env.ZHIPU_API_KEY ?? "");
|
|
|
68
91
|
const zenmux = createZenmux(process.env.ZENMUX_API_KEY ?? "");
|
|
69
92
|
const zhipuai = createZhipuai(process.env.ZHIPU_API_KEY ?? "");
|
|
70
93
|
const zhipuaiCodingPlan = createZhipuaiCodingPlan(process.env.ZHIPU_API_KEY ?? "");
|
|
71
|
-
const stepfun = createStepfun(process.env.STEPFUN_API_KEY ?? "");
|
|
72
94
|
const tencentHunyuan = createTencentHunyuan(process.env.TENCENT_HUNYUAN_API_KEY ?? "");
|
|
73
95
|
const ollama = createOllama(process.env.OLLAMA_API_KEY ?? "");
|
|
74
96
|
const litellm = createLitellm(process.env.LITELLM_API_KEY ?? "");
|
|
@@ -79,4 +101,4 @@ const openrouter = createOpenRouter(process.env.OPENROUTER_API_KEY ?? "");
|
|
|
79
101
|
const togetherai = createTogetherAI(process.env.TOGETHER_API_KEY ?? "");
|
|
80
102
|
const novita = novitaAi;
|
|
81
103
|
|
|
82
|
-
export { abacus, alibaba, alibabaCn, anthropic, bailing, baseten, cerebras, chutes, cohere, cortecs, deepinfra, deepseek, fastrouter, featherless, fireworks, firmware, friendli, githubCopilot, githubModels, google, groq, helicone, huggingface, iflowcn, inception, inference, ioNet, kimiForCoding, litellm, llama, lmstudio, lucidquery, minimax, minimaxCn, mistral, modelscope, moonshotai, moonshotaiCn, morph, nanoGpt, nebius, novita, novitaAi, nvidia, ollama, ollamaCloud, openai, opencode, openrouter, ovhcloud, perplexity, poe, privatemodeAi, requesty, scaleway, siliconflow, siliconflowCn, stepfun, submodel, synthetic, tencentHunyuan, togetherai, upstage, venice, vivgrid, vultr, wandb, xai, xiaomi, zai, zaiCodingPlan, zenmux, zhipuai, zhipuaiCodingPlan };
|
|
104
|
+
export { abacus, alibaba, alibabaCn, alibabaCodingPlan, alibabaCodingPlanCn, anthropic, bailing, baseten, berget, cerebras, chutes, cloudferroSherlock, cohere, cortecs, deepinfra, deepseek, dinference, drun, evroc, fastrouter, featherless, fireworks, firmware, friendli, githubCopilot, githubModels, google, groq, helicone, huggingface, iflowcn, inception, inference, ioNet, jiekou, kilo, kimiForCoding, kuaeCloudCodingPlan, litellm, llama, llmgateway, lmstudio, lucidquery, meganova, minimax, minimaxCn, minimaxCnCodingPlan, minimaxCodingPlan, mistral, moark, modelscope, moonshotai, moonshotaiCn, morph, nanoGpt, nebius, nova, novita, novitaAi, nvidia, ollama, ollamaCloud, openai, opencode, opencodeGo, openrouter, ovhcloud, perplexity, perplexityAgent, poe, privatemodeAi, qihangAi, qiniuAi, requesty, scaleway, siliconflow, siliconflowCn, stackit, stepfun, submodel, synthetic, tencentCodingPlan, tencentHunyuan, togetherai, upstage, venice, vivgrid, vultr, wandb, xai, xiaomi, zai, zaiCodingPlan, zenmux, zhipuai, zhipuaiCodingPlan };
|
package/dist/special/create.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as SpeechProvider, C as ChatProvider, E as EmbedProvider, T as TranscriptionProvider, M as ModelProvider } from '../types-DW1hvH0W.js';
|
|
2
|
-
import { a as AzureModels
|
|
2
|
+
import { a as AzureModels } from '../types-JlPM4HgL.js';
|
|
3
3
|
import '@xsai/shared';
|
|
4
4
|
|
|
5
5
|
interface CreateAzureOptions {
|
|
@@ -13,6 +13,14 @@ const createAlibabaCn = (apiKey, baseURL = "https://dashscope.aliyuncs.com/compa
|
|
|
13
13
|
createChatProvider({ apiKey, baseURL }),
|
|
14
14
|
createModelProvider({ apiKey, baseURL })
|
|
15
15
|
);
|
|
16
|
+
const createAlibabaCodingPlan = (apiKey, baseURL = "https://coding-intl.dashscope.aliyuncs.com/v1") => merge(
|
|
17
|
+
createChatProvider({ apiKey, baseURL }),
|
|
18
|
+
createModelProvider({ apiKey, baseURL })
|
|
19
|
+
);
|
|
20
|
+
const createAlibabaCodingPlanCn = (apiKey, baseURL = "https://coding.dashscope.aliyuncs.com/v1") => merge(
|
|
21
|
+
createChatProvider({ apiKey, baseURL }),
|
|
22
|
+
createModelProvider({ apiKey, baseURL })
|
|
23
|
+
);
|
|
16
24
|
const createBailing = (apiKey, baseURL = "https://api.tbox.cn/api/llm/v1/chat/completions") => merge(
|
|
17
25
|
createChatProvider({ apiKey, baseURL }),
|
|
18
26
|
createModelProvider({ apiKey, baseURL })
|
|
@@ -21,6 +29,10 @@ const createBaseten = (apiKey, baseURL = "https://inference.baseten.co/v1") => m
|
|
|
21
29
|
createChatProvider({ apiKey, baseURL }),
|
|
22
30
|
createModelProvider({ apiKey, baseURL })
|
|
23
31
|
);
|
|
32
|
+
const createBerget = (apiKey, baseURL = "https://api.berget.ai/v1") => merge(
|
|
33
|
+
createChatProvider({ apiKey, baseURL }),
|
|
34
|
+
createModelProvider({ apiKey, baseURL })
|
|
35
|
+
);
|
|
24
36
|
const createCerebras = (apiKey, baseURL = "https://api.cerebras.ai/v1/") => merge(
|
|
25
37
|
createChatProvider({ apiKey, baseURL }),
|
|
26
38
|
createModelProvider({ apiKey, baseURL }),
|
|
@@ -30,6 +42,10 @@ const createChutes = (apiKey, baseURL = "https://llm.chutes.ai/v1") => merge(
|
|
|
30
42
|
createChatProvider({ apiKey, baseURL }),
|
|
31
43
|
createModelProvider({ apiKey, baseURL })
|
|
32
44
|
);
|
|
45
|
+
const createCloudferroSherlock = (apiKey, baseURL = "https://api-sherlock.cloudferro.com/openai/v1/") => merge(
|
|
46
|
+
createChatProvider({ apiKey, baseURL }),
|
|
47
|
+
createModelProvider({ apiKey, baseURL })
|
|
48
|
+
);
|
|
33
49
|
const createCohere = (apiKey, baseURL = "https://api.cohere.ai/compatibility/v1/") => merge(
|
|
34
50
|
createChatProvider({ apiKey, baseURL }),
|
|
35
51
|
createModelProvider({ apiKey, baseURL }),
|
|
@@ -48,6 +64,18 @@ const createDeepSeek = (apiKey, baseURL = "https://api.deepseek.com") => merge(
|
|
|
48
64
|
createChatProvider({ apiKey, baseURL }),
|
|
49
65
|
createModelProvider({ apiKey, baseURL })
|
|
50
66
|
);
|
|
67
|
+
const createDinference = (apiKey, baseURL = "https://api.dinference.com/v1") => merge(
|
|
68
|
+
createChatProvider({ apiKey, baseURL }),
|
|
69
|
+
createModelProvider({ apiKey, baseURL })
|
|
70
|
+
);
|
|
71
|
+
const createDrun = (apiKey, baseURL = "https://chat.d.run/v1") => merge(
|
|
72
|
+
createChatProvider({ apiKey, baseURL }),
|
|
73
|
+
createModelProvider({ apiKey, baseURL })
|
|
74
|
+
);
|
|
75
|
+
const createEvroc = (apiKey, baseURL = "https://models.think.evroc.com/v1") => merge(
|
|
76
|
+
createChatProvider({ apiKey, baseURL }),
|
|
77
|
+
createModelProvider({ apiKey, baseURL })
|
|
78
|
+
);
|
|
51
79
|
const createFastrouter = (apiKey, baseURL = "https://go.fastrouter.ai/api/v1") => merge(
|
|
52
80
|
createChatProvider({ apiKey, baseURL }),
|
|
53
81
|
createModelProvider({ apiKey, baseURL })
|
|
@@ -56,7 +84,7 @@ const createFireworks = (apiKey, baseURL = "https://api.fireworks.ai/inference/v
|
|
|
56
84
|
createChatProvider({ apiKey, baseURL }),
|
|
57
85
|
createModelProvider({ apiKey, baseURL })
|
|
58
86
|
);
|
|
59
|
-
const createFirmware = (apiKey, baseURL = "https://app.
|
|
87
|
+
const createFirmware = (apiKey, baseURL = "https://app.frogbot.ai/api/v1") => merge(
|
|
60
88
|
createChatProvider({ apiKey, baseURL }),
|
|
61
89
|
createModelProvider({ apiKey, baseURL })
|
|
62
90
|
);
|
|
@@ -106,14 +134,30 @@ const createIoNet = (apiKey, baseURL = "https://api.intelligence.io.solutions/ap
|
|
|
106
134
|
createChatProvider({ apiKey, baseURL }),
|
|
107
135
|
createModelProvider({ apiKey, baseURL })
|
|
108
136
|
);
|
|
137
|
+
const createJiekou = (apiKey, baseURL = "https://api.jiekou.ai/openai") => merge(
|
|
138
|
+
createChatProvider({ apiKey, baseURL }),
|
|
139
|
+
createModelProvider({ apiKey, baseURL })
|
|
140
|
+
);
|
|
141
|
+
const createKilo = (apiKey, baseURL = "https://api.kilo.ai/api/gateway") => merge(
|
|
142
|
+
createChatProvider({ apiKey, baseURL }),
|
|
143
|
+
createModelProvider({ apiKey, baseURL })
|
|
144
|
+
);
|
|
109
145
|
const createKimiForCoding = (apiKey, baseURL = "https://api.kimi.com/coding/v1") => merge(
|
|
110
146
|
createChatProvider({ apiKey, baseURL }),
|
|
111
147
|
createModelProvider({ apiKey, baseURL })
|
|
112
148
|
);
|
|
149
|
+
const createKuaeCloudCodingPlan = (apiKey, baseURL = "https://coding-plan-endpoint.kuaecloud.net/v1") => merge(
|
|
150
|
+
createChatProvider({ apiKey, baseURL }),
|
|
151
|
+
createModelProvider({ apiKey, baseURL })
|
|
152
|
+
);
|
|
113
153
|
const createLlama = (apiKey, baseURL = "https://api.llama.com/compat/v1/") => merge(
|
|
114
154
|
createChatProvider({ apiKey, baseURL }),
|
|
115
155
|
createModelProvider({ apiKey, baseURL })
|
|
116
156
|
);
|
|
157
|
+
const createLlmgateway = (apiKey, baseURL = "https://api.llmgateway.io/v1") => merge(
|
|
158
|
+
createChatProvider({ apiKey, baseURL }),
|
|
159
|
+
createModelProvider({ apiKey, baseURL })
|
|
160
|
+
);
|
|
117
161
|
const createLmstudio = (apiKey, baseURL = "http://127.0.0.1:1234/v1") => merge(
|
|
118
162
|
createChatProvider({ apiKey, baseURL }),
|
|
119
163
|
createModelProvider({ apiKey, baseURL })
|
|
@@ -122,6 +166,10 @@ const createLucidquery = (apiKey, baseURL = "https://lucidquery.com/api/v1") =>
|
|
|
122
166
|
createChatProvider({ apiKey, baseURL }),
|
|
123
167
|
createModelProvider({ apiKey, baseURL })
|
|
124
168
|
);
|
|
169
|
+
const createMeganova = (apiKey, baseURL = "https://api.meganova.ai/v1") => merge(
|
|
170
|
+
createChatProvider({ apiKey, baseURL }),
|
|
171
|
+
createModelProvider({ apiKey, baseURL })
|
|
172
|
+
);
|
|
125
173
|
const createMinimax = (apiKey, baseURL = "https://api.minimax.io/v1/") => merge(
|
|
126
174
|
createChatProvider({ apiKey, baseURL }),
|
|
127
175
|
createModelProvider({ apiKey, baseURL })
|
|
@@ -130,11 +178,23 @@ const createMinimaxCn = (apiKey, baseURL = "https://api.minimaxi.com/v1/") => me
|
|
|
130
178
|
createChatProvider({ apiKey, baseURL }),
|
|
131
179
|
createModelProvider({ apiKey, baseURL })
|
|
132
180
|
);
|
|
181
|
+
const createMinimaxCnCodingPlan = (apiKey, baseURL = "https://api.minimaxi.com/anthropic/v1") => merge(
|
|
182
|
+
createChatProvider({ apiKey, baseURL }),
|
|
183
|
+
createModelProvider({ apiKey, baseURL })
|
|
184
|
+
);
|
|
185
|
+
const createMinimaxCodingPlan = (apiKey, baseURL = "https://api.minimax.io/anthropic/v1") => merge(
|
|
186
|
+
createChatProvider({ apiKey, baseURL }),
|
|
187
|
+
createModelProvider({ apiKey, baseURL })
|
|
188
|
+
);
|
|
133
189
|
const createMistral = (apiKey, baseURL = "https://api.mistral.ai/v1/") => merge(
|
|
134
190
|
createChatProvider({ apiKey, baseURL }),
|
|
135
191
|
createModelProvider({ apiKey, baseURL }),
|
|
136
192
|
createEmbedProvider({ apiKey, baseURL })
|
|
137
193
|
);
|
|
194
|
+
const createMoark = (apiKey, baseURL = "https://moark.com/v1") => merge(
|
|
195
|
+
createChatProvider({ apiKey, baseURL }),
|
|
196
|
+
createModelProvider({ apiKey, baseURL })
|
|
197
|
+
);
|
|
138
198
|
const createModelscope = (apiKey, baseURL = "https://api-inference.modelscope.cn/v1") => merge(
|
|
139
199
|
createChatProvider({ apiKey, baseURL }),
|
|
140
200
|
createModelProvider({ apiKey, baseURL })
|
|
@@ -159,6 +219,10 @@ const createNebius = (apiKey, baseURL = "https://api.tokenfactory.nebius.com/v1"
|
|
|
159
219
|
createChatProvider({ apiKey, baseURL }),
|
|
160
220
|
createModelProvider({ apiKey, baseURL })
|
|
161
221
|
);
|
|
222
|
+
const createNova = (apiKey, baseURL = "https://api.nova.amazon.com/v1") => merge(
|
|
223
|
+
createChatProvider({ apiKey, baseURL }),
|
|
224
|
+
createModelProvider({ apiKey, baseURL })
|
|
225
|
+
);
|
|
162
226
|
const createNovitaAi = (apiKey, baseURL = "https://api.novita.ai/openai") => merge(
|
|
163
227
|
createChatProvider({ apiKey, baseURL }),
|
|
164
228
|
createModelProvider({ apiKey, baseURL })
|
|
@@ -183,6 +247,10 @@ const createOpencode = (apiKey, baseURL = "https://opencode.ai/zen/v1") => merge
|
|
|
183
247
|
createChatProvider({ apiKey, baseURL }),
|
|
184
248
|
createModelProvider({ apiKey, baseURL })
|
|
185
249
|
);
|
|
250
|
+
const createOpencodeGo = (apiKey, baseURL = "https://opencode.ai/zen/go/v1") => merge(
|
|
251
|
+
createChatProvider({ apiKey, baseURL }),
|
|
252
|
+
createModelProvider({ apiKey, baseURL })
|
|
253
|
+
);
|
|
186
254
|
const createOvhcloud = (apiKey, baseURL = "https://oai.endpoints.kepler.ai.cloud.ovh.net/v1") => merge(
|
|
187
255
|
createChatProvider({ apiKey, baseURL }),
|
|
188
256
|
createModelProvider({ apiKey, baseURL })
|
|
@@ -191,6 +259,10 @@ const createPerplexity = (apiKey, baseURL = "https://api.perplexity.ai/") => mer
|
|
|
191
259
|
createChatProvider({ apiKey, baseURL }),
|
|
192
260
|
createModelProvider({ apiKey, baseURL })
|
|
193
261
|
);
|
|
262
|
+
const createPerplexityAgent = (apiKey, baseURL = "https://api.perplexity.ai/v1") => merge(
|
|
263
|
+
createChatProvider({ apiKey, baseURL }),
|
|
264
|
+
createModelProvider({ apiKey, baseURL })
|
|
265
|
+
);
|
|
194
266
|
const createPoe = (apiKey, baseURL = "https://api.poe.com/v1") => merge(
|
|
195
267
|
createChatProvider({ apiKey, baseURL }),
|
|
196
268
|
createModelProvider({ apiKey, baseURL })
|
|
@@ -199,6 +271,14 @@ const createPrivatemodeAi = (apiKey, baseURL = "http://localhost:8080/v1") => me
|
|
|
199
271
|
createChatProvider({ apiKey, baseURL }),
|
|
200
272
|
createModelProvider({ apiKey, baseURL })
|
|
201
273
|
);
|
|
274
|
+
const createQihangAi = (apiKey, baseURL = "https://api.qhaigc.net/v1") => merge(
|
|
275
|
+
createChatProvider({ apiKey, baseURL }),
|
|
276
|
+
createModelProvider({ apiKey, baseURL })
|
|
277
|
+
);
|
|
278
|
+
const createQiniuAi = (apiKey, baseURL = "https://api.qnaigc.com/v1") => merge(
|
|
279
|
+
createChatProvider({ apiKey, baseURL }),
|
|
280
|
+
createModelProvider({ apiKey, baseURL })
|
|
281
|
+
);
|
|
202
282
|
const createRequesty = (apiKey, baseURL = "https://router.requesty.ai/v1") => merge(
|
|
203
283
|
createChatProvider({ apiKey, baseURL }),
|
|
204
284
|
createModelProvider({ apiKey, baseURL })
|
|
@@ -218,11 +298,26 @@ const createSiliconflowCn = (apiKey, baseURL = "https://api.siliconflow.cn/v1")
|
|
|
218
298
|
createChatProvider({ apiKey, baseURL }),
|
|
219
299
|
createModelProvider({ apiKey, baseURL })
|
|
220
300
|
);
|
|
301
|
+
const createStackit = (apiKey, baseURL = "https://api.openai-compat.model-serving.eu01.onstackit.cloud/v1") => merge(
|
|
302
|
+
createChatProvider({ apiKey, baseURL }),
|
|
303
|
+
createModelProvider({ apiKey, baseURL })
|
|
304
|
+
);
|
|
305
|
+
const createStepfun = (apiKey, baseURL = "https://api.stepfun.com/v1") => merge(
|
|
306
|
+
createChatProvider({ apiKey, baseURL }),
|
|
307
|
+
createModelProvider({ apiKey, baseURL }),
|
|
308
|
+
createEmbedProvider({ apiKey, baseURL }),
|
|
309
|
+
createSpeechProvider({ apiKey, baseURL }),
|
|
310
|
+
createTranscriptionProvider({ apiKey, baseURL })
|
|
311
|
+
);
|
|
221
312
|
const createSubmodel = (apiKey, baseURL = "https://llm.submodel.ai/v1") => merge(
|
|
222
313
|
createChatProvider({ apiKey, baseURL }),
|
|
223
314
|
createModelProvider({ apiKey, baseURL })
|
|
224
315
|
);
|
|
225
|
-
const createSynthetic = (apiKey, baseURL = "https://api.synthetic.new/v1") => merge(
|
|
316
|
+
const createSynthetic = (apiKey, baseURL = "https://api.synthetic.new/openai/v1") => merge(
|
|
317
|
+
createChatProvider({ apiKey, baseURL }),
|
|
318
|
+
createModelProvider({ apiKey, baseURL })
|
|
319
|
+
);
|
|
320
|
+
const createTencentCodingPlan = (apiKey, baseURL = "https://api.lkeap.cloud.tencent.com/coding/v3") => merge(
|
|
226
321
|
createChatProvider({ apiKey, baseURL }),
|
|
227
322
|
createModelProvider({ apiKey, baseURL })
|
|
228
323
|
);
|
|
@@ -274,13 +369,6 @@ const createZhipuaiCodingPlan = (apiKey, baseURL = "https://open.bigmodel.cn/api
|
|
|
274
369
|
createChatProvider({ apiKey, baseURL }),
|
|
275
370
|
createModelProvider({ apiKey, baseURL })
|
|
276
371
|
);
|
|
277
|
-
const createStepfun = (apiKey, baseURL = "https://api.stepfun.com/v1/") => merge(
|
|
278
|
-
createChatProvider({ apiKey, baseURL }),
|
|
279
|
-
createModelProvider({ apiKey, baseURL }),
|
|
280
|
-
createEmbedProvider({ apiKey, baseURL }),
|
|
281
|
-
createSpeechProvider({ apiKey, baseURL }),
|
|
282
|
-
createTranscriptionProvider({ apiKey, baseURL })
|
|
283
|
-
);
|
|
284
372
|
const createTencentHunyuan = (apiKey, baseURL = "https://api.hunyuan.cloud.tencent.com/v1/") => merge(
|
|
285
373
|
createChatProvider({ apiKey, baseURL }),
|
|
286
374
|
createModelProvider({ apiKey, baseURL }),
|
|
@@ -350,4 +438,4 @@ const createTogetherAI = (apiKey, baseURL = "https://api.together.xyz/v1/") => m
|
|
|
350
438
|
})
|
|
351
439
|
);
|
|
352
440
|
|
|
353
|
-
export {
|
|
441
|
+
export { createNova as $, createHelicone as A, createHuggingface as B, createIflowcn as C, createInception as D, createInference as E, createIoNet as F, createJiekou as G, createKilo as H, createKimiForCoding as I, createKuaeCloudCodingPlan as J, createLlama as K, createLlmgateway as L, createLmstudio as M, createLucidquery as N, createMeganova as O, createMinimax as P, createMinimaxCn as Q, createMinimaxCnCodingPlan as R, createMinimaxCodingPlan as S, createMistral as T, createMoark as U, createModelscope as V, createMoonshotai as W, createMoonshotaiCn as X, createMorph as Y, createNanoGpt as Z, createNebius as _, createAlibaba as a, createNovitaAi as a0, createNvidia as a1, createOllamaCloud as a2, createOpenAI as a3, createOpencode as a4, createOpencodeGo as a5, createOvhcloud as a6, createPerplexity as a7, createPerplexityAgent as a8, createPoe as a9, createLitellm as aA, createAnthropic as aB, createFeatherless as aC, createOpenRouter as aD, createTogetherAI as aE, createPrivatemodeAi as aa, createQihangAi as ab, createQiniuAi as ac, createRequesty as ad, createScaleway as ae, createSiliconFlow as af, createSiliconflowCn as ag, createStackit as ah, createStepfun as ai, createSubmodel as aj, createSynthetic as ak, createTencentCodingPlan as al, createUpstage as am, createVenice as an, createVivgrid as ao, createVultr as ap, createWandb as aq, createXai as ar, createXiaomi as as, createZai as at, createZaiCodingPlan as au, createZenmux as av, createZhipuai as aw, createZhipuaiCodingPlan as ax, createTencentHunyuan as ay, createOllama as az, createAlibabaCn as b, createAbacus as c, createAlibabaCodingPlan as d, createAlibabaCodingPlanCn as e, createBailing as f, createBaseten as g, createBerget as h, createCerebras as i, createChutes as j, createCloudferroSherlock as k, createCohere as l, createCortecs as m, createDeepinfra as n, createDeepSeek as o, createDinference as p, createDrun as q, createEvroc as r, createFastrouter as s, createFireworks as t, createFirmware as u, createFriendli as v, createGithubCopilot as w, createGithubModels as x, createGoogleGenerativeAI as y, createGroq as z };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type OpenrouterModels = 'openai/gpt-5.2-codex' | 'openai/gpt-5.1-codex-mini' | 'openai/gpt-5.4-pro' | 'openai/gpt-oss-120b:free' | 'openai/gpt-oss-120b:exacto' | 'openai/gpt-5.4-mini' | 'openai/gpt-5-pro' | 'openai/gpt-5' | 'openai/gpt-5.3-codex' | 'openai/gpt-5-mini' | 'openai/gpt-4o-mini' | 'openai/gpt-5.1-codex-max' | 'openai/gpt-4.1' | 'openai/gpt-oss-120b' | 'openai/gpt-5.1-chat' | 'openai/gpt-5.4' | 'openai/gpt-oss-20b:free' | 'openai/gpt-5-chat' | 'openai/gpt-5.4-nano' | 'openai/gpt-5.2-chat' | 'openai/gpt-5.2' | 'openai/gpt-5.1' | 'openai/gpt-4.1-mini' | 'openai/gpt-5-nano' | 'openai/gpt-oss-safeguard-20b' | 'openai/gpt-oss-20b' | 'openai/gpt-5-image' | 'openai/gpt-5-codex' | 'openai/o4-mini' | 'openai/gpt-5.1-codex' | 'openai/gpt-5.2-pro' | 'prime-intellect/intellect-3' | 'x-ai/grok-4-fast' | 'x-ai/grok-4.20-beta' | 'x-ai/grok-4.1-fast' | 'x-ai/grok-4' | 'x-ai/grok-code-fast-1' | 'x-ai/grok-4.20-multi-agent-beta' | 'x-ai/grok-3-mini' | 'x-ai/grok-3-beta' | 'x-ai/grok-3' | 'x-ai/grok-3-mini-beta' | 'anthropic/claude-opus-4.6' | 'anthropic/claude-haiku-4.5' | 'anthropic/claude-opus-4.1' | 'anthropic/claude-3.7-sonnet' | 'anthropic/claude-sonnet-4.6' | 'anthropic/claude-sonnet-4' | 'anthropic/claude-3.5-haiku' | 'anthropic/claude-opus-4.5' | 'anthropic/claude-sonnet-4.5' | 'anthropic/claude-opus-4' | 'deepseek/deepseek-v3.1-terminus' | 'deepseek/deepseek-r1-distill-llama-70b' | 'deepseek/deepseek-v3.1-terminus:exacto' | 'deepseek/deepseek-chat-v3.1' | 'deepseek/deepseek-v3.2-speciale' | 'deepseek/deepseek-chat-v3-0324' | 'deepseek/deepseek-v3.2' | 'nvidia/nemotron-nano-9b-v2:free' | 'nvidia/nemotron-3-super-120b-a12b' | 'nvidia/nemotron-nano-12b-v2-vl:free' | 'nvidia/nemotron-nano-9b-v2' | 'nvidia/nemotron-3-super-120b-a12b:free' | 'nvidia/nemotron-3-nano-30b-a3b:free' | 'z-ai/glm-4.7-flash' | 'z-ai/glm-5-turbo' | 'z-ai/glm-4.5' | 'z-ai/glm-4.6' | 'z-ai/glm-4.5-air:free' | 'z-ai/glm-5' | 'z-ai/glm-4.5-air' | 'z-ai/glm-4.5v' | 'z-ai/glm-4.7' | 'z-ai/glm-4.6:exacto' | 'sourceful/riverflow-v2-standard-preview' | 'sourceful/riverflow-v2-fast-preview' | 'sourceful/riverflow-v2-max-preview' | 'cognitivecomputations/dolphin-mistral-24b-venice-edition:free' | 'google/gemini-2.5-flash-lite' | 'google/gemma-3-12b-it:free' | 'google/gemini-2.5-flash-lite-preview-09-2025' | 'google/gemma-2-9b-it' | 'google/gemini-3.1-pro-preview' | 'google/gemini-3-pro-preview' | 'google/gemma-3-27b-it' | 'google/gemma-3-4b-it' | 'google/gemma-3n-e4b-it' | 'google/gemini-2.5-pro-preview-06-05' | 'google/gemma-3-4b-it:free' | 'google/gemini-2.5-pro-preview-05-06' | 'google/gemini-2.0-flash-001' | 'google/gemma-3-27b-it:free' | 'google/gemini-3-flash-preview' | 'google/gemini-2.5-pro' | 'google/gemini-2.5-flash' | 'google/gemini-3.1-pro-preview-customtools' | 'google/gemini-2.5-flash-preview-09-2025' | 'google/gemini-3.1-flash-lite-preview' | 'google/gemma-3-12b-it' | 'google/gemma-3n-e2b-it:free' | 'google/gemma-3n-e4b-it:free' | 'meta-llama/llama-3.2-11b-vision-instruct' | 'meta-llama/llama-3.2-3b-instruct:free' | 'meta-llama/llama-3.3-70b-instruct:free' | 'openrouter/free' | 'arcee-ai/trinity-mini:free' | 'arcee-ai/trinity-large-preview:free' | 'nousresearch/hermes-4-70b' | 'nousresearch/hermes-4-405b' | 'nousresearch/hermes-3-llama-3.1-405b:free' | 'minimax/minimax-01' | 'minimax/minimax-m2' | 'minimax/minimax-m2.1' | 'minimax/minimax-m2.7' | 'minimax/minimax-m2.5' | 'minimax/minimax-m1' | 'qwen/qwen3-coder-30b-a3b-instruct' | 'qwen/qwen3-235b-a22b-07-25' | 'qwen/qwen3-30b-a3b-thinking-2507' | 'qwen/qwen3.5-plus-02-15' | 'qwen/qwen3-coder' | 'qwen/qwen3-4b:free' | 'qwen/qwen3-coder:free' | 'qwen/qwen2.5-vl-72b-instruct' | 'qwen/qwen3-next-80b-a3b-thinking' | 'qwen/qwen3-235b-a22b-thinking-2507' | 'qwen/qwen3-next-80b-a3b-instruct:free' | 'qwen/qwen3-next-80b-a3b-instruct' | 'qwen/qwen3.6-plus-preview:free' | 'qwen/qwen3-coder:exacto' | 'qwen/qwen3.5-397b-a17b' | 'qwen/qwen3-max' | 'qwen/qwen3-coder-flash' | 'qwen/qwen-2.5-coder-32b-instruct' | 'qwen/qwen3-30b-a3b-instruct-2507' | 'xiaomi/mimo-v2-pro' | 'xiaomi/mimo-v2-omni' | 'xiaomi/mimo-v2-flash' | 'black-forest-labs/flux.2-pro' | 'black-forest-labs/flux.2-max' | 'black-forest-labs/flux.2-klein-4b' | 'black-forest-labs/flux.2-flex' | 'stepfun/step-3.5-flash' | 'stepfun/step-3.5-flash:free' | 'liquid/lfm-2.5-1.2b-instruct:free' | 'liquid/lfm-2.5-1.2b-thinking:free' | 'moonshotai/kimi-k2-thinking' | 'moonshotai/kimi-k2.5' | 'moonshotai/kimi-k2-0905' | 'moonshotai/kimi-k2' | 'moonshotai/kimi-k2-0905:exacto' | 'moonshotai/kimi-k2:free' | 'bytedance-seed/seedream-4.5' | 'inception/mercury-2' | 'inception/mercury-coder' | 'inception/mercury' | 'mistralai/mistral-medium-3.1' | 'mistralai/devstral-small-2505' | 'mistralai/mistral-small-2603' | 'mistralai/mistral-medium-3' | 'mistralai/devstral-2512' | 'mistralai/codestral-2508' | 'mistralai/devstral-medium-2507' | 'mistralai/devstral-small-2507' | 'mistralai/mistral-small-3.2-24b-instruct' | 'mistralai/mistral-small-3.1-24b-instruct';
|
|
2
|
+
type AnthropicModels = 'claude-opus-4-5-20251101' | 'claude-opus-4-20250514' | 'claude-opus-4-5' | 'claude-3-7-sonnet-20250219' | 'claude-opus-4-6' | 'claude-sonnet-4-5-20250929' | 'claude-sonnet-4-6' | 'claude-3-5-haiku-20241022' | 'claude-sonnet-4-0' | 'claude-3-haiku-20240307' | 'claude-sonnet-4-20250514' | 'claude-opus-4-1' | 'claude-3-opus-20240229' | 'claude-3-5-haiku-latest' | 'claude-3-5-sonnet-20240620' | 'claude-opus-4-1-20250805' | 'claude-opus-4-0' | 'claude-haiku-4-5-20251001' | 'claude-sonnet-4-5' | 'claude-3-7-sonnet-latest' | 'claude-haiku-4-5' | 'claude-3-sonnet-20240229' | 'claude-3-5-sonnet-20241022';
|
|
3
|
+
type AzureModels = 'gpt-5.2-codex' | 'text-embedding-3-large' | 'gpt-5.1-codex-mini' | 'phi-4-multimodal' | 'cohere-embed-v3-multilingual' | 'gpt-5.4-pro' | 'cohere-embed-v3-english' | 'o3-mini' | 'gpt-5.4-mini' | 'gpt-5-pro' | 'gpt-3.5-turbo-0613' | 'deepseek-v3-0324' | 'meta-llama-3.1-8b-instruct' | 'kimi-k2-thinking' | 'deepseek-r1' | 'gpt-5' | 'llama-3.3-70b-instruct' | 'phi-3-mini-128k-instruct' | 'phi-3-small-8k-instruct' | 'claude-opus-4-5' | 'kimi-k2.5' | 'gpt-4-turbo' | 'gpt-4o' | 'grok-4-fast-non-reasoning' | 'grok-4' | 'gpt-3.5-turbo-1106' | 'phi-4-mini' | 'phi-4-reasoning' | 'grok-code-fast-1' | 'codestral-2501' | 'gpt-5.3-codex' | 'gpt-5-mini' | 'gpt-4-turbo-vision' | 'mistral-large-2411' | 'claude-opus-4-6' | 'gpt-4o-mini' | 'gpt-5.1-codex-max' | 'gpt-4.1' | 'codex-mini' | 'phi-4-mini-reasoning' | 'llama-4-scout-17b-16e-instruct' | 'llama-3.2-11b-vision-instruct' | 'phi-3-mini-4k-instruct' | 'phi-3-medium-4k-instruct' | 'model-router' | 'gpt-3.5-turbo-instruct' | 'gpt-5.1-chat' | 'gpt-5.4' | 'o1' | 'o3' | 'grok-4-1-fast-non-reasoning' | 'mai-ds-r1' | 'mistral-small-2503' | 'gpt-5-chat' | 'cohere-command-r-plus-08-2024' | 'meta-llama-3-70b-instruct' | 'phi-3.5-mini-instruct' | 'meta-llama-3-8b-instruct' | 'grok-3-mini' | 'claude-opus-4-1' | 'gpt-5.4-nano' | 'gpt-4-32k' | 'mistral-medium-2505' | 'gpt-4' | 'gpt-5.3-chat' | 'llama-3.2-90b-vision-instruct' | 'deepseek-v3.2-speciale' | 'text-embedding-ada-002' | 'ministral-3b' | 'mistral-nemo' | 'gpt-5.2-chat' | 'gpt-5.2' | 'gpt-3.5-turbo-0301' | 'phi-4' | 'grok-4-1-fast-reasoning' | 'gpt-5.1' | 'deepseek-v3.1' | 'cohere-command-r-08-2024' | 'gpt-4.1-mini' | 'phi-3-medium-128k-instruct' | 'meta-llama-3.1-405b-instruct' | 'phi-3.5-moe-instruct' | 'grok-4-fast-reasoning' | 'gpt-5-nano' | 'cohere-command-a' | 'grok-3' | 'phi-4-reasoning-plus' | 'cohere-embed-v-4-0' | 'llama-4-maverick-17b-128e-instruct-fp8' | 'deepseek-r1-0528' | 'phi-3-small-128k-instruct' | 'meta-llama-3.1-70b-instruct' | 'gpt-4.1-nano' | 'claude-sonnet-4-5' | 'o1-preview' | 'deepseek-v3.2' | 'gpt-3.5-turbo-0125' | 'text-embedding-3-small' | 'gpt-5-codex' | 'o4-mini' | 'claude-haiku-4-5' | 'gpt-5.1-codex' | 'o1-mini';
|
|
4
|
+
type TogetheraiModels = 'openai/gpt-oss-120b' | 'zai-org/GLM-4.7' | 'zai-org/GLM-5' | 'zai-org/GLM-4.6' | 'meta-llama/Llama-3.3-70B-Instruct-Turbo' | 'MiniMaxAI/MiniMax-M2.5' | 'essentialai/Rnj-1-Instruct' | 'deepseek-ai/DeepSeek-R1' | 'deepseek-ai/DeepSeek-V3-1' | 'deepseek-ai/DeepSeek-V3' | 'Qwen/Qwen3-Coder-Next-FP8' | 'Qwen/Qwen3-235B-A22B-Instruct-2507-tput' | 'Qwen/Qwen3.5-397B-A17B' | 'Qwen/Qwen3-Next-80B-A3B-Instruct' | 'Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8' | 'moonshotai/Kimi-K2-Instruct' | 'moonshotai/Kimi-K2.5';
|
|
5
|
+
|
|
6
|
+
export type { AnthropicModels as A, OpenrouterModels as O, TogetheraiModels as T, AzureModels as a };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xsai-ext/providers",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.5.0-beta.2",
|
|
5
5
|
"description": "extra-small AI SDK.",
|
|
6
6
|
"author": "Moeru AI",
|
|
7
7
|
"license": "MIT",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"dist"
|
|
46
46
|
],
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@xsai/shared": "~0.
|
|
48
|
+
"@xsai/shared": "~0.5.0-beta.2"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"scule": "^1.3.0",
|
package/dist/types-B2HZyaCH.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
type OpenrouterModels = 'moonshotai/kimi-k2' | 'moonshotai/kimi-k2-0905' | 'moonshotai/kimi-dev-72b:free' | 'moonshotai/kimi-k2-thinking' | 'moonshotai/kimi-k2-0905:exacto' | 'moonshotai/kimi-k2:free' | 'thudm/glm-z1-32b:free' | 'nousresearch/hermes-4-70b' | 'nousresearch/hermes-4-405b' | 'nousresearch/deephermes-3-llama-3-8b-preview' | 'nvidia/nemotron-nano-9b-v2' | 'x-ai/grok-4' | 'x-ai/grok-code-fast-1' | 'x-ai/grok-3' | 'x-ai/grok-4-fast' | 'x-ai/grok-3-beta' | 'x-ai/grok-3-mini-beta' | 'x-ai/grok-3-mini' | 'x-ai/grok-4.1-fast' | 'kwaipilot/kat-coder-pro:free' | 'cognitivecomputations/dolphin3.0-mistral-24b' | 'cognitivecomputations/dolphin3.0-r1-mistral-24b' | 'deepseek/deepseek-chat-v3.1' | 'deepseek/deepseek-r1:free' | 'deepseek/deepseek-v3.2-speciale' | 'deepseek/deepseek-v3-base:free' | 'deepseek/deepseek-v3.1-terminus' | 'deepseek/deepseek-r1-0528-qwen3-8b:free' | 'deepseek/deepseek-chat-v3-0324' | 'deepseek/deepseek-r1-0528:free' | 'deepseek/deepseek-r1-distill-llama-70b' | 'deepseek/deepseek-r1-distill-qwen-14b' | 'deepseek/deepseek-v3.1-terminus:exacto' | 'deepseek/deepseek-v3.2' | 'featherless/qwerky-72b' | 'tngtech/deepseek-r1t2-chimera:free' | 'minimax/minimax-m1' | 'minimax/minimax-m2' | 'minimax/minimax-01' | 'minimax/minimax-m2.1' | 'google/gemini-2.0-flash-001' | 'google/gemma-2-9b-it:free' | 'google/gemini-3-flash-preview' | 'google/gemini-3-pro-preview' | 'google/gemini-2.5-flash' | 'google/gemini-2.5-pro-preview-05-06' | 'google/gemma-3n-e4b-it' | 'google/gemini-2.5-flash-lite' | 'google/gemini-2.5-pro-preview-06-05' | 'google/gemini-2.5-flash-preview-09-2025' | 'google/gemini-2.5-pro' | 'google/gemma-3-12b-it' | 'google/gemma-3n-e4b-it:free' | 'google/gemini-2.5-flash-lite-preview-09-2025' | 'google/gemini-2.0-flash-exp:free' | 'google/gemma-3-27b-it' | 'microsoft/mai-ds-r1:free' | 'openai/gpt-oss-safeguard-20b' | 'openai/gpt-5.2-codex' | 'openai/gpt-5.1-codex' | 'openai/gpt-4.1-mini' | 'openai/gpt-5-chat' | 'openai/gpt-5.2-pro' | 'openai/gpt-5.1-codex-mini' | 'openai/gpt-5.2-chat-latest' | 'openai/gpt-5.1' | 'openai/gpt-5-nano' | 'openai/gpt-5-codex' | 'openai/gpt-4.1' | 'openai/gpt-oss-120b:exacto' | 'openai/o4-mini' | 'openai/gpt-5.1-chat' | 'openai/gpt-5-mini' | 'openai/gpt-5-image' | 'openai/gpt-oss-20b' | 'openai/gpt-oss-120b' | 'openai/gpt-4o-mini' | 'openai/gpt-5' | 'openai/gpt-5-pro' | 'openai/gpt-5.2' | 'openrouter/sherlock-think-alpha' | 'openrouter/sherlock-dash-alpha' | 'z-ai/glm-4.7' | 'z-ai/glm-4.5' | 'z-ai/glm-4.5-air' | 'z-ai/glm-4.5v' | 'z-ai/glm-4.6' | 'z-ai/glm-4.6:exacto' | 'z-ai/glm-4.5-air:free' | 'qwen/qwen3-coder' | 'qwen/qwen3-32b:free' | 'qwen/qwen3-next-80b-a3b-instruct' | 'qwen/qwen-2.5-coder-32b-instruct' | 'qwen/qwen3-235b-a22b:free' | 'qwen/qwen3-coder-flash' | 'qwen/qwq-32b:free' | 'qwen/qwen3-30b-a3b-thinking-2507' | 'qwen/qwen3-30b-a3b:free' | 'qwen/qwen2.5-vl-72b-instruct' | 'qwen/qwen3-14b:free' | 'qwen/qwen3-30b-a3b-instruct-2507' | 'qwen/qwen3-coder-30b-a3b-instruct' | 'qwen/qwen3-235b-a22b-thinking-2507' | 'qwen/qwen2.5-vl-32b-instruct:free' | 'qwen/qwen2.5-vl-72b-instruct:free' | 'qwen/qwen3-235b-a22b-07-25:free' | 'qwen/qwen3-coder:free' | 'qwen/qwen3-235b-a22b-07-25' | 'qwen/qwen3-8b:free' | 'qwen/qwen3-max' | 'qwen/qwen3-next-80b-a3b-thinking' | 'qwen/qwen3-coder:exacto' | 'mistralai/devstral-medium-2507' | 'mistralai/devstral-2512:free' | 'mistralai/devstral-2512' | 'mistralai/codestral-2508' | 'mistralai/mistral-7b-instruct:free' | 'mistralai/devstral-small-2505' | 'mistralai/mistral-small-3.2-24b-instruct' | 'mistralai/devstral-small-2505:free' | 'mistralai/mistral-small-3.2-24b-instruct:free' | 'mistralai/mistral-medium-3' | 'mistralai/mistral-small-3.1-24b-instruct' | 'mistralai/devstral-small-2507' | 'mistralai/mistral-medium-3.1' | 'mistralai/mistral-nemo:free' | 'rekaai/reka-flash-3' | 'meta-llama/llama-3.2-11b-vision-instruct' | 'meta-llama/llama-3.3-70b-instruct:free' | 'meta-llama/llama-4-scout:free' | 'anthropic/claude-opus-4' | 'anthropic/claude-haiku-4.5' | 'anthropic/claude-opus-4.1' | 'anthropic/claude-3.7-sonnet' | 'anthropic/claude-3.5-haiku' | 'anthropic/claude-sonnet-4' | 'anthropic/claude-opus-4.5' | 'anthropic/claude-sonnet-4.5' | 'sarvamai/sarvam-m:free';
|
|
2
|
-
type AnthropicModels = 'claude-opus-4-0' | 'claude-3-5-sonnet-20241022' | 'claude-opus-4-1' | 'claude-haiku-4-5' | 'claude-3-5-sonnet-20240620' | 'claude-3-5-haiku-latest' | 'claude-opus-4-5' | 'claude-3-opus-20240229' | 'claude-opus-4-5-20251101' | 'claude-sonnet-4-5' | 'claude-sonnet-4-5-20250929' | 'claude-sonnet-4-20250514' | 'claude-opus-4-20250514' | 'claude-3-5-haiku-20241022' | 'claude-3-haiku-20240307' | 'claude-3-7-sonnet-20250219' | 'claude-3-7-sonnet-latest' | 'claude-sonnet-4-0' | 'claude-opus-4-1-20250805' | 'claude-3-sonnet-20240229' | 'claude-haiku-4-5-20251001';
|
|
3
|
-
type AzureModels = 'gpt-4.1-nano' | 'text-embedding-3-small' | 'grok-4-fast-non-reasoning' | 'deepseek-r1-0528' | 'grok-4-fast-reasoning' | 'phi-3-medium-128k-instruct' | 'gpt-4' | 'claude-opus-4-1' | 'gpt-5.2-chat' | 'llama-3.2-11b-vision-instruct' | 'cohere-embed-v-4-0' | 'cohere-command-r-08-2024' | 'grok-4' | 'cohere-embed-v3-multilingual' | 'phi-4-mini' | 'gpt-4-32k' | 'gpt-5.2-codex' | 'meta-llama-3.1-405b-instruct' | 'deepseek-r1' | 'grok-code-fast-1' | 'gpt-5.1-codex' | 'phi-3-mini-4k-instruct' | 'claude-haiku-4-5' | 'deepseek-v3.2-speciale' | 'mistral-medium-2505' | 'claude-opus-4-5' | 'phi-3-small-128k-instruct' | 'cohere-command-a' | 'cohere-command-r-plus-08-2024' | 'llama-4-maverick-17b-128e-instruct-fp8' | 'gpt-4.1-mini' | 'gpt-5-chat' | 'deepseek-v3.1' | 'phi-4' | 'phi-4-mini-reasoning' | 'claude-sonnet-4-5' | 'gpt-3.5-turbo-0125' | 'grok-3' | 'text-embedding-3-large' | 'meta-llama-3-70b-instruct' | 'deepseek-v3-0324' | 'phi-3-small-8k-instruct' | 'meta-llama-3.1-70b-instruct' | 'gpt-4-turbo' | 'gpt-3.5-turbo-0613' | 'phi-3.5-mini-instruct' | 'o1-preview' | 'llama-3.3-70b-instruct' | 'gpt-5.1-codex-mini' | 'kimi-k2-thinking' | 'model-router' | 'o3-mini' | 'gpt-5.1' | 'gpt-5-nano' | 'gpt-5-codex' | 'llama-3.2-90b-vision-instruct' | 'phi-3-mini-128k-instruct' | 'gpt-4o' | 'gpt-3.5-turbo-0301' | 'ministral-3b' | 'gpt-4.1' | 'o4-mini' | 'phi-4-multimodal' | 'meta-llama-3-8b-instruct' | 'o1' | 'grok-3-mini' | 'gpt-5.1-chat' | 'phi-3.5-moe-instruct' | 'gpt-5-mini' | 'o1-mini' | 'llama-4-scout-17b-16e-instruct' | 'cohere-embed-v3-english' | 'text-embedding-ada-002' | 'meta-llama-3.1-8b-instruct' | 'gpt-5.1-codex-max' | 'gpt-3.5-turbo-instruct' | 'mistral-nemo' | 'o3' | 'codex-mini' | 'phi-3-medium-4k-instruct' | 'phi-4-reasoning' | 'gpt-4-turbo-vision' | 'phi-4-reasoning-plus' | 'gpt-4o-mini' | 'gpt-5' | 'mai-ds-r1' | 'deepseek-v3.2' | 'gpt-5-pro' | 'mistral-large-2411' | 'gpt-5.2' | 'codestral-2501' | 'mistral-small-2503' | 'gpt-3.5-turbo-1106';
|
|
4
|
-
type CloudflareWorkersAiModels = 'mistral-7b-instruct-v0.1-awq' | 'aura-1' | 'mistral-7b-instruct-v0.2' | 'tinyllama-1.1b-chat-v1.0' | 'qwen1.5-0.5b-chat' | 'llama-3.2-11b-vision-instruct' | 'llama-2-13b-chat-awq' | 'llama-3.1-8b-instruct-fp8' | 'whisper' | 'stable-diffusion-xl-base-1.0' | 'llama-2-7b-chat-fp16' | 'resnet-50' | 'stable-diffusion-v1-5-inpainting' | 'sqlcoder-7b-2' | 'llama-3-8b-instruct' | 'llama-2-7b-chat-hf-lora' | 'llama-3.1-8b-instruct' | 'openchat-3.5-0106' | 'openhermes-2.5-mistral-7b-awq' | 'lucid-origin' | 'bart-large-cnn' | 'flux-1-schnell' | 'deepseek-r1-distill-qwen-32b' | 'gemma-2b-it-lora' | 'una-cybertron-7b-v2-bf16' | 'gemma-sea-lion-v4-27b-it' | 'm2m100-1.2b' | 'llama-3.2-3b-instruct' | 'qwen2.5-coder-32b-instruct' | 'stable-diffusion-v1-5-img2img' | 'gemma-7b-it-lora' | 'qwen1.5-14b-chat-awq' | 'qwen1.5-1.8b-chat' | 'mistral-small-3.1-24b-instruct' | 'gemma-7b-it' | 'qwen3-30b-a3b-fp8' | 'llamaguard-7b-awq' | 'hermes-2-pro-mistral-7b' | 'granite-4.0-h-micro' | 'falcon-7b-instruct' | 'llama-3.3-70b-instruct-fp8-fast' | 'llama-3-8b-instruct-awq' | 'phoenix-1.0' | 'phi-2' | 'dreamshaper-8-lcm' | 'discolm-german-7b-v1-awq' | 'llama-2-7b-chat-int8' | 'llama-3.2-1b-instruct' | 'whisper-large-v3-turbo' | 'llama-4-scout-17b-16e-instruct' | 'starling-lm-7b-beta' | 'deepseek-coder-6.7b-base-awq' | 'gemma-3-12b-it' | 'llama-guard-3-8b' | 'neural-chat-7b-v3-1-awq' | 'whisper-tiny-en' | 'stable-diffusion-xl-lightning' | 'mistral-7b-instruct-v0.1' | 'llava-1.5-7b-hf' | 'gpt-oss-20b' | 'deepseek-math-7b-instruct' | 'gpt-oss-120b' | 'melotts' | 'qwen1.5-7b-chat-awq' | 'llama-3.1-8b-instruct-fast' | 'nova-3' | 'llama-3.1-70b-instruct' | 'qwq-32b' | 'zephyr-7b-beta-awq' | 'deepseek-coder-6.7b-instruct-awq' | 'llama-3.1-8b-instruct-awq' | 'mistral-7b-instruct-v0.2-lora' | 'uform-gen2-qwen-500m';
|
|
5
|
-
type TogetheraiModels = 'moonshotai/Kimi-K2-Instruct' | 'moonshotai/Kimi-K2-Thinking' | 'essentialai/Rnj-1-Instruct' | 'openai/gpt-oss-120b' | 'meta-llama/Llama-3.3-70B-Instruct-Turbo' | 'Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8' | 'zai-org/GLM-4.6' | 'deepseek-ai/DeepSeek-R1' | 'deepseek-ai/DeepSeek-V3' | 'deepseek-ai/DeepSeek-V3-1';
|
|
6
|
-
|
|
7
|
-
export type { AnthropicModels as A, CloudflareWorkersAiModels as C, OpenrouterModels as O, TogetheraiModels as T, AzureModels as a };
|