@omnicross/contracts 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +15 -0
- package/dist/account-tokens-types.cjs +18 -0
- package/dist/account-tokens-types.d.cts +142 -0
- package/dist/account-tokens-types.d.ts +142 -0
- package/dist/account-tokens-types.js +0 -0
- package/dist/canonical-models.cjs +262 -0
- package/dist/canonical-models.d.cts +107 -0
- package/dist/canonical-models.d.ts +107 -0
- package/dist/canonical-models.js +232 -0
- package/dist/completion-types.cjs +18 -0
- package/dist/completion-types.d.cts +324 -0
- package/dist/completion-types.d.ts +324 -0
- package/dist/completion-types.js +0 -0
- package/dist/endpoint-resolver.cjs +54 -0
- package/dist/endpoint-resolver.d.cts +43 -0
- package/dist/endpoint-resolver.d.ts +43 -0
- package/dist/endpoint-resolver.js +29 -0
- package/dist/extended-context.cjs +39 -0
- package/dist/extended-context.d.cts +21 -0
- package/dist/extended-context.d.ts +21 -0
- package/dist/extended-context.js +13 -0
- package/dist/index.cjs +2724 -0
- package/dist/index.d.cts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +2656 -0
- package/dist/llm-config-CQjOimv2.d.cts +390 -0
- package/dist/llm-config-D1jKQLVp.d.ts +390 -0
- package/dist/llm-config.cjs +18 -0
- package/dist/llm-config.d.cts +2 -0
- package/dist/llm-config.d.ts +2 -0
- package/dist/llm-config.js +0 -0
- package/dist/mcp-types.cjs +33 -0
- package/dist/mcp-types.d.cts +131 -0
- package/dist/mcp-types.d.ts +131 -0
- package/dist/mcp-types.js +8 -0
- package/dist/message-blocks.cjs +18 -0
- package/dist/message-blocks.d.cts +44 -0
- package/dist/message-blocks.d.ts +44 -0
- package/dist/message-blocks.js +0 -0
- package/dist/provider-presets/index.cjs +2183 -0
- package/dist/provider-presets/index.d.cts +104 -0
- package/dist/provider-presets/index.d.ts +104 -0
- package/dist/provider-presets/index.js +2143 -0
- package/dist/subscription-types.cjs +48 -0
- package/dist/subscription-types.d.cts +149 -0
- package/dist/subscription-types.d.ts +149 -0
- package/dist/subscription-types.js +22 -0
- package/dist/thinking-CBWSLel8.d.cts +33 -0
- package/dist/thinking-CBWSLel8.d.ts +33 -0
- package/dist/thinking-config.cjs +243 -0
- package/dist/thinking-config.d.cts +71 -0
- package/dist/thinking-config.d.ts +71 -0
- package/dist/thinking-config.js +205 -0
- package/dist/usage-types.cjs +18 -0
- package/dist/usage-types.d.cts +41 -0
- package/dist/usage-types.d.ts +41 -0
- package/dist/usage-types.js +0 -0
- package/dist/websearch-types.cjs +37 -0
- package/dist/websearch-types.d.cts +76 -0
- package/dist/websearch-types.d.ts +76 -0
- package/dist/websearch-types.js +11 -0
- package/package.json +116 -0
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
import { T as ThinkLevel } from './thinking-CBWSLel8.cjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Provider preset types — hand-authored TypeScript (verbatim from the prior
|
|
5
|
+
* flat `provider-presets.ts`). These are re-exported by the module barrel
|
|
6
|
+
* (`index.ts`, via `schema.ts`) so every `@omnicross/contracts/provider-presets`
|
|
7
|
+
* import site is unchanged. The Zod runtime schema lives in `schema.ts`.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* How a provider implements web search:
|
|
12
|
+
* - 'model-param': Search enabled via a request parameter (e.g., enable_search, web_search)
|
|
13
|
+
* - 'builtin-tool': Search provided as a built-in tool definition in the tools array
|
|
14
|
+
* - 'mcp': Search provided via an MCP server
|
|
15
|
+
* - 'sdk-native': Search handled natively by the SDK (e.g., Anthropic server-side tools)
|
|
16
|
+
* - 'none': Provider does not support search
|
|
17
|
+
*/
|
|
18
|
+
type SearchCapability = 'model-param' | 'builtin-tool' | 'mcp' | 'sdk-native' | 'none';
|
|
19
|
+
/**
|
|
20
|
+
* Provider-specific search configuration
|
|
21
|
+
*/
|
|
22
|
+
interface ProviderSearchConfig {
|
|
23
|
+
type: SearchCapability;
|
|
24
|
+
/** Parameter name to enable search (e.g., 'enable_search', 'web_search') */
|
|
25
|
+
paramName?: string;
|
|
26
|
+
/** Value to set for the parameter (e.g., true, { enable: true }) */
|
|
27
|
+
paramValue?: unknown;
|
|
28
|
+
/** Additional parameters to include when search is enabled */
|
|
29
|
+
extraParams?: Record<string, unknown>;
|
|
30
|
+
/** Tool definition to inject into the tools array */
|
|
31
|
+
toolDefinition?: Record<string, unknown>;
|
|
32
|
+
/** Whether the built-in search tool conflicts with function calling */
|
|
33
|
+
conflictsWithFC?: boolean;
|
|
34
|
+
/** MCP server ID that provides the search tool */
|
|
35
|
+
mcpServerId?: string;
|
|
36
|
+
/** Models this search config applies to (null or undefined = all models) */
|
|
37
|
+
applicableModels?: string[] | null;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Canonical API mode ids. Use these as `ApiMode.id` for built-in plans so the
|
|
41
|
+
* UI can localize labels and so future code can reason about modes by enum.
|
|
42
|
+
*/
|
|
43
|
+
declare const API_MODE_IDS: {
|
|
44
|
+
readonly STANDARD: "standard";
|
|
45
|
+
readonly CODING_PLAN: "coding-plan";
|
|
46
|
+
readonly TOKEN_PLAN: "token-plan";
|
|
47
|
+
};
|
|
48
|
+
type ApiModeId = string;
|
|
49
|
+
/**
|
|
50
|
+
* One API endpoint variant on a provider. Providers with multiple modes
|
|
51
|
+
* (standard / coding-plan / token-plan) declare an array of these; the UI
|
|
52
|
+
* renders a switcher and the runtime uses the selected mode's baseUrl/apiKey.
|
|
53
|
+
*
|
|
54
|
+
* Mode-less providers (OpenAI / Anthropic / Gemini / etc.) simply leave
|
|
55
|
+
* `apiModes` undefined — the existing `api_base_url` field is used as-is.
|
|
56
|
+
*/
|
|
57
|
+
interface ApiMode {
|
|
58
|
+
/** Stable id within the provider — `'standard' | 'coding-plan' | 'token-plan'` for built-in plans */
|
|
59
|
+
id: ApiModeId;
|
|
60
|
+
/** i18n key (e.g. `apiMode.codingPlan`) or display label fallback */
|
|
61
|
+
label: string;
|
|
62
|
+
/** Endpoint base URL for this mode */
|
|
63
|
+
baseUrl: string;
|
|
64
|
+
/** Optional default API key for this mode (e.g. dashscope coding plan key). When set, switching to
|
|
65
|
+
* this mode overwrites the provider's `api_key` UI field if no customization is detected. */
|
|
66
|
+
apiKey?: string;
|
|
67
|
+
/** Optional API key prefix hint shown to user (e.g. `'sk-tp-'` for Tencent Token Plan) */
|
|
68
|
+
apiKeyPrefix?: string;
|
|
69
|
+
/** Optional note (i18n key) — e.g. "仅限编程工具调用" */
|
|
70
|
+
note?: string;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Coding Plan configuration on a provider.
|
|
74
|
+
* @deprecated Prefer `LLMProvider.apiModes` + `selectedApiModeId`. This field
|
|
75
|
+
* is retained for backward-compat read paths; runtime endpoint resolution
|
|
76
|
+
* falls back to it when `apiModes` is undefined.
|
|
77
|
+
*/
|
|
78
|
+
interface CodingPlanConfig {
|
|
79
|
+
/** Whether Coding Plan is enabled */
|
|
80
|
+
enabled: boolean;
|
|
81
|
+
/** Coding Plan dedicated Base URL */
|
|
82
|
+
baseUrl?: string;
|
|
83
|
+
/** Coding Plan dedicated API Key (some providers require separate key) */
|
|
84
|
+
apiKey?: string;
|
|
85
|
+
/** Plan description (Lite/Pro etc.) */
|
|
86
|
+
note?: string;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Model mapping for a provider's model ecosystem.
|
|
90
|
+
* Used by "Follow Provider" feature to auto-select background/vision models.
|
|
91
|
+
*/
|
|
92
|
+
interface ProviderModelMapping {
|
|
93
|
+
/** Primary/flagship model */
|
|
94
|
+
primary: string;
|
|
95
|
+
/** Lightweight model for background tasks */
|
|
96
|
+
background: string;
|
|
97
|
+
/** Vision-capable model (null = provider has no vision model) */
|
|
98
|
+
vision: string | null;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Extended provider template with Coding Plan and preset metadata.
|
|
102
|
+
* Note: there is NO `category` field — the registry is intentionally flat at
|
|
103
|
+
* the public API level. Internal arrays exist only for code organization.
|
|
104
|
+
*/
|
|
105
|
+
interface PresetProviderTemplate extends ProviderTemplate {
|
|
106
|
+
/** Preset ID for matching with CODING_PLAN_URL_PRESETS and PROVIDER_MODEL_MAPPINGS */
|
|
107
|
+
presetId: string;
|
|
108
|
+
/**
|
|
109
|
+
* Optional i18n key for the display name (e.g. `presetName.tencent`). When
|
|
110
|
+
* present, clients prefer this over the seed `name` field for list
|
|
111
|
+
* display (so Chinese-named built-in providers render translated in non-zh
|
|
112
|
+
* locales). English-named presets (OpenAI / Anthropic / etc.) leave this
|
|
113
|
+
* undefined — the raw `name` is already locale-neutral. User-customized
|
|
114
|
+
* names (DB row name diverged from preset seed) always win regardless.
|
|
115
|
+
*/
|
|
116
|
+
nameKey?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Coding Plan Base URL (if provider supports Coding Plan)
|
|
119
|
+
* @deprecated Prefer `apiModes` — when `apiModes` is declared, this field is
|
|
120
|
+
* typically derived from `apiModes.find(m => m.id === 'coding-plan')?.baseUrl`.
|
|
121
|
+
* Retained for backward-compat reads.
|
|
122
|
+
*/
|
|
123
|
+
codingPlanBaseUrl?: string;
|
|
124
|
+
/** Whether Coding Plan requires a separate API Key */
|
|
125
|
+
codingPlanSeparateKey?: boolean;
|
|
126
|
+
/** Feature tags for display */
|
|
127
|
+
features?: string[];
|
|
128
|
+
/** Search capability configuration for this provider */
|
|
129
|
+
searchConfig?: ProviderSearchConfig;
|
|
130
|
+
/**
|
|
131
|
+
* Optional list of API endpoint modes (standard / coding-plan / token-plan).
|
|
132
|
+
* Length ≥ 2 makes the UI render a mode switcher next to the API URL field.
|
|
133
|
+
* The first entry MUST have `id: 'standard'` and represents pay-as-you-go.
|
|
134
|
+
*/
|
|
135
|
+
apiModes?: ApiMode[];
|
|
136
|
+
/**
|
|
137
|
+
* Additive, reserved per-preset revision (design D2). Defaulted to `1` by the
|
|
138
|
+
* loader when absent. Reserved for future overlay / remote-refresh — no
|
|
139
|
+
* current consumer reads it, and it does NOT affect any returned value.
|
|
140
|
+
*/
|
|
141
|
+
revision?: number;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* LLM provider configuration TYPES.
|
|
146
|
+
*
|
|
147
|
+
* A dependency-light, TYPE-ONLY set of the LLM-provider config interfaces the
|
|
148
|
+
* `@omnicross/*` packages — and the `provider-presets` directory in this package —
|
|
149
|
+
* consume (`LLMProvider`, `ModelConfig`, `ApiFormat`, `ProviderTemplate`, etc.).
|
|
150
|
+
* Type interfaces only; no runtime values.
|
|
151
|
+
*/
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* A transformer entry can be either:
|
|
155
|
+
* - A string (transformer name only)
|
|
156
|
+
* - A tuple of [name, options] for parameterized transformers
|
|
157
|
+
*/
|
|
158
|
+
type TransformerEntry = string | [string, Record<string, unknown>];
|
|
159
|
+
/**
|
|
160
|
+
* Transformer configuration for a provider or model
|
|
161
|
+
*/
|
|
162
|
+
interface TransformerConfig {
|
|
163
|
+
/** List of transformers to apply at provider level */
|
|
164
|
+
use?: TransformerEntry[];
|
|
165
|
+
/** Model-specific transformer configurations */
|
|
166
|
+
[modelName: string]: {
|
|
167
|
+
use?: TransformerEntry[];
|
|
168
|
+
} | TransformerEntry[] | undefined;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Default completion settings for a provider or model
|
|
172
|
+
*/
|
|
173
|
+
interface CompletionSettings {
|
|
174
|
+
/** Temperature (0-2, default 0.7) */
|
|
175
|
+
temperature?: number;
|
|
176
|
+
/** Top P / Nucleus sampling (0-1, default 1) */
|
|
177
|
+
topP?: number;
|
|
178
|
+
/** Top K sampling (optional) */
|
|
179
|
+
topK?: number;
|
|
180
|
+
/** Maximum tokens for completion output */
|
|
181
|
+
maxTokens?: number;
|
|
182
|
+
/** Context window size (for display/reference) */
|
|
183
|
+
contextLength?: number;
|
|
184
|
+
/** Presence penalty (-2 to 2) */
|
|
185
|
+
presencePenalty?: number;
|
|
186
|
+
/** Frequency penalty (-2 to 2) */
|
|
187
|
+
frequencyPenalty?: number;
|
|
188
|
+
/** Stop sequences */
|
|
189
|
+
stop?: string[];
|
|
190
|
+
/** Enable streaming by default */
|
|
191
|
+
stream?: boolean;
|
|
192
|
+
/** Enable JSON mode */
|
|
193
|
+
jsonMode?: boolean;
|
|
194
|
+
/** Seed for reproducibility */
|
|
195
|
+
seed?: number;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Model group for organizing models in the UI
|
|
199
|
+
*/
|
|
200
|
+
interface ModelGroup {
|
|
201
|
+
/** Group name */
|
|
202
|
+
name: string;
|
|
203
|
+
/** Group ID */
|
|
204
|
+
id: string;
|
|
205
|
+
/** Models in this group */
|
|
206
|
+
models: ModelConfig[];
|
|
207
|
+
}
|
|
208
|
+
/** OpenRouter provider sorting strategy */
|
|
209
|
+
type OpenRouterProviderSort = 'price' | 'throughput' | 'latency';
|
|
210
|
+
/** OpenRouter data collection policy */
|
|
211
|
+
type OpenRouterDataCollection = 'allow' | 'deny';
|
|
212
|
+
/** OpenRouter quantization levels */
|
|
213
|
+
type OpenRouterQuantization = 'int4' | 'int8' | 'fp4' | 'fp6' | 'fp8' | 'fp16' | 'bf16' | 'fp32' | 'unknown';
|
|
214
|
+
/** OpenRouter maximum pricing configuration */
|
|
215
|
+
interface OpenRouterMaxPrice {
|
|
216
|
+
prompt?: number;
|
|
217
|
+
completion?: number;
|
|
218
|
+
request?: number;
|
|
219
|
+
image?: number;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* OpenRouter provider routing configuration
|
|
223
|
+
* @see https://openrouter.ai/docs/guides/routing/provider-selection
|
|
224
|
+
*/
|
|
225
|
+
interface OpenRouterProviderRouting {
|
|
226
|
+
sort?: OpenRouterProviderSort;
|
|
227
|
+
order?: string[];
|
|
228
|
+
allow_fallbacks?: boolean;
|
|
229
|
+
require_parameters?: boolean;
|
|
230
|
+
data_collection?: OpenRouterDataCollection;
|
|
231
|
+
zdr?: boolean;
|
|
232
|
+
enforce_distillable_text?: boolean;
|
|
233
|
+
only?: string[];
|
|
234
|
+
ignore?: string[];
|
|
235
|
+
quantizations?: OpenRouterQuantization[];
|
|
236
|
+
max_price?: OpenRouterMaxPrice;
|
|
237
|
+
}
|
|
238
|
+
/** @deprecated Use apiFormat instead */
|
|
239
|
+
type ProviderApiType = 'openai' | 'claudecode' | 'anthropic' | 'google' | 'custom';
|
|
240
|
+
/**
|
|
241
|
+
* API format - the API format used by the provider.
|
|
242
|
+
* 'openai' | 'anthropic' | 'google' | 'azure-openai' | 'openai-response'
|
|
243
|
+
*/
|
|
244
|
+
type ApiFormat = 'openai' | 'anthropic' | 'google' | 'azure-openai' | 'openai-response';
|
|
245
|
+
/** @deprecated Use ApiFormat instead */
|
|
246
|
+
type ChatApiFormat = ApiFormat;
|
|
247
|
+
/**
|
|
248
|
+
* Model configuration with extended metadata
|
|
249
|
+
*/
|
|
250
|
+
interface ModelConfig {
|
|
251
|
+
id: string;
|
|
252
|
+
name: string;
|
|
253
|
+
enabled: boolean;
|
|
254
|
+
category?: 'chat' | 'reasoning' | 'image' | 'video' | 'embedding' | 'code';
|
|
255
|
+
group?: string;
|
|
256
|
+
contextLength?: number;
|
|
257
|
+
maxTokens?: number;
|
|
258
|
+
completionSettings?: CompletionSettings;
|
|
259
|
+
vision?: boolean;
|
|
260
|
+
functionCall?: boolean;
|
|
261
|
+
reasoning?: boolean;
|
|
262
|
+
thinkingLevels?: ThinkLevel[];
|
|
263
|
+
thinkingTokenLimit?: {
|
|
264
|
+
min: number;
|
|
265
|
+
max: number;
|
|
266
|
+
};
|
|
267
|
+
webSearch?: boolean;
|
|
268
|
+
openRouterProvider?: OpenRouterProviderRouting;
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* LLM Provider configuration.
|
|
272
|
+
*/
|
|
273
|
+
interface LLMProvider {
|
|
274
|
+
id: string;
|
|
275
|
+
name: string;
|
|
276
|
+
apiFormat?: ApiFormat;
|
|
277
|
+
/** @deprecated Use apiFormat instead */
|
|
278
|
+
chatApiFormat?: ChatApiFormat;
|
|
279
|
+
/** @deprecated Use apiFormat instead */
|
|
280
|
+
apiType?: ProviderApiType;
|
|
281
|
+
api_base_url: string;
|
|
282
|
+
api_key: string;
|
|
283
|
+
hasKey?: boolean;
|
|
284
|
+
models: string[];
|
|
285
|
+
modelConfigs?: ModelConfig[];
|
|
286
|
+
modelGroups?: ModelGroup[];
|
|
287
|
+
modelsEndpoint?: string;
|
|
288
|
+
enabled: boolean;
|
|
289
|
+
transformer?: TransformerConfig;
|
|
290
|
+
rerouterEnabled?: boolean;
|
|
291
|
+
icon?: string;
|
|
292
|
+
website?: string;
|
|
293
|
+
docsUrl?: string;
|
|
294
|
+
defaultSettings?: CompletionSettings;
|
|
295
|
+
isSystem?: boolean;
|
|
296
|
+
isOfficial?: boolean;
|
|
297
|
+
rateLimit?: number;
|
|
298
|
+
maxConcurrency?: number;
|
|
299
|
+
notes?: string;
|
|
300
|
+
apiVersion?: string;
|
|
301
|
+
createdAt?: string;
|
|
302
|
+
updatedAt?: string;
|
|
303
|
+
/** @deprecated Prefer `apiModes` + `selectedApiModeId`. */
|
|
304
|
+
codingPlan?: CodingPlanConfig;
|
|
305
|
+
presetId?: string;
|
|
306
|
+
sortOrder?: number;
|
|
307
|
+
apiModes?: ApiMode[];
|
|
308
|
+
selectedApiModeId?: string;
|
|
309
|
+
nameKey?: string;
|
|
310
|
+
presetRef?: string;
|
|
311
|
+
overriddenFields?: string[];
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* API key entry in the key pool. Each provider can have multiple keys for
|
|
315
|
+
* load balancing.
|
|
316
|
+
*/
|
|
317
|
+
interface ApiKeyEntry {
|
|
318
|
+
id: string;
|
|
319
|
+
providerId: string;
|
|
320
|
+
label: string;
|
|
321
|
+
apiKey: string;
|
|
322
|
+
hasKey?: boolean;
|
|
323
|
+
keyHint?: string;
|
|
324
|
+
enabled: boolean;
|
|
325
|
+
weight: number;
|
|
326
|
+
sortOrder: number;
|
|
327
|
+
createdAt?: string;
|
|
328
|
+
updatedAt?: string;
|
|
329
|
+
disabledReason?: string | null;
|
|
330
|
+
lastErrorStatus?: number | null;
|
|
331
|
+
lastErrorAt?: number | null;
|
|
332
|
+
}
|
|
333
|
+
/** Model reference in format "provider,model" or just "model" */
|
|
334
|
+
type ModelRef = string;
|
|
335
|
+
/**
|
|
336
|
+
* Agent default models configuration. Used when running Agent mode to specify
|
|
337
|
+
* models for different task types.
|
|
338
|
+
*/
|
|
339
|
+
interface AgentDefaultModels {
|
|
340
|
+
/** Background task model - format: "providerId,modelId" */
|
|
341
|
+
background?: ModelRef;
|
|
342
|
+
/** Image processing model - format: "providerId,modelId" */
|
|
343
|
+
image?: ModelRef;
|
|
344
|
+
}
|
|
345
|
+
/** Individual parameter with enable toggle */
|
|
346
|
+
interface ModelParameter<T> {
|
|
347
|
+
enabled: boolean;
|
|
348
|
+
value: T;
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Global model parameters configuration. Can be overridden by session-specific
|
|
352
|
+
* settings.
|
|
353
|
+
*/
|
|
354
|
+
interface GlobalModelParameters {
|
|
355
|
+
temperature?: ModelParameter<number>;
|
|
356
|
+
topP?: ModelParameter<number>;
|
|
357
|
+
maxTokens?: ModelParameter<number>;
|
|
358
|
+
defaultThinkingBudget?: ThinkLevel;
|
|
359
|
+
toolMaxTurns?: number;
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Pre-defined provider template for quick setup. `provider-presets` extends
|
|
363
|
+
* this into `PresetProviderTemplate`.
|
|
364
|
+
*/
|
|
365
|
+
interface ProviderTemplate {
|
|
366
|
+
id: string;
|
|
367
|
+
name: string;
|
|
368
|
+
apiFormat?: ApiFormat;
|
|
369
|
+
/** @deprecated Use apiFormat instead */
|
|
370
|
+
chatApiFormat?: ChatApiFormat;
|
|
371
|
+
/** @deprecated Use apiFormat instead */
|
|
372
|
+
apiType?: ProviderApiType;
|
|
373
|
+
api_base_url: string;
|
|
374
|
+
models: string[];
|
|
375
|
+
modelConfigs?: ModelConfig[];
|
|
376
|
+
modelGroups?: ModelGroup[];
|
|
377
|
+
modelsEndpoint?: string;
|
|
378
|
+
transformer?: TransformerConfig;
|
|
379
|
+
description?: string;
|
|
380
|
+
icon?: string;
|
|
381
|
+
website?: string;
|
|
382
|
+
docsUrl?: string;
|
|
383
|
+
defaultSettings?: CompletionSettings;
|
|
384
|
+
isSystem?: boolean;
|
|
385
|
+
isOfficial?: boolean;
|
|
386
|
+
apiVersion?: string;
|
|
387
|
+
maxConcurrency?: number;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
export { API_MODE_IDS as A, type ChatApiFormat as C, type GlobalModelParameters as G, type LLMProvider as L, type ModelConfig as M, type OpenRouterDataCollection as O, type PresetProviderTemplate as P, type SearchCapability as S, type TransformerConfig as T, type AgentDefaultModels as a, type ApiFormat as b, type ApiKeyEntry as c, type ApiMode as d, type ApiModeId as e, type CodingPlanConfig as f, type CompletionSettings as g, type ModelGroup as h, type ModelParameter as i, type ModelRef as j, type OpenRouterMaxPrice as k, type OpenRouterProviderRouting as l, type OpenRouterProviderSort as m, type OpenRouterQuantization as n, type ProviderApiType as o, type ProviderModelMapping as p, type ProviderSearchConfig as q, type ProviderTemplate as r, type TransformerEntry as s };
|