@clinebot/llms 0.0.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.
Files changed (219) hide show
  1. package/README.md +198 -0
  2. package/dist/config-browser.d.ts +3 -0
  3. package/dist/config.d.ts +3 -0
  4. package/dist/index.browser.d.ts +4 -0
  5. package/dist/index.browser.js +1 -0
  6. package/dist/index.d.ts +5 -0
  7. package/dist/index.js +7 -0
  8. package/dist/models/generated-access.d.ts +4 -0
  9. package/dist/models/generated-provider-loaders.d.ts +13 -0
  10. package/dist/models/generated.d.ts +14 -0
  11. package/dist/models/index.d.ts +43 -0
  12. package/dist/models/models-dev-catalog.d.ts +32 -0
  13. package/dist/models/providers/aihubmix.d.ts +5 -0
  14. package/dist/models/providers/anthropic.d.ts +53 -0
  15. package/dist/models/providers/asksage.d.ts +5 -0
  16. package/dist/models/providers/baseten.d.ts +5 -0
  17. package/dist/models/providers/bedrock.d.ts +7 -0
  18. package/dist/models/providers/cerebras.d.ts +7 -0
  19. package/dist/models/providers/claude-code.d.ts +4 -0
  20. package/dist/models/providers/cline.d.ts +34 -0
  21. package/dist/models/providers/deepseek.d.ts +8 -0
  22. package/dist/models/providers/dify.d.ts +5 -0
  23. package/dist/models/providers/doubao.d.ts +7 -0
  24. package/dist/models/providers/fireworks.d.ts +8 -0
  25. package/dist/models/providers/gemini.d.ts +9 -0
  26. package/dist/models/providers/groq.d.ts +8 -0
  27. package/dist/models/providers/hicap.d.ts +5 -0
  28. package/dist/models/providers/huawei-cloud-maas.d.ts +5 -0
  29. package/dist/models/providers/huggingface.d.ts +6 -0
  30. package/dist/models/providers/index.d.ts +45 -0
  31. package/dist/models/providers/litellm.d.ts +5 -0
  32. package/dist/models/providers/lmstudio.d.ts +5 -0
  33. package/dist/models/providers/minimax.d.ts +7 -0
  34. package/dist/models/providers/mistral.d.ts +5 -0
  35. package/dist/models/providers/moonshot.d.ts +7 -0
  36. package/dist/models/providers/nebius.d.ts +7 -0
  37. package/dist/models/providers/nous-research.d.ts +7 -0
  38. package/dist/models/providers/oca.d.ts +9 -0
  39. package/dist/models/providers/ollama.d.ts +5 -0
  40. package/dist/models/providers/openai-codex.d.ts +10 -0
  41. package/dist/models/providers/openai.d.ts +9 -0
  42. package/dist/models/providers/opencode.d.ts +10 -0
  43. package/dist/models/providers/openrouter.d.ts +7 -0
  44. package/dist/models/providers/qwen-code.d.ts +7 -0
  45. package/dist/models/providers/qwen.d.ts +7 -0
  46. package/dist/models/providers/requesty.d.ts +6 -0
  47. package/dist/models/providers/sambanova.d.ts +7 -0
  48. package/dist/models/providers/sapaicore.d.ts +7 -0
  49. package/dist/models/providers/together.d.ts +8 -0
  50. package/dist/models/providers/vercel-ai-gateway.d.ts +5 -0
  51. package/dist/models/providers/vertex.d.ts +7 -0
  52. package/dist/models/providers/xai.d.ts +8 -0
  53. package/dist/models/providers/zai.d.ts +7 -0
  54. package/dist/models/query.d.ts +181 -0
  55. package/dist/models/registry.d.ts +123 -0
  56. package/dist/models/schemas/index.d.ts +7 -0
  57. package/dist/models/schemas/model.d.ts +340 -0
  58. package/dist/models/schemas/query.d.ts +191 -0
  59. package/dist/providers/handlers/ai-sdk-community.d.ts +46 -0
  60. package/dist/providers/handlers/ai-sdk-provider-base.d.ts +32 -0
  61. package/dist/providers/handlers/anthropic-base.d.ts +26 -0
  62. package/dist/providers/handlers/asksage.d.ts +12 -0
  63. package/dist/providers/handlers/auth.d.ts +5 -0
  64. package/dist/providers/handlers/base.d.ts +55 -0
  65. package/dist/providers/handlers/bedrock-base.d.ts +23 -0
  66. package/dist/providers/handlers/bedrock-client.d.ts +4 -0
  67. package/dist/providers/handlers/community-sdk.d.ts +97 -0
  68. package/dist/providers/handlers/fetch-base.d.ts +18 -0
  69. package/dist/providers/handlers/gemini-base.d.ts +25 -0
  70. package/dist/providers/handlers/index.d.ts +19 -0
  71. package/dist/providers/handlers/openai-base.d.ts +54 -0
  72. package/dist/providers/handlers/openai-responses.d.ts +64 -0
  73. package/dist/providers/handlers/providers.d.ts +43 -0
  74. package/dist/providers/handlers/r1-base.d.ts +62 -0
  75. package/dist/providers/handlers/registry.d.ts +106 -0
  76. package/dist/providers/handlers/vertex.d.ts +32 -0
  77. package/dist/providers/index.d.ts +100 -0
  78. package/dist/providers/public.browser.d.ts +2 -0
  79. package/dist/providers/public.d.ts +3 -0
  80. package/dist/providers/shared/openai-compatible.d.ts +10 -0
  81. package/dist/providers/transform/ai-sdk-community-format.d.ts +9 -0
  82. package/dist/providers/transform/anthropic-format.d.ts +24 -0
  83. package/dist/providers/transform/content-format.d.ts +3 -0
  84. package/dist/providers/transform/gemini-format.d.ts +19 -0
  85. package/dist/providers/transform/index.d.ts +10 -0
  86. package/dist/providers/transform/openai-format.d.ts +36 -0
  87. package/dist/providers/transform/r1-format.d.ts +26 -0
  88. package/dist/providers/types/config.d.ts +261 -0
  89. package/dist/providers/types/handler.d.ts +71 -0
  90. package/dist/providers/types/index.d.ts +11 -0
  91. package/dist/providers/types/messages.d.ts +139 -0
  92. package/dist/providers/types/model-info.d.ts +32 -0
  93. package/dist/providers/types/provider-ids.d.ts +63 -0
  94. package/dist/providers/types/settings.d.ts +308 -0
  95. package/dist/providers/types/stream.d.ts +106 -0
  96. package/dist/providers/utils/index.d.ts +7 -0
  97. package/dist/providers/utils/retry.d.ts +38 -0
  98. package/dist/providers/utils/stream-processor.d.ts +110 -0
  99. package/dist/providers/utils/tool-processor.d.ts +34 -0
  100. package/dist/sdk.d.ts +18 -0
  101. package/dist/types.d.ts +60 -0
  102. package/package.json +66 -0
  103. package/src/catalog.ts +20 -0
  104. package/src/config-browser.ts +11 -0
  105. package/src/config.ts +49 -0
  106. package/src/index.browser.ts +9 -0
  107. package/src/index.ts +10 -0
  108. package/src/live-providers.test.ts +137 -0
  109. package/src/models/generated-access.ts +41 -0
  110. package/src/models/generated-provider-loaders.ts +166 -0
  111. package/src/models/generated.ts +11997 -0
  112. package/src/models/index.ts +271 -0
  113. package/src/models/models-dev-catalog.test.ts +161 -0
  114. package/src/models/models-dev-catalog.ts +161 -0
  115. package/src/models/providers/aihubmix.ts +19 -0
  116. package/src/models/providers/anthropic.ts +60 -0
  117. package/src/models/providers/asksage.ts +19 -0
  118. package/src/models/providers/baseten.ts +21 -0
  119. package/src/models/providers/bedrock.ts +30 -0
  120. package/src/models/providers/cerebras.ts +24 -0
  121. package/src/models/providers/claude-code.ts +51 -0
  122. package/src/models/providers/cline.ts +25 -0
  123. package/src/models/providers/deepseek.ts +33 -0
  124. package/src/models/providers/dify.ts +17 -0
  125. package/src/models/providers/doubao.ts +33 -0
  126. package/src/models/providers/fireworks.ts +34 -0
  127. package/src/models/providers/gemini.ts +43 -0
  128. package/src/models/providers/groq.ts +33 -0
  129. package/src/models/providers/hicap.ts +18 -0
  130. package/src/models/providers/huawei-cloud-maas.ts +18 -0
  131. package/src/models/providers/huggingface.ts +22 -0
  132. package/src/models/providers/index.ts +162 -0
  133. package/src/models/providers/litellm.ts +19 -0
  134. package/src/models/providers/lmstudio.ts +22 -0
  135. package/src/models/providers/minimax.ts +34 -0
  136. package/src/models/providers/mistral.ts +19 -0
  137. package/src/models/providers/moonshot.ts +34 -0
  138. package/src/models/providers/nebius.ts +24 -0
  139. package/src/models/providers/nous-research.ts +21 -0
  140. package/src/models/providers/oca.ts +30 -0
  141. package/src/models/providers/ollama.ts +18 -0
  142. package/src/models/providers/openai-codex.ts +30 -0
  143. package/src/models/providers/openai.ts +43 -0
  144. package/src/models/providers/opencode.ts +28 -0
  145. package/src/models/providers/openrouter.ts +24 -0
  146. package/src/models/providers/qwen-code.ts +33 -0
  147. package/src/models/providers/qwen.ts +34 -0
  148. package/src/models/providers/requesty.ts +23 -0
  149. package/src/models/providers/sambanova.ts +23 -0
  150. package/src/models/providers/sapaicore.ts +34 -0
  151. package/src/models/providers/together.ts +35 -0
  152. package/src/models/providers/vercel-ai-gateway.ts +23 -0
  153. package/src/models/providers/vertex.ts +36 -0
  154. package/src/models/providers/xai.ts +34 -0
  155. package/src/models/providers/zai.ts +25 -0
  156. package/src/models/query.ts +407 -0
  157. package/src/models/registry.ts +511 -0
  158. package/src/models/schemas/index.ts +62 -0
  159. package/src/models/schemas/model.ts +308 -0
  160. package/src/models/schemas/query.ts +336 -0
  161. package/src/providers/browser.ts +4 -0
  162. package/src/providers/handlers/ai-sdk-community.ts +226 -0
  163. package/src/providers/handlers/ai-sdk-provider-base.ts +193 -0
  164. package/src/providers/handlers/anthropic-base.ts +372 -0
  165. package/src/providers/handlers/asksage.test.ts +103 -0
  166. package/src/providers/handlers/asksage.ts +138 -0
  167. package/src/providers/handlers/auth.test.ts +19 -0
  168. package/src/providers/handlers/auth.ts +121 -0
  169. package/src/providers/handlers/base.test.ts +46 -0
  170. package/src/providers/handlers/base.ts +160 -0
  171. package/src/providers/handlers/bedrock-base.ts +390 -0
  172. package/src/providers/handlers/bedrock-client.ts +100 -0
  173. package/src/providers/handlers/codex.test.ts +123 -0
  174. package/src/providers/handlers/community-sdk.test.ts +288 -0
  175. package/src/providers/handlers/community-sdk.ts +392 -0
  176. package/src/providers/handlers/fetch-base.ts +68 -0
  177. package/src/providers/handlers/gemini-base.ts +302 -0
  178. package/src/providers/handlers/index.ts +67 -0
  179. package/src/providers/handlers/openai-base.ts +277 -0
  180. package/src/providers/handlers/openai-responses.ts +598 -0
  181. package/src/providers/handlers/providers.test.ts +120 -0
  182. package/src/providers/handlers/providers.ts +563 -0
  183. package/src/providers/handlers/r1-base.ts +280 -0
  184. package/src/providers/handlers/registry.ts +185 -0
  185. package/src/providers/handlers/vertex.test.ts +124 -0
  186. package/src/providers/handlers/vertex.ts +292 -0
  187. package/src/providers/index.ts +534 -0
  188. package/src/providers/public.browser.ts +20 -0
  189. package/src/providers/public.ts +51 -0
  190. package/src/providers/shared/openai-compatible.ts +63 -0
  191. package/src/providers/transform/ai-sdk-community-format.test.ts +73 -0
  192. package/src/providers/transform/ai-sdk-community-format.ts +115 -0
  193. package/src/providers/transform/anthropic-format.ts +218 -0
  194. package/src/providers/transform/content-format.ts +34 -0
  195. package/src/providers/transform/format-conversion.test.ts +310 -0
  196. package/src/providers/transform/gemini-format.ts +167 -0
  197. package/src/providers/transform/index.ts +22 -0
  198. package/src/providers/transform/openai-format.ts +247 -0
  199. package/src/providers/transform/r1-format.ts +287 -0
  200. package/src/providers/types/config.ts +388 -0
  201. package/src/providers/types/handler.ts +87 -0
  202. package/src/providers/types/index.ts +120 -0
  203. package/src/providers/types/messages.ts +158 -0
  204. package/src/providers/types/model-info.test.ts +57 -0
  205. package/src/providers/types/model-info.ts +65 -0
  206. package/src/providers/types/provider-ids.test.ts +12 -0
  207. package/src/providers/types/provider-ids.ts +89 -0
  208. package/src/providers/types/settings.test.ts +49 -0
  209. package/src/providers/types/settings.ts +533 -0
  210. package/src/providers/types/stream.ts +117 -0
  211. package/src/providers/utils/index.ts +27 -0
  212. package/src/providers/utils/retry.test.ts +140 -0
  213. package/src/providers/utils/retry.ts +188 -0
  214. package/src/providers/utils/stream-processor.test.ts +232 -0
  215. package/src/providers/utils/stream-processor.ts +472 -0
  216. package/src/providers/utils/tool-processor.test.ts +34 -0
  217. package/src/providers/utils/tool-processor.ts +111 -0
  218. package/src/sdk.ts +264 -0
  219. package/src/types.ts +79 -0
