llm-strings 1.4.0 → 1.5.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.
@@ -1,5 +1,5 @@
1
- import { P as Provider } from './provider-core-B934MuhJ.cjs';
2
- export { A as ALIASES, B as BedrockModelFamily, C as CACHE_TTLS, c as CACHE_VALUES, D as DURATION_RE, H as HOST_ALIASES, a as HostAlias, b as HostResolution, d as PARAM_SPECS, e as PROVIDER_PARAMS, f as ParamSpec, R as REASONING_MODEL_UNSUPPORTED, g as bedrockSupportsCaching, h as canHostOpenAIModels, i as detectBedrockModelFamily, j as detectGatewaySubProvider, k as detectProvider, l as isGatewayProvider, m as isReasoningModel, p as providerFromHostAlias, r as resolveHostAlias } from './provider-core-B934MuhJ.cjs';
1
+ import { P as Provider } from './provider-core-CjpJ4qyF.cjs';
2
+ export { A as ALIASES, B as BedrockModelFamily, C as CACHE_TTLS, c as CACHE_VALUES, H as HOST_ALIASES, a as HostAlias, b as HostResolution, d as PARAM_SPECS, e as PROVIDER_DEFINITIONS, f as PROVIDER_PARAMS, g as ParamSpec, h as ProviderDefinition, R as REASONING_MODEL_PREFIXES, i as REASONING_MODEL_UNSUPPORTED, j as bedrockSupportsCaching, k as canHostOpenAIModels, l as detectBedrockModelFamily, m as detectGatewaySubProvider, n as detectProvider, o as isGatewayProvider, p as isReasoningModel, q as modelMatchesFamily, s as providerFromHostAlias, r as resolveHostAlias } from './provider-core-CjpJ4qyF.cjs';
3
3
 
4
4
  interface ProviderMeta {
5
5
  /** Provider identifier — matches the Provider union type. */
@@ -1,5 +1,5 @@
1
- import { P as Provider } from './provider-core-B934MuhJ.js';
2
- export { A as ALIASES, B as BedrockModelFamily, C as CACHE_TTLS, c as CACHE_VALUES, D as DURATION_RE, H as HOST_ALIASES, a as HostAlias, b as HostResolution, d as PARAM_SPECS, e as PROVIDER_PARAMS, f as ParamSpec, R as REASONING_MODEL_UNSUPPORTED, g as bedrockSupportsCaching, h as canHostOpenAIModels, i as detectBedrockModelFamily, j as detectGatewaySubProvider, k as detectProvider, l as isGatewayProvider, m as isReasoningModel, p as providerFromHostAlias, r as resolveHostAlias } from './provider-core-B934MuhJ.js';
1
+ import { P as Provider } from './provider-core-CjpJ4qyF.js';
2
+ export { A as ALIASES, B as BedrockModelFamily, C as CACHE_TTLS, c as CACHE_VALUES, H as HOST_ALIASES, a as HostAlias, b as HostResolution, d as PARAM_SPECS, e as PROVIDER_DEFINITIONS, f as PROVIDER_PARAMS, g as ParamSpec, h as ProviderDefinition, R as REASONING_MODEL_PREFIXES, i as REASONING_MODEL_UNSUPPORTED, j as bedrockSupportsCaching, k as canHostOpenAIModels, l as detectBedrockModelFamily, m as detectGatewaySubProvider, n as detectProvider, o as isGatewayProvider, p as isReasoningModel, q as modelMatchesFamily, s as providerFromHostAlias, r as resolveHostAlias } from './provider-core-CjpJ4qyF.js';
3
3
 
4
4
  interface ProviderMeta {
5
5
  /** Provider identifier — matches the Provider union type. */
package/dist/providers.js CHANGED
@@ -1,218 +1 @@
1
- import {
2
- ALIASES,
3
- CACHE_TTLS,
4
- CACHE_VALUES,
5
- DURATION_RE,
6
- HOST_ALIASES,
7
- PARAM_SPECS,
8
- PROVIDER_PARAMS,
9
- REASONING_MODEL_UNSUPPORTED,
10
- bedrockSupportsCaching,
11
- canHostOpenAIModels,
12
- detectBedrockModelFamily,
13
- detectGatewaySubProvider,
14
- detectProvider,
15
- isGatewayProvider,
16
- isReasoningModel,
17
- providerFromHostAlias,
18
- resolveHostAlias
19
- } from "./chunk-76EFNZCF.js";
20
-
21
- // src/provider-meta.ts
22
- var PROVIDER_META = [
23
- { id: "openai", name: "OpenAI", host: "api.openai.com", color: "#10a37f" },
24
- {
25
- id: "azure",
26
- name: "Azure OpenAI",
27
- host: "models.inference.ai.azure.com",
28
- color: "#0078d4"
29
- },
30
- {
31
- id: "anthropic",
32
- name: "Anthropic",
33
- host: "api.anthropic.com",
34
- color: "#e8956a"
35
- },
36
- {
37
- id: "google",
38
- name: "Google",
39
- host: "generativelanguage.googleapis.com",
40
- color: "#4285f4"
41
- },
42
- {
43
- id: "google-vertex",
44
- name: "Google Vertex AI",
45
- host: "aiplatform.googleapis.com",
46
- color: "#34a853"
47
- },
48
- { id: "mistral", name: "Mistral", host: "api.mistral.ai", color: "#ff7000" },
49
- { id: "cohere", name: "Cohere", host: "api.cohere.com", color: "#39594d" },
50
- {
51
- id: "bedrock",
52
- name: "Bedrock",
53
- host: "bedrock-runtime.us-east-1.amazonaws.com",
54
- color: "#ff9900"
55
- },
56
- {
57
- id: "openrouter",
58
- name: "OpenRouter",
59
- host: "openrouter.ai",
60
- color: "#818cf8"
61
- },
62
- {
63
- id: "vercel",
64
- name: "Vercel",
65
- host: "gateway.ai.vercel.app",
66
- color: "#ededed"
67
- },
68
- { id: "xai", name: "xAI", host: "api.x.ai", color: "#111111" },
69
- { id: "groq", name: "Groq", host: "api.groq.com", color: "#f55036" },
70
- { id: "fal", name: "Fal", host: "fal.run", color: "#111111" },
71
- {
72
- id: "deepinfra",
73
- name: "DeepInfra",
74
- host: "api.deepinfra.com",
75
- color: "#2563eb"
76
- },
77
- {
78
- id: "black-forest-labs",
79
- name: "Black Forest Labs",
80
- host: "api.bfl.ai",
81
- color: "#111111"
82
- },
83
- {
84
- id: "together",
85
- name: "Together.ai",
86
- host: "api.together.xyz",
87
- color: "#ff4f00"
88
- },
89
- {
90
- id: "fireworks",
91
- name: "Fireworks",
92
- host: "api.fireworks.ai",
93
- color: "#7c3aed"
94
- },
95
- {
96
- id: "deepseek",
97
- name: "DeepSeek",
98
- host: "api.deepseek.com",
99
- color: "#4d6bfe"
100
- },
101
- {
102
- id: "moonshotai",
103
- name: "Moonshot AI",
104
- host: "api.moonshot.ai",
105
- color: "#6b46ff"
106
- },
107
- {
108
- id: "perplexity",
109
- name: "Perplexity",
110
- host: "api.perplexity.ai",
111
- color: "#20b8cd"
112
- },
113
- {
114
- id: "alibaba",
115
- name: "Alibaba",
116
- host: "dashscope-intl.aliyuncs.com",
117
- color: "#ff6a00"
118
- },
119
- {
120
- id: "cerebras",
121
- name: "Cerebras",
122
- host: "api.cerebras.ai",
123
- color: "#d71920"
124
- },
125
- {
126
- id: "replicate",
127
- name: "Replicate",
128
- host: "api.replicate.com",
129
- color: "#111111"
130
- },
131
- { id: "prodia", name: "Prodia", host: "api.prodia.com", color: "#6d28d9" },
132
- { id: "luma", name: "Luma", host: "api.lumalabs.ai", color: "#111111" },
133
- {
134
- id: "bytedance",
135
- name: "ByteDance",
136
- host: "ark.cn-beijing.volces.com",
137
- color: "#2563eb"
138
- },
139
- { id: "kling", name: "Kling AI", host: "api.klingai.com", color: "#111111" },
140
- {
141
- id: "elevenlabs",
142
- name: "ElevenLabs",
143
- host: "api.elevenlabs.io",
144
- color: "#111111"
145
- },
146
- {
147
- id: "assemblyai",
148
- name: "AssemblyAI",
149
- host: "api.assemblyai.com",
150
- color: "#4f46e5"
151
- },
152
- {
153
- id: "deepgram",
154
- name: "Deepgram",
155
- host: "api.deepgram.com",
156
- color: "#13ef93"
157
- },
158
- { id: "gladia", name: "Gladia", host: "api.gladia.io", color: "#7c3aed" },
159
- { id: "lmnt", name: "LMNT", host: "api.lmnt.com", color: "#14b8a6" },
160
- { id: "hume", name: "Hume", host: "api.hume.ai", color: "#8b5cf6" },
161
- { id: "revai", name: "Rev.ai", host: "api.rev.ai", color: "#ef4444" },
162
- {
163
- id: "baseten",
164
- name: "Baseten",
165
- host: "api.baseten.co",
166
- color: "#111111"
167
- },
168
- {
169
- id: "huggingface",
170
- name: "Hugging Face",
171
- host: "api-inference.huggingface.co",
172
- color: "#ffcc4d"
173
- }
174
- ];
175
- function toCanonicalParamSpec(spec) {
176
- return {
177
- ...spec,
178
- type: spec.values ? "enum" : spec.type,
179
- default: spec.default ?? (spec.type === "string" && !spec.values ? "" : void 0)
180
- };
181
- }
182
- function deriveCanonicalParamSpecs() {
183
- const specs = {};
184
- for (const provider of Object.keys(PROVIDER_PARAMS)) {
185
- specs[provider] = {};
186
- for (const [canonicalName, providerName] of Object.entries(
187
- PROVIDER_PARAMS[provider]
188
- )) {
189
- const spec = PARAM_SPECS[provider][providerName];
190
- if (spec) {
191
- specs[provider][canonicalName] = toCanonicalParamSpec(spec);
192
- }
193
- }
194
- }
195
- return specs;
196
- }
197
- var CANONICAL_PARAM_SPECS = deriveCanonicalParamSpecs();
198
- export {
199
- ALIASES,
200
- CACHE_TTLS,
201
- CACHE_VALUES,
202
- CANONICAL_PARAM_SPECS,
203
- DURATION_RE,
204
- HOST_ALIASES,
205
- PARAM_SPECS,
206
- PROVIDER_META,
207
- PROVIDER_PARAMS,
208
- REASONING_MODEL_UNSUPPORTED,
209
- bedrockSupportsCaching,
210
- canHostOpenAIModels,
211
- detectBedrockModelFamily,
212
- detectGatewaySubProvider,
213
- detectProvider,
214
- isGatewayProvider,
215
- isReasoningModel,
216
- providerFromHostAlias,
217
- resolveHostAlias
218
- };
1
+ import{ALIASES as e,CACHE_TTLS as o,CACHE_VALUES as a,HOST_ALIASES as i,PARAM_SPECS as r,PROVIDER_DEFINITIONS as c,PROVIDER_PARAMS as n,REASONING_MODEL_PREFIXES as t,REASONING_MODEL_UNSUPPORTED as l,bedrockSupportsCaching as s,canHostOpenAIModels as m,detectBedrockModelFamily as d,detectGatewaySubProvider as p,detectProvider as h,isGatewayProvider as f,isReasoningModel as g,modelMatchesFamily as b,providerFromHostAlias as u,resolveHostAlias as k}from"./chunk-LIYUWJME.js";var v=[{id:"openai",name:"OpenAI",host:"api.openai.com",color:"#10a37f"},{id:"azure",name:"Azure OpenAI",host:"models.inference.ai.azure.com",color:"#0078d4"},{id:"anthropic",name:"Anthropic",host:"api.anthropic.com",color:"#e8956a"},{id:"google",name:"Google",host:"generativelanguage.googleapis.com",color:"#4285f4"},{id:"google-vertex",name:"Google Vertex AI",host:"aiplatform.googleapis.com",color:"#34a853"},{id:"mistral",name:"Mistral",host:"api.mistral.ai",color:"#ff7000"},{id:"cohere",name:"Cohere",host:"api.cohere.com",color:"#39594d"},{id:"bedrock",name:"Bedrock",host:"bedrock-runtime.us-east-1.amazonaws.com",color:"#ff9900"},{id:"openrouter",name:"OpenRouter",host:"openrouter.ai",color:"#818cf8"},{id:"vercel",name:"Vercel",host:"gateway.ai.vercel.app",color:"#ededed"},{id:"xai",name:"xAI",host:"api.x.ai",color:"#111111"},{id:"groq",name:"Groq",host:"api.groq.com",color:"#f55036"},{id:"fal",name:"Fal",host:"fal.run",color:"#111111"},{id:"deepinfra",name:"DeepInfra",host:"api.deepinfra.com",color:"#2563eb"},{id:"black-forest-labs",name:"Black Forest Labs",host:"api.bfl.ai",color:"#111111"},{id:"together",name:"Together.ai",host:"api.together.xyz",color:"#ff4f00"},{id:"fireworks",name:"Fireworks",host:"api.fireworks.ai",color:"#7c3aed"},{id:"deepseek",name:"DeepSeek",host:"api.deepseek.com",color:"#4d6bfe"},{id:"moonshotai",name:"Moonshot AI",host:"api.moonshot.ai",color:"#6b46ff"},{id:"perplexity",name:"Perplexity",host:"api.perplexity.ai",color:"#20b8cd"},{id:"alibaba",name:"Alibaba",host:"dashscope-intl.aliyuncs.com",color:"#ff6a00"},{id:"cerebras",name:"Cerebras",host:"api.cerebras.ai",color:"#d71920"},{id:"replicate",name:"Replicate",host:"api.replicate.com",color:"#111111"},{id:"prodia",name:"Prodia",host:"api.prodia.com",color:"#6d28d9"},{id:"luma",name:"Luma",host:"api.lumalabs.ai",color:"#111111"},{id:"bytedance",name:"ByteDance",host:"ark.cn-beijing.volces.com",color:"#2563eb"},{id:"kling",name:"Kling AI",host:"api.klingai.com",color:"#111111"},{id:"elevenlabs",name:"ElevenLabs",host:"api.elevenlabs.io",color:"#111111"},{id:"assemblyai",name:"AssemblyAI",host:"api.assemblyai.com",color:"#4f46e5"},{id:"deepgram",name:"Deepgram",host:"api.deepgram.com",color:"#13ef93"},{id:"gladia",name:"Gladia",host:"api.gladia.io",color:"#7c3aed"},{id:"lmnt",name:"LMNT",host:"api.lmnt.com",color:"#14b8a6"},{id:"hume",name:"Hume",host:"api.hume.ai",color:"#8b5cf6"},{id:"revai",name:"Rev.ai",host:"api.rev.ai",color:"#ef4444"},{id:"baseten",name:"Baseten",host:"api.baseten.co",color:"#111111"},{id:"huggingface",name:"Hugging Face",host:"api-inference.huggingface.co",color:"#ffcc4d"}];function y(e){return{...e,type:e.values?"enum":e.type,default:e.default??("string"!==e.type||e.values?void 0:"")}}var A=function(){const e={};for(const o of Object.keys(n)){e[o]={};for(const[a,i]of Object.entries(n[o])){const c=r[o][i];c&&(e[o][a]=y(c))}}return e}();export{e as ALIASES,o as CACHE_TTLS,a as CACHE_VALUES,A as CANONICAL_PARAM_SPECS,i as HOST_ALIASES,r as PARAM_SPECS,c as PROVIDER_DEFINITIONS,v as PROVIDER_META,n as PROVIDER_PARAMS,t as REASONING_MODEL_PREFIXES,l as REASONING_MODEL_UNSUPPORTED,s as bedrockSupportsCaching,m as canHostOpenAIModels,d as detectBedrockModelFamily,p as detectGatewaySubProvider,h as detectProvider,f as isGatewayProvider,g as isReasoningModel,b as modelMatchesFamily,u as providerFromHostAlias,k as resolveHostAlias};