@@ -0,0 +1,4 @@
1
+ import type { ModelInfo } from "./schemas/index";
2
+ export declare function getGeneratedProviderModels(): Record<string, Record<string, ModelInfo>>;
3
+ export declare function getGeneratedModelsVersion(): number;
4
+ export declare function getGeneratedModelsForProvider(providerId: string): Record<string, ModelInfo>;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Auto-generated provider loader registry.
3
+ *
4
+ * WARNING: DO NOT EDIT THIS FILE MANUALLY.
5
+ *
6
+ * Generated by: @clinebot/llms/scripts/generate-provider-loaders.ts
7
+ */
8
+ import type { ModelCollection } from "./schemas/index";
9
+ export type GeneratedProviderLoaderEntry = readonly [
10
+ providerId: string,
11
+ load: () => Promise<ModelCollection>
12
+ ];
13
+ export declare const GENERATED_PROVIDER_LOADER_ENTRIES: GeneratedProviderLoaderEntry[];
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Auto-generated model catalog.
3
+ *
4
+ * WARNING: DO NOT EDIT THIS FILE MANUALLY.
5
+ *
6
+ * Generated by: @clinebot/llms/scripts/generate-models.ts
7
+ * Inputs:
8
+ * - ./scripts/generate-models-dev.ts
9
+ */
10
+ import type { ModelInfo } from "./schemas/index.js";
11
+ export declare const GENERATED_PROVIDER_MODELS: {
12
+ version: number;
13
+ providers: Record<string, Record<string, ModelInfo>>;
14
+ };
@@ -0,0 +1,43 @@
1
+ /**
2
+ * @clinebot/models
3
+ *
4
+ * Model definitions and registry for all supported AI providers.
5
+ *
6
+ * This package provides:
7
+ * - Type-safe model definitions using Zod schemas
8
+ * - A central registry for accessing models across providers
9
+ * - Powerful query API for filtering models by capabilities, pricing, etc.
10
+ * - Support for custom models and runtime registration
11
+ *
12
+ * @example
13
+ * ```typescript
14
+ * import {
15
+ * queryModels,
16
+ * createQuery,
17
+ * getModel,
18
+ * ANTHROPIC_MODELS,
19
+ * } from "@clinebot/models"
20
+ *
21
+ * // Get all models with vision support
22
+ * const visionModels = queryModels({
23
+ * capabilities: ["images"],
24
+ * })
25
+ *
26
+ * // Use fluent query builder
27
+ * const cheapModels = createQuery()
28
+ * .fromProviders(["anthropic", "openai"])
29
+ * .maxPrice({ input: 5 })
30
+ * .withCapabilities(["reasoning"])
31
+ * .execute()
32
+ *
33
+ * // Access specific model info
34
+ * const claude = getModel("anthropic", "claude-sonnet-4-20250514")
35
+ * ```
36
+ *
37
+ * @packageDocumentation
38
+ */
39
+ export { ApiFormat, ApiFormatSchema, type ApiFormatType, getPricing, hasCapability, isActive, isDeprecated, type ModelCapability, ModelCapabilitySchema, type ModelCollection, ModelCollectionSchema, type ModelEntry, ModelEntrySchema, type ModelInfo, ModelInfoSchema, type ModelMatch, type ModelPricing, ModelPricingSchema, type ModelQueryConfig, ModelQueryConfigSchema, type ModelQueryResult, ModelQueryResultSchema, type ModelStatus, ModelStatusSchema, matchesQuery, type ProviderCapability, ProviderCapabilitySchema, type ProviderInfo, ProviderInfoSchema, safeValidateModelInfo, safeValidateQueryConfig, sortModels, type ThinkingConfig, ThinkingConfigSchema, validateModelInfo, validateQueryConfig, } from "./schemas/index";
40
+ export { clearCustomModels, deprecateModel, getAllModels, getAllProviders, getDefaultModel, getModel, getModelCount, getModelsForProvider, getProvider, getProviderCollection, getProviderIds, hasProvider, registerModel, registerModels, registerProvider, resetRegistry, unregisterModel, unregisterProvider, updateModel, } from "./registry";
41
+ export { createQuery, getActiveModels, getCachingModels, getComputerUseModels, getDeprecatedModels, getModelStatistics, getModelsByProvider, getModelsInPriceRange, getModelsWithContextWindow, getReasoningModels, getToolModels, getVisionModels, ModelQueryBuilder, queryModels, searchModels, } from "./query";
42
+ export { getGeneratedModelsForProvider, getGeneratedModelsVersion, getGeneratedProviderModels, } from "./generated-access";
43
+ export { AIHUBMIX_PROVIDER, ANTHROPIC_DEFAULT_MODEL, ANTHROPIC_MODELS, ANTHROPIC_PROVIDER, ASKSAGE_PROVIDER, BASETEN_PROVIDER, BEDROCK_DEFAULT_MODEL, BEDROCK_MODELS, BEDROCK_PROVIDER, CEREBRAS_DEFAULT_MODEL, CEREBRAS_MODELS, CEREBRAS_PROVIDER, CLAUDE_CODE_DEFAULT_MODEL, CLAUDE_CODE_MODELS, CLAUDE_CODE_PROVIDER, CLINE_DEFAULT_MODEL, CLINE_MODELS, CLINE_PROVIDER, DEEPSEEK_DEFAULT_MODEL, DEEPSEEK_MODELS, DEEPSEEK_PROVIDER, DEFAULT_EXTERNAL_OCA_BASE_URL, DEFAULT_INTERNAL_OCA_BASE_URL, DIFY_PROVIDER, FIREWORKS_DEFAULT_MODEL, FIREWORKS_MODELS, FIREWORKS_PROVIDER, GEMINI_DEFAULT_MODEL, GEMINI_MODELS, GEMINI_PROVIDER, GROQ_DEFAULT_MODEL, GROQ_MODELS, GROQ_PROVIDER, getActiveAnthropicModels, getActiveGeminiModels, getActiveOpenAIModels, getActiveXAIModels, getAnthropicReasoningModels, getDeepSeekReasoningModels, getFireworksFunctionModels, getGeminiThinkingModels, getGroqVisionModels, getOpenAIReasoningModels, getTogetherLlamaModels, HICAP_PROVIDER, HUAWEI_CLOUD_MAAS_PROVIDER, HUGGINGFACE_PROVIDER, LITELLM_PROVIDER, LMSTUDIO_PROVIDER, MINIMAX_DEFAULT_MODEL, MINIMAX_MODELS, MINIMAX_PROVIDER, MISTRAL_PROVIDER, MOONSHOT_DEFAULT_MODEL, MOONSHOT_MODELS, MOONSHOT_PROVIDER, NEBIUS_DEFAULT_MODEL, NEBIUS_MODELS, NEBIUS_PROVIDER, NOUS_RESEARCH_DEFAULT_MODEL, NOUS_RESEARCH_MODELS, NOUS_RESEARCH_PROVIDER, OCA_DEFAULT_MODEL, OCA_MODELS, OCA_PROVIDER, OLLAMA_PROVIDER, OPENAI_CODEX_DEFAULT_MODEL, OPENAI_CODEX_PROVIDER, OPENAI_DEFAULT_MODEL, OPENAI_MODELS, OPENAI_PROVIDER, OPENROUTER_DEFAULT_MODEL, OPENROUTER_MODELS, OPENROUTER_PROVIDER, REQUESTY_PROVIDER, SAMBANOVA_DEFAULT_MODEL, SAMBANOVA_MODELS, SAMBANOVA_PROVIDER, TOGETHER_DEFAULT_MODEL, TOGETHER_MODELS, TOGETHER_PROVIDER, VERCEL_AI_GATEWAY_PROVIDER, VERTEX_DEFAULT_MODEL, VERTEX_MODELS, VERTEX_PROVIDER, XAI_DEFAULT_MODEL, XAI_MODELS, XAI_PROVIDER, } from "./providers/index";
@@ -0,0 +1,32 @@
1
+ import type { ModelInfo } from "./schemas/index";
2
+ export interface ModelsDevModel {
3
+ name?: string;
4
+ tool_call?: boolean;
5
+ reasoning?: boolean;
6
+ structured_output?: boolean;
7
+ temperature?: boolean;
8
+ release_date?: string;
9
+ limit?: {
10
+ context?: number;
11
+ output?: number;
12
+ };
13
+ cost?: {
14
+ input?: number;
15
+ output?: number;
16
+ cache_read?: number;
17
+ cache_write?: number;
18
+ };
19
+ modalities?: {
20
+ input?: string[];
21
+ };
22
+ status?: string;
23
+ }
24
+ interface ModelsDevProviderPayload {
25
+ models?: Record<string, ModelsDevModel>;
26
+ }
27
+ export type ModelsDevPayload = Record<string, ModelsDevProviderPayload>;
28
+ export type ModelsDevProviderKeyMap = Record<string, string>;
29
+ export declare function sortModelsByReleaseDate(models: Record<string, ModelInfo>): Record<string, ModelInfo>;
30
+ export declare function normalizeModelsDevProviderModels(payload: ModelsDevPayload, providerKeyMap: ModelsDevProviderKeyMap): Record<string, Record<string, ModelInfo>>;
31
+ export declare function fetchModelsDevProviderModels(url: string, providerKeyMap: ModelsDevProviderKeyMap, fetcher?: typeof fetch): Promise<Record<string, Record<string, ModelInfo>>>;
32
+ export {};
@@ -0,0 +1,5 @@
1
+ /**
2
+ * AIhubmix Provider
3
+ */
4
+ import type { ModelCollection } from "../schemas/index";
5
+ export declare const AIHUBMIX_PROVIDER: ModelCollection;
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Anthropic Models
3
+ *
4
+ * Model definitions for Anthropic's Claude family of models.
5
+ * https://docs.anthropic.com/en/docs/about-claude/models
6
+ */
7
+ import type { ModelCollection, ModelInfo } from "../schemas/index";
8
+ /**
9
+ * Anthropic model definitions
10
+ */
11
+ export declare const ANTHROPIC_MODELS: Record<string, {
12
+ id: string;
13
+ name?: string | undefined;
14
+ description?: string | undefined;
15
+ maxTokens?: number | undefined;
16
+ contextWindow?: number | undefined;
17
+ capabilities?: ("images" | "tools" | "streaming" | "prompt-cache" | "reasoning" | "reasoning-effort" | "computer-use" | "global-endpoint" | "structured_output" | "temperature" | "files")[] | undefined;
18
+ apiFormat?: "default" | "openai-responses" | "r1" | undefined;
19
+ systemRole?: "system" | "developer" | undefined;
20
+ temperature?: number | undefined;
21
+ pricing?: {
22
+ input?: number | undefined;
23
+ output?: number | undefined;
24
+ cacheWrite?: number | undefined;
25
+ cacheRead?: number | undefined;
26
+ } | undefined;
27
+ thinkingConfig?: {
28
+ maxBudget?: number | undefined;
29
+ outputPrice?: number | undefined;
30
+ thinkingLevel?: "low" | "high" | undefined;
31
+ } | undefined;
32
+ status?: "active" | "preview" | "deprecated" | "legacy" | undefined;
33
+ deprecationNotice?: string | undefined;
34
+ replacedBy?: string | undefined;
35
+ releaseDate?: string | undefined;
36
+ deprecationDate?: string | undefined;
37
+ }>;
38
+ /**
39
+ * Default Anthropic model ID
40
+ */
41
+ export declare const ANTHROPIC_DEFAULT_MODEL: string;
42
+ /**
43
+ * Anthropic provider information
44
+ */
45
+ export declare const ANTHROPIC_PROVIDER: ModelCollection;
46
+ /**
47
+ * Get all active Anthropic models
48
+ */
49
+ export declare function getActiveAnthropicModels(): Record<string, ModelInfo>;
50
+ /**
51
+ * Get Anthropic models with reasoning/thinking support
52
+ */
53
+ export declare function getAnthropicReasoningModels(): Record<string, ModelInfo>;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * AskSage Provider
3
+ */
4
+ import type { ModelCollection } from "../schemas/index";
5
+ export declare const ASKSAGE_PROVIDER: ModelCollection;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Baseten Provider
3
+ */
4
+ import type { ModelCollection } from "../schemas/index";
5
+ export declare const BASETEN_PROVIDER: ModelCollection;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * AWS Bedrock Models
3
+ */
4
+ import type { ModelCollection, ModelInfo } from "../schemas/index";
5
+ export declare const BEDROCK_MODELS: Record<string, ModelInfo>;
6
+ export declare const BEDROCK_DEFAULT_MODEL: string;
7
+ export declare const BEDROCK_PROVIDER: ModelCollection;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Cerebras Provider
3
+ */
4
+ import type { ModelCollection, ModelInfo } from "../schemas/index";
5
+ export declare const CEREBRAS_MODELS: Record<string, ModelInfo>;
6
+ export declare const CEREBRAS_DEFAULT_MODEL: string;
7
+ export declare const CEREBRAS_PROVIDER: ModelCollection;
@@ -0,0 +1,4 @@
1
+ import type { ModelCollection, ModelInfo } from "../schemas/index";
2
+ export declare const CLAUDE_CODE_MODELS: Record<string, ModelInfo>;
3
+ export declare const CLAUDE_CODE_DEFAULT_MODEL = "sonnet";
4
+ export declare const CLAUDE_CODE_PROVIDER: ModelCollection;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Cline Provider
3
+ */
4
+ import type { ModelCollection, ModelInfo } from "../schemas/index";
5
+ export declare const CLINE_DEFAULT_MODEL = "anthropic/claude-sonnet-4.6";
6
+ export declare const CLINE_MODELS: Record<string, ModelInfo>;
7
+ export declare const CLINE_DEFAULT_MODELINFO: {
8
+ id: string;
9
+ name?: string | undefined;
10
+ description?: string | undefined;
11
+ maxTokens?: number | undefined;
12
+ contextWindow?: number | undefined;
13
+ capabilities?: ("images" | "tools" | "streaming" | "prompt-cache" | "reasoning" | "reasoning-effort" | "computer-use" | "global-endpoint" | "structured_output" | "temperature" | "files")[] | undefined;
14
+ apiFormat?: "default" | "openai-responses" | "r1" | undefined;
15
+ systemRole?: "system" | "developer" | undefined;
16
+ temperature?: number | undefined;
17
+ pricing?: {
18
+ input?: number | undefined;
19
+ output?: number | undefined;
20
+ cacheWrite?: number | undefined;
21
+ cacheRead?: number | undefined;
22
+ } | undefined;
23
+ thinkingConfig?: {
24
+ maxBudget?: number | undefined;
25
+ outputPrice?: number | undefined;
26
+ thinkingLevel?: "low" | "high" | undefined;
27
+ } | undefined;
28
+ status?: "active" | "preview" | "deprecated" | "legacy" | undefined;
29
+ deprecationNotice?: string | undefined;
30
+ replacedBy?: string | undefined;
31
+ releaseDate?: string | undefined;
32
+ deprecationDate?: string | undefined;
33
+ };
34
+ export declare const CLINE_PROVIDER: ModelCollection;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * DeepSeek Models
3
+ */
4
+ import type { ModelCollection, ModelInfo } from "../schemas/index";
5
+ export declare const DEEPSEEK_MODELS: Record<string, ModelInfo>;
6
+ export declare const DEEPSEEK_DEFAULT_MODEL: string;
7
+ export declare const DEEPSEEK_PROVIDER: ModelCollection;
8
+ export declare function getDeepSeekReasoningModels(): Record<string, ModelInfo>;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Dify Provider
3
+ */
4
+ import type { ModelCollection } from "../schemas/index";
5
+ export declare const DIFY_PROVIDER: ModelCollection;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Doubao Provider
3
+ */
4
+ import type { ModelCollection, ModelInfo } from "../schemas/index";
5
+ export declare const DOUBAO_MODELS: Record<string, ModelInfo>;
6
+ export declare const DOUBAO_DEFAULT_MODEL: string;
7
+ export declare const DOUBAO_PROVIDER: ModelCollection;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Fireworks AI Models
3
+ */
4
+ import type { ModelCollection, ModelInfo } from "../schemas/index";
5
+ export declare const FIREWORKS_MODELS: Record<string, ModelInfo>;
6
+ export declare const FIREWORKS_DEFAULT_MODEL: string;
7
+ export declare const FIREWORKS_PROVIDER: ModelCollection;
8
+ export declare function getFireworksFunctionModels(): Record<string, ModelInfo>;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Google Gemini Models
3
+ */
4
+ import type { ModelCollection, ModelInfo } from "../schemas/index";
5
+ export declare const GEMINI_MODELS: Record<string, ModelInfo>;
6
+ export declare const GEMINI_DEFAULT_MODEL: string;
7
+ export declare const GEMINI_PROVIDER: ModelCollection;
8
+ export declare function getActiveGeminiModels(): Record<string, ModelInfo>;
9
+ export declare function getGeminiThinkingModels(): Record<string, ModelInfo>;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Groq Models
3
+ */
4
+ import type { ModelCollection, ModelInfo } from "../schemas/index";
5
+ export declare const GROQ_MODELS: Record<string, ModelInfo>;
6
+ export declare const GROQ_DEFAULT_MODEL: string;
7
+ export declare const GROQ_PROVIDER: ModelCollection;
8
+ export declare function getGroqVisionModels(): Record<string, ModelInfo>;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * HiCap Provider
3
+ */
4
+ import type { ModelCollection } from "../schemas/index";
5
+ export declare const HICAP_PROVIDER: ModelCollection;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Huawei Cloud MaaS Provider
3
+ */
4
+ import type { ModelCollection } from "../schemas/index";
5
+ export declare const HUAWEI_CLOUD_MAAS_PROVIDER: ModelCollection;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Hugging Face Provider
3
+ */
4
+ import type { ModelCollection, ModelInfo } from "../schemas/index";
5
+ export declare const HUGGINGFACE_MODELS: Record<string, ModelInfo>;
6
+ export declare const HUGGINGFACE_PROVIDER: ModelCollection;
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Provider Exports
3
+ *
4
+ * Re-exports all provider model definitions and collections.
5
+ */
6
+ export { AIHUBMIX_PROVIDER } from "./aihubmix";
7
+ export { ANTHROPIC_DEFAULT_MODEL, ANTHROPIC_MODELS, ANTHROPIC_PROVIDER, getActiveAnthropicModels, getAnthropicReasoningModels, } from "./anthropic";
8
+ export { ASKSAGE_PROVIDER } from "./asksage";
9
+ export { BASETEN_PROVIDER } from "./baseten";
10
+ export { BEDROCK_DEFAULT_MODEL, BEDROCK_MODELS, BEDROCK_PROVIDER, } from "./bedrock";
11
+ export { CEREBRAS_DEFAULT_MODEL, CEREBRAS_MODELS, CEREBRAS_PROVIDER, } from "./cerebras";
12
+ export { CLAUDE_CODE_DEFAULT_MODEL, CLAUDE_CODE_MODELS, CLAUDE_CODE_PROVIDER, } from "./claude-code";
13
+ export { CLINE_DEFAULT_MODEL, CLINE_MODELS, CLINE_PROVIDER } from "./cline";
14
+ export { DEEPSEEK_DEFAULT_MODEL, DEEPSEEK_MODELS, DEEPSEEK_PROVIDER, getDeepSeekReasoningModels, } from "./deepseek";
15
+ export { DIFY_PROVIDER } from "./dify";
16
+ export { DOUBAO_DEFAULT_MODEL, DOUBAO_MODELS, DOUBAO_PROVIDER, } from "./doubao";
17
+ export { FIREWORKS_DEFAULT_MODEL, FIREWORKS_MODELS, FIREWORKS_PROVIDER, getFireworksFunctionModels, } from "./fireworks";
18
+ export { GEMINI_DEFAULT_MODEL, GEMINI_MODELS, GEMINI_PROVIDER, getActiveGeminiModels, getGeminiThinkingModels, } from "./gemini";
19
+ export { GROQ_DEFAULT_MODEL, GROQ_MODELS, GROQ_PROVIDER, getGroqVisionModels, } from "./groq";
20
+ export { HICAP_PROVIDER } from "./hicap";
21
+ export { HUAWEI_CLOUD_MAAS_PROVIDER } from "./huawei-cloud-maas";
22
+ export { HUGGINGFACE_MODELS, HUGGINGFACE_PROVIDER } from "./huggingface";
23
+ export { LITELLM_PROVIDER } from "./litellm";
24
+ export { LMSTUDIO_PROVIDER } from "./lmstudio";
25
+ export { MINIMAX_DEFAULT_MODEL, MINIMAX_MODELS, MINIMAX_PROVIDER, } from "./minimax";
26
+ export { MISTRAL_PROVIDER } from "./mistral";
27
+ export { MOONSHOT_DEFAULT_MODEL, MOONSHOT_MODELS, MOONSHOT_PROVIDER, } from "./moonshot";
28
+ export { NEBIUS_DEFAULT_MODEL, NEBIUS_MODELS, NEBIUS_PROVIDER, } from "./nebius";
29
+ export { NOUS_RESEARCH_DEFAULT_MODEL, NOUS_RESEARCH_MODELS, NOUS_RESEARCH_PROVIDER, } from "./nous-research";
30
+ export { DEFAULT_EXTERNAL_OCA_BASE_URL, DEFAULT_INTERNAL_OCA_BASE_URL, OCA_DEFAULT_MODEL, OCA_MODELS, OCA_PROVIDER, } from "./oca";
31
+ export { OLLAMA_PROVIDER } from "./ollama";
32
+ export { getActiveOpenAIModels, getOpenAIReasoningModels, OPENAI_DEFAULT_MODEL, OPENAI_MODELS, OPENAI_PROVIDER, } from "./openai";
33
+ export { OPENAI_CODEX_DEFAULT_MODEL, OPENAI_CODEX_PROVIDER, } from "./openai-codex";
34
+ export { OPENCODE_DEFAULT_MODEL, OPENCODE_MODELS, OPENCODE_PROVIDER, } from "./opencode";
35
+ export { OPENROUTER_DEFAULT_MODEL, OPENROUTER_MODELS, OPENROUTER_PROVIDER, } from "./openrouter";
36
+ export { QWEN_DEFAULT_MODEL, QWEN_MODELS, QWEN_PROVIDER } from "./qwen";
37
+ export { QWEN_CODE_DEFAULT_MODEL, QWEN_CODE_MODELS, QWEN_CODE_PROVIDER, } from "./qwen-code";
38
+ export { REQUESTY_PROVIDER } from "./requesty";
39
+ export { SAMBANOVA_DEFAULT_MODEL, SAMBANOVA_MODELS, SAMBANOVA_PROVIDER, } from "./sambanova";
40
+ export { SAP_AI_CORE_DEFAULT_MODEL, SAP_AI_CORE_MODELS, SAP_AI_CORE_PROVIDER, } from "./sapaicore";
41
+ export { getTogetherLlamaModels, TOGETHER_DEFAULT_MODEL, TOGETHER_MODELS, TOGETHER_PROVIDER, } from "./together";
42
+ export { VERCEL_AI_GATEWAY_PROVIDER } from "./vercel-ai-gateway";
43
+ export { VERTEX_DEFAULT_MODEL, VERTEX_MODELS, VERTEX_PROVIDER, } from "./vertex";
44
+ export { getActiveXAIModels, XAI_DEFAULT_MODEL, XAI_MODELS, XAI_PROVIDER, } from "./xai";
45
+ export { ZAI_DEFAULT_MODEL, ZAI_MODELS, ZAI_PROVIDER } from "./zai";
@@ -0,0 +1,5 @@
1
+ /**
2
+ * LiteLLM Provider
3
+ */
4
+ import type { ModelCollection } from "../schemas/index";
5
+ export declare const LITELLM_PROVIDER: ModelCollection;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * LM Studio Provider
3
+ */
4
+ import type { ModelCollection } from "../schemas/index";
5
+ export declare const LMSTUDIO_PROVIDER: ModelCollection;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * MiniMax Provider
3
+ */
4
+ import type { ModelCollection, ModelInfo } from "../schemas/index";
5
+ export declare const MINIMAX_MODELS: Record<string, ModelInfo>;
6
+ export declare const MINIMAX_DEFAULT_MODEL: string;
7
+ export declare const MINIMAX_PROVIDER: ModelCollection;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Mistral Provider
3
+ */
4
+ import type { ModelCollection } from "../schemas/index";
5
+ export declare const MISTRAL_PROVIDER: ModelCollection;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Moonshot Provider
3
+ */
4
+ import type { ModelCollection, ModelInfo } from "../schemas/index";
5
+ export declare const MOONSHOT_MODELS: Record<string, ModelInfo>;
6
+ export declare const MOONSHOT_DEFAULT_MODEL: string;
7
+ export declare const MOONSHOT_PROVIDER: ModelCollection;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Nebius Provider
3
+ */
4
+ import type { ModelCollection, ModelInfo } from "../schemas/index";
5
+ export declare const NEBIUS_MODELS: Record<string, ModelInfo>;
6
+ export declare const NEBIUS_DEFAULT_MODEL: string;
7
+ export declare const NEBIUS_PROVIDER: ModelCollection;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Nous Research Provider
3
+ */
4
+ import type { ModelCollection, ModelInfo } from "../schemas/index";
5
+ export declare const NOUS_RESEARCH_MODELS: Record<string, ModelInfo>;
6
+ export declare const NOUS_RESEARCH_DEFAULT_MODEL = "DeepHermes-3-Llama-3-3-70B-Preview";
7
+ export declare const NOUS_RESEARCH_PROVIDER: ModelCollection;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * OCA Provider
3
+ */
4
+ import type { ModelCollection, ModelInfo } from "../schemas/index";
5
+ export declare const DEFAULT_INTERNAL_OCA_BASE_URL = "https://code-internal.aiservice.us-chicago-1.oci.oraclecloud.com/20250206/app/litellm";
6
+ export declare const DEFAULT_EXTERNAL_OCA_BASE_URL = "https://code.aiservice.us-chicago-1.oci.oraclecloud.com/20250206/app/litellm";
7
+ export declare const OCA_DEFAULT_MODEL = "anthropic/claude-3-7-sonnet-20250219";
8
+ export declare const OCA_MODELS: Record<string, ModelInfo>;
9
+ export declare const OCA_PROVIDER: ModelCollection;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Ollama Provider
3
+ */
4
+ import type { ModelCollection } from "../schemas/index";
5
+ export declare const OLLAMA_PROVIDER: ModelCollection;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * OpenAI Codex Models
3
+ *
4
+ * Reuses the OpenAI Native catalog so OpenAI Codex and OpenAI Native stay in
5
+ * sync for model availability.
6
+ */
7
+ import type { ModelCollection, ModelInfo } from "../schemas/index";
8
+ export declare const OPENAI_CODEX_MODELS: Record<string, ModelInfo>;
9
+ export declare const OPENAI_CODEX_DEFAULT_MODEL: string;
10
+ export declare const OPENAI_CODEX_PROVIDER: ModelCollection;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * OpenAI Models
3
+ */
4
+ import type { ModelCollection, ModelInfo } from "../schemas/index";
5
+ export declare const OPENAI_MODELS: Record<string, ModelInfo>;
6
+ export declare const OPENAI_DEFAULT_MODEL: string;
7
+ export declare const OPENAI_PROVIDER: ModelCollection;
8
+ export declare function getActiveOpenAIModels(): Record<string, ModelInfo>;
9
+ export declare function getOpenAIReasoningModels(): Record<string, ModelInfo>;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * OpenCode Provider
3
+ *
4
+ * OpenCode SDK wrapper provider that supports provider/model IDs
5
+ * like "openai/gpt-5.3-codex" and "anthropic/claude-sonnet-4-5-20250929".
6
+ */
7
+ import type { ModelCollection, ModelInfo } from "../schemas/index";
8
+ export declare const OPENCODE_MODELS: Record<string, ModelInfo>;
9
+ export declare const OPENCODE_DEFAULT_MODEL: string;
10
+ export declare const OPENCODE_PROVIDER: ModelCollection;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * OpenRouter Provider
3
+ */
4
+ import type { ModelCollection, ModelInfo } from "../schemas/index";
5
+ export declare const OPENROUTER_MODELS: Record<string, ModelInfo>;
6
+ export declare const OPENROUTER_DEFAULT_MODEL = "anthropic/claude-sonnet-4.6";
7
+ export declare const OPENROUTER_PROVIDER: ModelCollection;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Qwen Code Provider
3
+ */
4
+ import type { ModelCollection, ModelInfo } from "../schemas/index";
5
+ export declare const QWEN_CODE_MODELS: Record<string, ModelInfo>;
6
+ export declare const QWEN_CODE_DEFAULT_MODEL: string;
7
+ export declare const QWEN_CODE_PROVIDER: ModelCollection;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Qwen Provider
3
+ */
4
+ import type { ModelCollection, ModelInfo } from "../schemas/index";
5
+ export declare const QWEN_MODELS: Record<string, ModelInfo>;
6
+ export declare const QWEN_DEFAULT_MODEL: string;
7
+ export declare const QWEN_PROVIDER: ModelCollection;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Requesty Provider
3
+ */
4
+ import type { ModelCollection, ModelInfo } from "../schemas/index";
5
+ export declare const REQUESTY_MODELS: Record<string, ModelInfo>;
6
+ export declare const REQUESTY_PROVIDER: ModelCollection;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * SambaNova Provider
3
+ */
4
+ import type { ModelCollection, ModelInfo } from "../schemas/index";
5
+ export declare const SAMBANOVA_MODELS: Record<string, ModelInfo>;
6
+ export declare const SAMBANOVA_DEFAULT_MODEL: string;
7
+ export declare const SAMBANOVA_PROVIDER: ModelCollection;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * SAP AI Core Provider
3
+ */
4
+ import type { ModelCollection, ModelInfo } from "../schemas/index";
5
+ export declare const SAP_AI_CORE_MODELS: Record<string, ModelInfo>;
6
+ export declare const SAP_AI_CORE_DEFAULT_MODEL: string;
7
+ export declare const SAP_AI_CORE_PROVIDER: ModelCollection;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Together AI Models
3
+ */
4
+ import type { ModelCollection, ModelInfo } from "../schemas/index";
5
+ export declare const TOGETHER_MODELS: Record<string, ModelInfo>;
6
+ export declare const TOGETHER_DEFAULT_MODEL: string;
7
+ export declare const TOGETHER_PROVIDER: ModelCollection;
8
+ export declare function getTogetherLlamaModels(): Record<string, ModelInfo>;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Vercel AI Gateway Provider
3
+ */
4
+ import type { ModelCollection } from "../schemas/index";
5
+ export declare const VERCEL_AI_GATEWAY_PROVIDER: ModelCollection;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Google Vertex AI Models
3
+ */
4
+ import type { ModelCollection, ModelInfo } from "../schemas/index";
5
+ export declare const VERTEX_MODELS: Record<string, ModelInfo>;
6
+ export declare const VERTEX_DEFAULT_MODEL: string;
7
+ export declare const VERTEX_PROVIDER: ModelCollection;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * xAI Models
3
+ */
4
+ import type { ModelCollection, ModelInfo } from "../schemas/index";
5
+ export declare const XAI_MODELS: Record<string, ModelInfo>;
6
+ export declare const XAI_DEFAULT_MODEL: string;
7
+ export declare const XAI_PROVIDER: ModelCollection;
8
+ export declare function getActiveXAIModels(): Record<string, ModelInfo>;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Z.AI Models
3
+ */
4
+ import type { ModelCollection, ModelInfo } from "../schemas/index";
5
+ export declare const ZAI_MODELS: Record<string, ModelInfo>;
6
+ export declare const ZAI_DEFAULT_MODEL: string;
7
+ export declare const ZAI_PROVIDER: ModelCollection;