@clinebot/llms 0.0.18 → 0.0.21

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 (319) hide show
  1. package/dist/config-browser.d.ts +1 -0
  2. package/dist/config-browser.d.ts.map +1 -0
  3. package/dist/config.d.ts +1 -0
  4. package/dist/config.d.ts.map +1 -0
  5. package/dist/index.browser.d.ts +1 -0
  6. package/dist/index.browser.d.ts.map +1 -0
  7. package/dist/index.browser.js +5 -5
  8. package/dist/index.d.ts +1 -0
  9. package/dist/index.d.ts.map +1 -0
  10. package/dist/index.js +12 -12
  11. package/dist/models/generated-access.d.ts +1 -0
  12. package/dist/models/generated-access.d.ts.map +1 -0
  13. package/dist/models/generated-provider-loaders.d.ts +1 -0
  14. package/dist/models/generated-provider-loaders.d.ts.map +1 -0
  15. package/dist/models/generated.d.ts +1 -0
  16. package/dist/models/generated.d.ts.map +1 -0
  17. package/dist/models/index.d.ts +1 -0
  18. package/dist/models/index.d.ts.map +1 -0
  19. package/dist/models/models-dev-catalog.d.ts +1 -0
  20. package/dist/models/models-dev-catalog.d.ts.map +1 -0
  21. package/dist/models/providers/aihubmix.d.ts +1 -0
  22. package/dist/models/providers/aihubmix.d.ts.map +1 -0
  23. package/dist/models/providers/anthropic.d.ts +1 -0
  24. package/dist/models/providers/anthropic.d.ts.map +1 -0
  25. package/dist/models/providers/asksage.d.ts +1 -0
  26. package/dist/models/providers/asksage.d.ts.map +1 -0
  27. package/dist/models/providers/baseten.d.ts +1 -0
  28. package/dist/models/providers/baseten.d.ts.map +1 -0
  29. package/dist/models/providers/bedrock.d.ts +1 -0
  30. package/dist/models/providers/bedrock.d.ts.map +1 -0
  31. package/dist/models/providers/cerebras.d.ts +1 -0
  32. package/dist/models/providers/cerebras.d.ts.map +1 -0
  33. package/dist/models/providers/claude-code.d.ts +1 -0
  34. package/dist/models/providers/claude-code.d.ts.map +1 -0
  35. package/dist/models/providers/cline.d.ts +1 -0
  36. package/dist/models/providers/cline.d.ts.map +1 -0
  37. package/dist/models/providers/deepseek.d.ts +1 -0
  38. package/dist/models/providers/deepseek.d.ts.map +1 -0
  39. package/dist/models/providers/dify.d.ts +1 -0
  40. package/dist/models/providers/dify.d.ts.map +1 -0
  41. package/dist/models/providers/doubao.d.ts +1 -0
  42. package/dist/models/providers/doubao.d.ts.map +1 -0
  43. package/dist/models/providers/fireworks.d.ts +1 -0
  44. package/dist/models/providers/fireworks.d.ts.map +1 -0
  45. package/dist/models/providers/gemini.d.ts +1 -0
  46. package/dist/models/providers/gemini.d.ts.map +1 -0
  47. package/dist/models/providers/groq.d.ts +1 -0
  48. package/dist/models/providers/groq.d.ts.map +1 -0
  49. package/dist/models/providers/hicap.d.ts +1 -0
  50. package/dist/models/providers/hicap.d.ts.map +1 -0
  51. package/dist/models/providers/huawei-cloud-maas.d.ts +1 -0
  52. package/dist/models/providers/huawei-cloud-maas.d.ts.map +1 -0
  53. package/dist/models/providers/huggingface.d.ts +1 -0
  54. package/dist/models/providers/huggingface.d.ts.map +1 -0
  55. package/dist/models/providers/index.d.ts +1 -0
  56. package/dist/models/providers/index.d.ts.map +1 -0
  57. package/dist/models/providers/litellm.d.ts +1 -0
  58. package/dist/models/providers/litellm.d.ts.map +1 -0
  59. package/dist/models/providers/lmstudio.d.ts +1 -0
  60. package/dist/models/providers/lmstudio.d.ts.map +1 -0
  61. package/dist/models/providers/minimax.d.ts +1 -0
  62. package/dist/models/providers/minimax.d.ts.map +1 -0
  63. package/dist/models/providers/mistral.d.ts +1 -0
  64. package/dist/models/providers/mistral.d.ts.map +1 -0
  65. package/dist/models/providers/moonshot.d.ts +1 -0
  66. package/dist/models/providers/moonshot.d.ts.map +1 -0
  67. package/dist/models/providers/nebius.d.ts +1 -0
  68. package/dist/models/providers/nebius.d.ts.map +1 -0
  69. package/dist/models/providers/nous-research.d.ts +1 -0
  70. package/dist/models/providers/nous-research.d.ts.map +1 -0
  71. package/dist/models/providers/oca.d.ts +1 -0
  72. package/dist/models/providers/oca.d.ts.map +1 -0
  73. package/dist/models/providers/ollama.d.ts +1 -0
  74. package/dist/models/providers/ollama.d.ts.map +1 -0
  75. package/dist/models/providers/openai-codex.d.ts +1 -0
  76. package/dist/models/providers/openai-codex.d.ts.map +1 -0
  77. package/dist/models/providers/openai.d.ts +1 -0
  78. package/dist/models/providers/openai.d.ts.map +1 -0
  79. package/dist/models/providers/opencode.d.ts +1 -0
  80. package/dist/models/providers/opencode.d.ts.map +1 -0
  81. package/dist/models/providers/openrouter.d.ts +1 -0
  82. package/dist/models/providers/openrouter.d.ts.map +1 -0
  83. package/dist/models/providers/qwen-code.d.ts +1 -0
  84. package/dist/models/providers/qwen-code.d.ts.map +1 -0
  85. package/dist/models/providers/qwen.d.ts +1 -0
  86. package/dist/models/providers/qwen.d.ts.map +1 -0
  87. package/dist/models/providers/requesty.d.ts +1 -0
  88. package/dist/models/providers/requesty.d.ts.map +1 -0
  89. package/dist/models/providers/sambanova.d.ts +1 -0
  90. package/dist/models/providers/sambanova.d.ts.map +1 -0
  91. package/dist/models/providers/sapaicore.d.ts +1 -0
  92. package/dist/models/providers/sapaicore.d.ts.map +1 -0
  93. package/dist/models/providers/together.d.ts +1 -0
  94. package/dist/models/providers/together.d.ts.map +1 -0
  95. package/dist/models/providers/vercel-ai-gateway.d.ts +1 -0
  96. package/dist/models/providers/vercel-ai-gateway.d.ts.map +1 -0
  97. package/dist/models/providers/vertex.d.ts +1 -0
  98. package/dist/models/providers/vertex.d.ts.map +1 -0
  99. package/dist/models/providers/xai.d.ts +1 -0
  100. package/dist/models/providers/xai.d.ts.map +1 -0
  101. package/dist/models/providers/zai.d.ts +1 -0
  102. package/dist/models/providers/zai.d.ts.map +1 -0
  103. package/dist/models/query.d.ts +1 -0
  104. package/dist/models/query.d.ts.map +1 -0
  105. package/dist/models/registry.d.ts +1 -0
  106. package/dist/models/registry.d.ts.map +1 -0
  107. package/dist/models/schemas/index.d.ts +1 -0
  108. package/dist/models/schemas/index.d.ts.map +1 -0
  109. package/dist/models/schemas/model.d.ts +1 -0
  110. package/dist/models/schemas/model.d.ts.map +1 -0
  111. package/dist/models/schemas/query.d.ts +1 -0
  112. package/dist/models/schemas/query.d.ts.map +1 -0
  113. package/dist/providers/handlers/ai-sdk-community.d.ts +1 -0
  114. package/dist/providers/handlers/ai-sdk-community.d.ts.map +1 -0
  115. package/dist/providers/handlers/ai-sdk-provider-base.d.ts +1 -0
  116. package/dist/providers/handlers/ai-sdk-provider-base.d.ts.map +1 -0
  117. package/dist/providers/handlers/anthropic-base.d.ts +1 -0
  118. package/dist/providers/handlers/anthropic-base.d.ts.map +1 -0
  119. package/dist/providers/handlers/asksage.d.ts +1 -0
  120. package/dist/providers/handlers/asksage.d.ts.map +1 -0
  121. package/dist/providers/handlers/auth.d.ts +1 -0
  122. package/dist/providers/handlers/auth.d.ts.map +1 -0
  123. package/dist/providers/handlers/base.d.ts +1 -0
  124. package/dist/providers/handlers/base.d.ts.map +1 -0
  125. package/dist/providers/handlers/bedrock-base.d.ts +1 -0
  126. package/dist/providers/handlers/bedrock-base.d.ts.map +1 -0
  127. package/dist/providers/handlers/bedrock-client.d.ts +1 -0
  128. package/dist/providers/handlers/bedrock-client.d.ts.map +1 -0
  129. package/dist/providers/handlers/community-sdk.d.ts +1 -0
  130. package/dist/providers/handlers/community-sdk.d.ts.map +1 -0
  131. package/dist/providers/handlers/fetch-base.d.ts +1 -0
  132. package/dist/providers/handlers/fetch-base.d.ts.map +1 -0
  133. package/dist/providers/handlers/gemini-base.d.ts +1 -0
  134. package/dist/providers/handlers/gemini-base.d.ts.map +1 -0
  135. package/dist/providers/handlers/index.d.ts +1 -0
  136. package/dist/providers/handlers/index.d.ts.map +1 -0
  137. package/dist/providers/handlers/openai-base.d.ts +1 -0
  138. package/dist/providers/handlers/openai-base.d.ts.map +1 -0
  139. package/dist/providers/handlers/openai-responses.d.ts +1 -0
  140. package/dist/providers/handlers/openai-responses.d.ts.map +1 -0
  141. package/dist/providers/handlers/providers.d.ts +1 -0
  142. package/dist/providers/handlers/providers.d.ts.map +1 -0
  143. package/dist/providers/handlers/r1-base.d.ts +1 -0
  144. package/dist/providers/handlers/r1-base.d.ts.map +1 -0
  145. package/dist/providers/handlers/registry.d.ts +1 -0
  146. package/dist/providers/handlers/registry.d.ts.map +1 -0
  147. package/dist/providers/handlers/vertex.d.ts +1 -0
  148. package/dist/providers/handlers/vertex.d.ts.map +1 -0
  149. package/dist/providers/index.d.ts +1 -0
  150. package/dist/providers/index.d.ts.map +1 -0
  151. package/dist/providers/public.browser.d.ts +1 -0
  152. package/dist/providers/public.browser.d.ts.map +1 -0
  153. package/dist/providers/public.d.ts +1 -0
  154. package/dist/providers/public.d.ts.map +1 -0
  155. package/dist/providers/shared/openai-compatible.d.ts +1 -0
  156. package/dist/providers/shared/openai-compatible.d.ts.map +1 -0
  157. package/dist/providers/transform/ai-sdk-community-format.d.ts +1 -0
  158. package/dist/providers/transform/ai-sdk-community-format.d.ts.map +1 -0
  159. package/dist/providers/transform/anthropic-format.d.ts +1 -0
  160. package/dist/providers/transform/anthropic-format.d.ts.map +1 -0
  161. package/dist/providers/transform/content-format.d.ts +1 -0
  162. package/dist/providers/transform/content-format.d.ts.map +1 -0
  163. package/dist/providers/transform/gemini-format.d.ts +1 -0
  164. package/dist/providers/transform/gemini-format.d.ts.map +1 -0
  165. package/dist/providers/transform/index.d.ts +1 -0
  166. package/dist/providers/transform/index.d.ts.map +1 -0
  167. package/dist/providers/transform/openai-format.d.ts +1 -0
  168. package/dist/providers/transform/openai-format.d.ts.map +1 -0
  169. package/dist/providers/transform/r1-format.d.ts +1 -0
  170. package/dist/providers/transform/r1-format.d.ts.map +1 -0
  171. package/dist/providers/types/config.d.ts +1 -0
  172. package/dist/providers/types/config.d.ts.map +1 -0
  173. package/dist/providers/types/handler.d.ts +1 -0
  174. package/dist/providers/types/handler.d.ts.map +1 -0
  175. package/dist/providers/types/index.d.ts +1 -0
  176. package/dist/providers/types/index.d.ts.map +1 -0
  177. package/dist/providers/types/messages.d.ts +1 -0
  178. package/dist/providers/types/messages.d.ts.map +1 -0
  179. package/dist/providers/types/model-info.d.ts +1 -0
  180. package/dist/providers/types/model-info.d.ts.map +1 -0
  181. package/dist/providers/types/provider-ids.d.ts +1 -1
  182. package/dist/providers/types/provider-ids.d.ts.map +1 -0
  183. package/dist/providers/types/settings.d.ts +1 -0
  184. package/dist/providers/types/settings.d.ts.map +1 -0
  185. package/dist/providers/types/stream.d.ts +1 -0
  186. package/dist/providers/types/stream.d.ts.map +1 -0
  187. package/dist/providers/utils/index.d.ts +1 -0
  188. package/dist/providers/utils/index.d.ts.map +1 -0
  189. package/dist/providers/utils/retry.d.ts +1 -0
  190. package/dist/providers/utils/retry.d.ts.map +1 -0
  191. package/dist/providers/utils/stream-processor.d.ts +1 -0
  192. package/dist/providers/utils/stream-processor.d.ts.map +1 -0
  193. package/dist/providers/utils/tool-processor.d.ts +1 -0
  194. package/dist/providers/utils/tool-processor.d.ts.map +1 -0
  195. package/dist/sdk.d.ts +1 -0
  196. package/dist/sdk.d.ts.map +1 -0
  197. package/dist/types.d.ts +1 -0
  198. package/dist/types.d.ts.map +1 -0
  199. package/package.json +3 -4
  200. package/src/catalog.ts +0 -20
  201. package/src/config-browser.ts +0 -11
  202. package/src/config.ts +0 -49
  203. package/src/index.browser.ts +0 -9
  204. package/src/index.ts +0 -10
  205. package/src/live-providers.test.ts +0 -138
  206. package/src/models/generated-access.ts +0 -41
  207. package/src/models/generated-provider-loaders.ts +0 -166
  208. package/src/models/generated.ts +0 -11785
  209. package/src/models/index.ts +0 -271
  210. package/src/models/models-dev-catalog.test.ts +0 -161
  211. package/src/models/models-dev-catalog.ts +0 -168
  212. package/src/models/providers/aihubmix.ts +0 -19
  213. package/src/models/providers/anthropic.ts +0 -60
  214. package/src/models/providers/asksage.ts +0 -19
  215. package/src/models/providers/baseten.ts +0 -21
  216. package/src/models/providers/bedrock.ts +0 -30
  217. package/src/models/providers/cerebras.ts +0 -24
  218. package/src/models/providers/claude-code.ts +0 -51
  219. package/src/models/providers/cline.ts +0 -25
  220. package/src/models/providers/deepseek.ts +0 -33
  221. package/src/models/providers/dify.ts +0 -17
  222. package/src/models/providers/doubao.ts +0 -33
  223. package/src/models/providers/fireworks.ts +0 -34
  224. package/src/models/providers/gemini.ts +0 -43
  225. package/src/models/providers/groq.ts +0 -33
  226. package/src/models/providers/hicap.ts +0 -18
  227. package/src/models/providers/huawei-cloud-maas.ts +0 -18
  228. package/src/models/providers/huggingface.ts +0 -22
  229. package/src/models/providers/index.ts +0 -162
  230. package/src/models/providers/litellm.ts +0 -19
  231. package/src/models/providers/lmstudio.ts +0 -22
  232. package/src/models/providers/minimax.ts +0 -34
  233. package/src/models/providers/mistral.ts +0 -19
  234. package/src/models/providers/moonshot.ts +0 -34
  235. package/src/models/providers/nebius.ts +0 -24
  236. package/src/models/providers/nous-research.ts +0 -21
  237. package/src/models/providers/oca.ts +0 -30
  238. package/src/models/providers/ollama.ts +0 -18
  239. package/src/models/providers/openai-codex.ts +0 -46
  240. package/src/models/providers/openai.ts +0 -43
  241. package/src/models/providers/opencode.ts +0 -28
  242. package/src/models/providers/openrouter.ts +0 -24
  243. package/src/models/providers/qwen-code.ts +0 -33
  244. package/src/models/providers/qwen.ts +0 -34
  245. package/src/models/providers/requesty.ts +0 -23
  246. package/src/models/providers/sambanova.ts +0 -23
  247. package/src/models/providers/sapaicore.ts +0 -34
  248. package/src/models/providers/together.ts +0 -35
  249. package/src/models/providers/vercel-ai-gateway.ts +0 -23
  250. package/src/models/providers/vertex.ts +0 -36
  251. package/src/models/providers/xai.ts +0 -34
  252. package/src/models/providers/zai.ts +0 -25
  253. package/src/models/query.ts +0 -407
  254. package/src/models/registry.ts +0 -511
  255. package/src/models/schemas/index.ts +0 -62
  256. package/src/models/schemas/model.ts +0 -308
  257. package/src/models/schemas/query.ts +0 -336
  258. package/src/providers/browser.ts +0 -4
  259. package/src/providers/handlers/ai-sdk-community.ts +0 -229
  260. package/src/providers/handlers/ai-sdk-provider-base.ts +0 -203
  261. package/src/providers/handlers/anthropic-base.test.ts +0 -30
  262. package/src/providers/handlers/anthropic-base.ts +0 -387
  263. package/src/providers/handlers/asksage.test.ts +0 -103
  264. package/src/providers/handlers/asksage.ts +0 -138
  265. package/src/providers/handlers/auth.test.ts +0 -19
  266. package/src/providers/handlers/auth.ts +0 -121
  267. package/src/providers/handlers/base.test.ts +0 -230
  268. package/src/providers/handlers/base.ts +0 -310
  269. package/src/providers/handlers/bedrock-base.ts +0 -390
  270. package/src/providers/handlers/bedrock-client.ts +0 -100
  271. package/src/providers/handlers/codex.test.ts +0 -160
  272. package/src/providers/handlers/community-sdk.test.ts +0 -321
  273. package/src/providers/handlers/community-sdk.ts +0 -391
  274. package/src/providers/handlers/fetch-base.ts +0 -68
  275. package/src/providers/handlers/gemini-base.test.ts +0 -261
  276. package/src/providers/handlers/gemini-base.ts +0 -307
  277. package/src/providers/handlers/index.ts +0 -67
  278. package/src/providers/handlers/openai-base.ts +0 -341
  279. package/src/providers/handlers/openai-responses.test.ts +0 -259
  280. package/src/providers/handlers/openai-responses.ts +0 -634
  281. package/src/providers/handlers/providers.test.ts +0 -120
  282. package/src/providers/handlers/providers.ts +0 -563
  283. package/src/providers/handlers/r1-base.ts +0 -283
  284. package/src/providers/handlers/registry.ts +0 -185
  285. package/src/providers/handlers/vertex.test.ts +0 -124
  286. package/src/providers/handlers/vertex.ts +0 -302
  287. package/src/providers/index.ts +0 -534
  288. package/src/providers/public.browser.ts +0 -20
  289. package/src/providers/public.ts +0 -51
  290. package/src/providers/shared/openai-compatible.ts +0 -63
  291. package/src/providers/transform/ai-sdk-community-format.test.ts +0 -73
  292. package/src/providers/transform/ai-sdk-community-format.ts +0 -115
  293. package/src/providers/transform/anthropic-format.ts +0 -230
  294. package/src/providers/transform/content-format.ts +0 -34
  295. package/src/providers/transform/format-conversion.test.ts +0 -413
  296. package/src/providers/transform/gemini-format.ts +0 -262
  297. package/src/providers/transform/index.ts +0 -22
  298. package/src/providers/transform/openai-format.ts +0 -290
  299. package/src/providers/transform/r1-format.ts +0 -287
  300. package/src/providers/types/config.ts +0 -396
  301. package/src/providers/types/handler.ts +0 -92
  302. package/src/providers/types/index.ts +0 -120
  303. package/src/providers/types/messages.ts +0 -162
  304. package/src/providers/types/model-info.test.ts +0 -57
  305. package/src/providers/types/model-info.ts +0 -65
  306. package/src/providers/types/provider-ids.test.ts +0 -12
  307. package/src/providers/types/provider-ids.ts +0 -89
  308. package/src/providers/types/settings.test.ts +0 -49
  309. package/src/providers/types/settings.ts +0 -533
  310. package/src/providers/types/stream.ts +0 -117
  311. package/src/providers/utils/index.ts +0 -27
  312. package/src/providers/utils/retry.test.ts +0 -140
  313. package/src/providers/utils/retry.ts +0 -188
  314. package/src/providers/utils/stream-processor.test.ts +0 -232
  315. package/src/providers/utils/stream-processor.ts +0 -472
  316. package/src/providers/utils/tool-processor.test.ts +0 -235
  317. package/src/providers/utils/tool-processor.ts +0 -146
  318. package/src/sdk.ts +0 -264
  319. package/src/types.ts +0 -79
@@ -1,34 +0,0 @@
1
- /**
2
- * Moonshot Provider
3
- */
4
-
5
- import { getGeneratedModelsForProvider } from "../generated-access";
6
- import type { ModelCollection, ModelInfo } from "../schemas/index";
7
-
8
- const DEFAULT_MOONSHOT_MODEL_ID = "kimi-k2-0905-preview";
9
-
10
- export const MOONSHOT_MODELS: Record<string, ModelInfo> = {
11
- [DEFAULT_MOONSHOT_MODEL_ID]: {
12
- id: DEFAULT_MOONSHOT_MODEL_ID,
13
- name: "Kimi K2 Preview",
14
- capabilities: ["streaming", "tools", "reasoning"],
15
- },
16
- ...getGeneratedModelsForProvider("moonshot"),
17
- };
18
-
19
- export const MOONSHOT_DEFAULT_MODEL =
20
- Object.keys(MOONSHOT_MODELS)[0] ?? DEFAULT_MOONSHOT_MODEL_ID;
21
-
22
- export const MOONSHOT_PROVIDER: ModelCollection = {
23
- provider: {
24
- id: "moonshot",
25
- name: "Moonshot",
26
- description: "Moonshot AI Studio models",
27
- protocol: "openai-chat",
28
- baseUrl: "https://api.moonshot.ai/v1",
29
- defaultModelId: MOONSHOT_DEFAULT_MODEL,
30
- capabilities: ["reasoning", "prompt-cache"],
31
- env: ["MOONSHOT_API_KEY"],
32
- },
33
- models: MOONSHOT_MODELS,
34
- };
@@ -1,24 +0,0 @@
1
- /**
2
- * Nebius Provider
3
- */
4
-
5
- import { getGeneratedModelsForProvider } from "../generated-access";
6
- import type { ModelCollection, ModelInfo } from "../schemas/index";
7
-
8
- export const NEBIUS_MODELS: Record<string, ModelInfo> =
9
- getGeneratedModelsForProvider("nebius");
10
- export const NEBIUS_DEFAULT_MODEL =
11
- Object.keys(NEBIUS_MODELS)[0] || "meta-llama/Meta-Llama-3.1-70B-Instruct";
12
-
13
- export const NEBIUS_PROVIDER: ModelCollection = {
14
- provider: {
15
- id: "nebius",
16
- name: "Nebius",
17
- description: "European cloud AI infrastructure",
18
- protocol: "openai-chat",
19
- baseUrl: "https://api.studio.nebius.ai/v1",
20
- defaultModelId: NEBIUS_DEFAULT_MODEL,
21
- env: ["NEBIUS_API_KEY"],
22
- },
23
- models: NEBIUS_MODELS,
24
- };
@@ -1,21 +0,0 @@
1
- /**
2
- * Nous Research Provider
3
- */
4
-
5
- import type { ModelCollection, ModelInfo } from "../schemas/index";
6
-
7
- export const NOUS_RESEARCH_MODELS: Record<string, ModelInfo> = {};
8
- export const NOUS_RESEARCH_DEFAULT_MODEL = "DeepHermes-3-Llama-3-3-70B-Preview";
9
-
10
- export const NOUS_RESEARCH_PROVIDER: ModelCollection = {
11
- provider: {
12
- id: "nousResearch",
13
- name: "Nous Research",
14
- description: "Open-source AI research lab",
15
- protocol: "openai-chat",
16
- baseUrl: "https://inference-api.nousresearch.com/v1",
17
- defaultModelId: NOUS_RESEARCH_DEFAULT_MODEL,
18
- env: ["NOUS_RESEARCH_API_KEY", "NOUSRESEARCH_API_KEY"],
19
- },
20
- models: NOUS_RESEARCH_MODELS,
21
- };
@@ -1,30 +0,0 @@
1
- /**
2
- * OCA Provider
3
- */
4
-
5
- import { getGeneratedModelsForProvider } from "../generated-access";
6
- import type { ModelCollection, ModelInfo } from "../schemas/index";
7
-
8
- export const DEFAULT_INTERNAL_OCA_BASE_URL =
9
- "https://code-internal.aiservice.us-chicago-1.oci.oraclecloud.com/20250206/app/litellm";
10
- export const DEFAULT_EXTERNAL_OCA_BASE_URL =
11
- "https://code.aiservice.us-chicago-1.oci.oraclecloud.com/20250206/app/litellm";
12
-
13
- // Falls back to the legacy default when a generated catalog does not yet include OCA.
14
- export const OCA_DEFAULT_MODEL = "anthropic/claude-3-7-sonnet-20250219";
15
- export const OCA_MODELS: Record<string, ModelInfo> =
16
- getGeneratedModelsForProvider("oca");
17
-
18
- export const OCA_PROVIDER: ModelCollection = {
19
- provider: {
20
- id: "oca",
21
- name: "Oracle Code Assist",
22
- description: "Oracle Code Assist (OCA) LiteLLM gateway",
23
- protocol: "openai-chat",
24
- baseUrl: DEFAULT_EXTERNAL_OCA_BASE_URL,
25
- defaultModelId: Object.keys(OCA_MODELS)[0] ?? OCA_DEFAULT_MODEL,
26
- capabilities: ["reasoning", "prompt-cache", "tools"],
27
- env: ["OCA_API_KEY"],
28
- },
29
- models: OCA_MODELS,
30
- };
@@ -1,18 +0,0 @@
1
- /**
2
- * Ollama Provider
3
- */
4
-
5
- import type { ModelCollection } from "../schemas/index";
6
-
7
- export const OLLAMA_PROVIDER: ModelCollection = {
8
- provider: {
9
- id: "ollama",
10
- name: "Ollama",
11
- description: "Ollama Cloud and local LLM hosting",
12
- protocol: "openai-chat",
13
- baseUrl: "http://localhost:11434/v1",
14
- defaultModelId: "llama3.2",
15
- env: ["OLLAMA_API_KEY"],
16
- },
17
- models: {},
18
- };
@@ -1,46 +0,0 @@
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
-
8
- import { getGeneratedModelsForProvider } from "../generated-access";
9
- import type { ModelCollection, ModelInfo } from "../schemas/index";
10
-
11
- function removeCustomToolCapability(model: ModelInfo): ModelInfo {
12
- if (!model.capabilities?.includes("tools")) {
13
- return model;
14
- }
15
-
16
- return {
17
- ...model,
18
- capabilities: model.capabilities.filter(
19
- (capability) => capability !== "tools",
20
- ),
21
- };
22
- }
23
-
24
- export const OPENAI_CODEX_MODELS: Record<string, ModelInfo> =
25
- Object.fromEntries(
26
- Object.entries(getGeneratedModelsForProvider("openai")).map(
27
- ([modelId, model]) => [modelId, removeCustomToolCapability(model)],
28
- ),
29
- );
30
-
31
- export const OPENAI_CODEX_DEFAULT_MODEL =
32
- Object.keys(OPENAI_CODEX_MODELS)[0] ?? "gpt-5.3-codex";
33
-
34
- export const OPENAI_CODEX_PROVIDER: ModelCollection = {
35
- provider: {
36
- id: "openai-codex",
37
- name: "OpenAI Codex",
38
- description: "OpenAI Codex via the local Codex CLI provider",
39
- protocol: "openai-chat",
40
-
41
- baseUrl: "https://chatgpt.com/backend-api/codex",
42
- defaultModelId: OPENAI_CODEX_DEFAULT_MODEL,
43
- capabilities: ["reasoning", "oauth"],
44
- },
45
- models: OPENAI_CODEX_MODELS,
46
- };
@@ -1,43 +0,0 @@
1
- /**
2
- * OpenAI Models
3
- */
4
-
5
- import { getGeneratedModelsForProvider } from "../generated-access";
6
- import type { ModelCollection, ModelInfo } from "../schemas/index";
7
-
8
- export const OPENAI_MODELS: Record<string, ModelInfo> =
9
- getGeneratedModelsForProvider("openai");
10
-
11
- export const OPENAI_DEFAULT_MODEL =
12
- Object.keys(OPENAI_MODELS)[0] ?? "gpt-5.3-codex";
13
-
14
- export const OPENAI_PROVIDER: ModelCollection = {
15
- provider: {
16
- id: "openai-native",
17
- name: "OpenAI",
18
- description: "Creator of GPT and ChatGPT",
19
- protocol: "openai-responses",
20
- baseUrl: "https://api.openai.com/v1",
21
- defaultModelId: OPENAI_DEFAULT_MODEL,
22
- capabilities: ["reasoning"],
23
- env: ["OPENAI_API_KEY"],
24
- },
25
- models: OPENAI_MODELS,
26
- };
27
-
28
- export function getActiveOpenAIModels(): Record<string, ModelInfo> {
29
- return Object.fromEntries(
30
- Object.entries(OPENAI_MODELS).filter(
31
- ([, info]) =>
32
- !info.status || info.status === "active" || info.status === "preview",
33
- ),
34
- );
35
- }
36
-
37
- export function getOpenAIReasoningModels(): Record<string, ModelInfo> {
38
- return Object.fromEntries(
39
- Object.entries(OPENAI_MODELS).filter(([, info]) =>
40
- info.capabilities?.includes("reasoning"),
41
- ),
42
- );
43
- }
@@ -1,28 +0,0 @@
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
-
8
- import { getGeneratedModelsForProvider } from "../generated-access";
9
- import type { ModelCollection, ModelInfo } from "../schemas/index";
10
-
11
- export const OPENCODE_MODELS: Record<string, ModelInfo> =
12
- getGeneratedModelsForProvider("opencode");
13
-
14
- export const OPENCODE_DEFAULT_MODEL =
15
- Object.keys(OPENCODE_MODELS)[0] ?? "openai/gpt-5.3-codex";
16
-
17
- export const OPENCODE_PROVIDER: ModelCollection = {
18
- provider: {
19
- id: "opencode",
20
- name: "OpenCode",
21
- description: "OpenCode SDK multi-provider runtime",
22
- protocol: "openai-chat",
23
- baseUrl: "",
24
- defaultModelId: OPENCODE_DEFAULT_MODEL,
25
- capabilities: ["reasoning", "oauth"],
26
- },
27
- models: OPENCODE_MODELS,
28
- };
@@ -1,24 +0,0 @@
1
- /**
2
- * OpenRouter Provider
3
- */
4
-
5
- import { getGeneratedModelsForProvider } from "../generated-access";
6
- import type { ModelCollection, ModelInfo } from "../schemas/index";
7
-
8
- export const OPENROUTER_MODELS: Record<string, ModelInfo> =
9
- getGeneratedModelsForProvider("openrouter");
10
- export const OPENROUTER_DEFAULT_MODEL = "anthropic/claude-sonnet-4.6";
11
-
12
- export const OPENROUTER_PROVIDER: ModelCollection = {
13
- provider: {
14
- id: "openrouter",
15
- name: "OpenRouter",
16
- description: "OpenRouter AI platform",
17
- protocol: "openai-chat",
18
- baseUrl: "https://openrouter.ai/api/v1",
19
- defaultModelId: OPENROUTER_DEFAULT_MODEL,
20
- capabilities: ["reasoning", "prompt-cache"],
21
- env: ["OPENROUTER_API_KEY"],
22
- },
23
- models: OPENROUTER_MODELS,
24
- };
@@ -1,33 +0,0 @@
1
- /**
2
- * Qwen Code Provider
3
- */
4
-
5
- import { getGeneratedModelsForProvider } from "../generated-access";
6
- import type { ModelCollection, ModelInfo } from "../schemas/index";
7
-
8
- const DEFAULT_QWEN_CODE_MODEL_ID = "qwen3-coder-plus";
9
-
10
- export const QWEN_CODE_MODELS: Record<string, ModelInfo> = {
11
- [DEFAULT_QWEN_CODE_MODEL_ID]: {
12
- id: DEFAULT_QWEN_CODE_MODEL_ID,
13
- name: "Qwen3 Coder Plus",
14
- capabilities: ["streaming", "tools", "reasoning"],
15
- },
16
- ...getGeneratedModelsForProvider("qwen-code"),
17
- };
18
-
19
- export const QWEN_CODE_DEFAULT_MODEL =
20
- Object.keys(QWEN_CODE_MODELS)[0] ?? DEFAULT_QWEN_CODE_MODEL_ID;
21
-
22
- export const QWEN_CODE_PROVIDER: ModelCollection = {
23
- provider: {
24
- id: "qwen-code",
25
- name: "Qwen Code",
26
- description: "Qwen OAuth coding models",
27
- protocol: "openai-chat",
28
- baseUrl: "https://dashscope.aliyuncs.com/compatible-mode/v1",
29
- defaultModelId: QWEN_CODE_DEFAULT_MODEL,
30
- capabilities: ["reasoning", "oauth"],
31
- },
32
- models: QWEN_CODE_MODELS,
33
- };
@@ -1,34 +0,0 @@
1
- /**
2
- * Qwen Provider
3
- */
4
-
5
- import { getGeneratedModelsForProvider } from "../generated-access";
6
- import type { ModelCollection, ModelInfo } from "../schemas/index";
7
-
8
- const DEFAULT_QWEN_MODEL_ID = "qwen-plus-latest";
9
-
10
- export const QWEN_MODELS: Record<string, ModelInfo> = {
11
- [DEFAULT_QWEN_MODEL_ID]: {
12
- id: DEFAULT_QWEN_MODEL_ID,
13
- name: "Qwen Plus Latest",
14
- capabilities: ["streaming", "tools", "reasoning"],
15
- },
16
- ...getGeneratedModelsForProvider("qwen"),
17
- };
18
-
19
- export const QWEN_DEFAULT_MODEL =
20
- Object.keys(QWEN_MODELS)[0] ?? DEFAULT_QWEN_MODEL_ID;
21
-
22
- export const QWEN_PROVIDER: ModelCollection = {
23
- provider: {
24
- id: "qwen",
25
- name: "Qwen",
26
- description: "Alibaba Qwen platform models",
27
- protocol: "openai-chat",
28
- baseUrl: "https://dashscope.aliyuncs.com/compatible-mode/v1",
29
- defaultModelId: QWEN_DEFAULT_MODEL,
30
- capabilities: ["reasoning"],
31
- env: ["QWEN_API_KEY"],
32
- },
33
- models: QWEN_MODELS,
34
- };
@@ -1,23 +0,0 @@
1
- /**
2
- * Requesty Provider
3
- */
4
-
5
- import { getGeneratedModelsForProvider } from "../generated-access";
6
- import type { ModelCollection, ModelInfo } from "../schemas/index";
7
-
8
- export const REQUESTY_MODELS: Record<string, ModelInfo> =
9
- getGeneratedModelsForProvider("requesty");
10
-
11
- export const REQUESTY_PROVIDER: ModelCollection = {
12
- provider: {
13
- id: "requesty",
14
- name: "Requesty",
15
- description: "AI router with multiple provider support",
16
- protocol: "openai-chat",
17
- baseUrl: "https://router.requesty.ai/v1",
18
- defaultModelId: Object.keys(REQUESTY_MODELS)[0],
19
- capabilities: ["reasoning"],
20
- env: ["REQUESTY_API_KEY"],
21
- },
22
- models: REQUESTY_MODELS,
23
- };
@@ -1,23 +0,0 @@
1
- /**
2
- * SambaNova Provider
3
- */
4
-
5
- import { getGeneratedModelsForProvider } from "../generated-access";
6
- import type { ModelCollection, ModelInfo } from "../schemas/index";
7
-
8
- export const SAMBANOVA_MODELS: Record<string, ModelInfo> =
9
- getGeneratedModelsForProvider("sambanova");
10
- export const SAMBANOVA_DEFAULT_MODEL = Object.keys(SAMBANOVA_MODELS)[0];
11
-
12
- export const SAMBANOVA_PROVIDER: ModelCollection = {
13
- provider: {
14
- id: "sambanova",
15
- name: "SambaNova",
16
- description: "High-performance AI inference",
17
- protocol: "openai-chat",
18
- baseUrl: "https://api.sambanova.ai/v1",
19
- defaultModelId: SAMBANOVA_DEFAULT_MODEL,
20
- env: ["SAMBANOVA_API_KEY"],
21
- },
22
- models: SAMBANOVA_MODELS,
23
- };
@@ -1,34 +0,0 @@
1
- /**
2
- * SAP AI Core Provider
3
- */
4
-
5
- import { getGeneratedModelsForProvider } from "../generated-access";
6
- import type { ModelCollection, ModelInfo } from "../schemas/index";
7
-
8
- const DEFAULT_SAP_AI_CORE_MODEL_ID = "anthropic--claude-3.5-sonnet";
9
-
10
- export const SAP_AI_CORE_MODELS: Record<string, ModelInfo> = {
11
- [DEFAULT_SAP_AI_CORE_MODEL_ID]: {
12
- id: DEFAULT_SAP_AI_CORE_MODEL_ID,
13
- name: "Claude 3.5 Sonnet (SAP AI Core)",
14
- capabilities: ["streaming", "tools", "reasoning", "prompt-cache"],
15
- },
16
- ...getGeneratedModelsForProvider("sapaicore"),
17
- };
18
-
19
- export const SAP_AI_CORE_DEFAULT_MODEL =
20
- Object.keys(SAP_AI_CORE_MODELS)[0] ?? DEFAULT_SAP_AI_CORE_MODEL_ID;
21
-
22
- export const SAP_AI_CORE_PROVIDER: ModelCollection = {
23
- provider: {
24
- id: "sapaicore",
25
- name: "SAP AI Core",
26
- description: "SAP AI Core inference and orchestration platform",
27
- protocol: "openai-chat",
28
- baseUrl: "",
29
- defaultModelId: SAP_AI_CORE_DEFAULT_MODEL,
30
- capabilities: ["reasoning", "prompt-cache"],
31
- env: ["AICORE_SERVICE_KEY", "VCAP_SERVICES"],
32
- },
33
- models: SAP_AI_CORE_MODELS,
34
- };
@@ -1,35 +0,0 @@
1
- /**
2
- * Together AI Models
3
- */
4
-
5
- import { getGeneratedModelsForProvider } from "../generated-access";
6
- import type { ModelCollection, ModelInfo } from "../schemas/index";
7
-
8
- export const TOGETHER_MODELS: Record<string, ModelInfo> =
9
- getGeneratedModelsForProvider("together");
10
-
11
- export const TOGETHER_DEFAULT_MODEL =
12
- Object.keys(TOGETHER_MODELS)[0] ??
13
- "meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo";
14
-
15
- export const TOGETHER_PROVIDER: ModelCollection = {
16
- provider: {
17
- id: "together",
18
- name: "Together AI",
19
- description: "Fast inference for open-source models",
20
- protocol: "openai-chat",
21
- baseUrl: "https://api.together.xyz/v1",
22
- defaultModelId: TOGETHER_DEFAULT_MODEL,
23
- capabilities: ["reasoning"],
24
- env: ["TOGETHER_API_KEY"],
25
- },
26
- models: TOGETHER_MODELS,
27
- };
28
-
29
- export function getTogetherLlamaModels(): Record<string, ModelInfo> {
30
- return Object.fromEntries(
31
- Object.entries(TOGETHER_MODELS).filter(([id]) =>
32
- id.toLowerCase().includes("llama"),
33
- ),
34
- );
35
- }
@@ -1,23 +0,0 @@
1
- /**
2
- * Vercel AI Gateway Provider
3
- */
4
-
5
- import { getGeneratedModelsForProvider } from "../generated-access";
6
- import type { ModelCollection } from "../schemas/index";
7
-
8
- const VERCEL_AI_GATEWAY_MODELS =
9
- getGeneratedModelsForProvider("vercel-ai-gateway");
10
-
11
- export const VERCEL_AI_GATEWAY_PROVIDER: ModelCollection = {
12
- provider: {
13
- id: "vercel-ai-gateway",
14
- name: "Vercel AI Gateway",
15
- description: "Vercel's AI gateway service",
16
- protocol: "openai-chat",
17
- baseUrl: "https://ai-gateway.vercel.sh/v1",
18
- defaultModelId: Object.keys(VERCEL_AI_GATEWAY_MODELS)[0],
19
- capabilities: ["reasoning"],
20
- env: ["AI_GATEWAY_API_KEY"],
21
- },
22
- models: getGeneratedModelsForProvider("vercel-ai-gateway"),
23
- };
@@ -1,36 +0,0 @@
1
- /**
2
- * Google Vertex AI Models
3
- */
4
-
5
- import { getGeneratedModelsForProvider } from "../generated-access";
6
- import type { ModelCollection, ModelInfo } from "../schemas/index";
7
-
8
- export const VERTEX_MODELS: Record<string, ModelInfo> =
9
- getGeneratedModelsForProvider("vertex");
10
-
11
- const VERTEX_MODEL_IDS = Object.keys(VERTEX_MODELS);
12
- const DEFAULT_GEMINI_VERTEX_MODEL = VERTEX_MODEL_IDS.find(
13
- (id) => !id.includes("claude"),
14
- );
15
-
16
- export const VERTEX_DEFAULT_MODEL =
17
- DEFAULT_GEMINI_VERTEX_MODEL ?? VERTEX_MODEL_IDS[0] ?? "gemini-3-pro";
18
-
19
- export const VERTEX_PROVIDER: ModelCollection = {
20
- provider: {
21
- id: "vertex",
22
- name: "Google Vertex AI",
23
- description: "Google Cloud Vertex AI (Gemini and partner models)",
24
- protocol: "gemini",
25
- defaultModelId: VERTEX_DEFAULT_MODEL,
26
- capabilities: ["reasoning", "prompt-cache"],
27
- env: [
28
- "GCP_PROJECT_ID",
29
- "GOOGLE_CLOUD_PROJECT",
30
- "GOOGLE_APPLICATION_CREDENTIALS",
31
- "GEMINI_API_KEY",
32
- "GOOGLE_API_KEY",
33
- ],
34
- },
35
- models: VERTEX_MODELS,
36
- };
@@ -1,34 +0,0 @@
1
- /**
2
- * xAI Models
3
- */
4
-
5
- import { getGeneratedModelsForProvider } from "../generated-access";
6
- import type { ModelCollection, ModelInfo } from "../schemas/index";
7
-
8
- export const XAI_MODELS: Record<string, ModelInfo> =
9
- getGeneratedModelsForProvider("xai");
10
-
11
- export const XAI_DEFAULT_MODEL = Object.keys(XAI_MODELS)[0];
12
-
13
- export const XAI_PROVIDER: ModelCollection = {
14
- provider: {
15
- id: "xai",
16
- name: "xAI",
17
- description: "Creator of Grok AI assistant",
18
- protocol: "openai-chat",
19
- baseUrl: "https://api.x.ai/v1",
20
- defaultModelId: XAI_DEFAULT_MODEL,
21
- capabilities: ["reasoning"],
22
- env: ["XAI_API_KEY"],
23
- },
24
- models: XAI_MODELS,
25
- };
26
-
27
- export function getActiveXAIModels(): Record<string, ModelInfo> {
28
- return Object.fromEntries(
29
- Object.entries(XAI_MODELS).filter(
30
- ([, info]) =>
31
- !info.status || info.status === "active" || info.status === "preview",
32
- ),
33
- );
34
- }
@@ -1,25 +0,0 @@
1
- /**
2
- * Z.AI Models
3
- */
4
-
5
- import { getGeneratedModelsForProvider } from "../generated-access";
6
- import type { ModelCollection, ModelInfo } from "../schemas/index";
7
-
8
- export const ZAI_MODELS: Record<string, ModelInfo> =
9
- getGeneratedModelsForProvider("zai");
10
-
11
- export const ZAI_DEFAULT_MODEL = Object.keys(ZAI_MODELS)[0];
12
-
13
- export const ZAI_PROVIDER: ModelCollection = {
14
- provider: {
15
- id: "zai",
16
- name: "Z.AI",
17
- description: "Z.AI's family of LLMs",
18
- protocol: "openai-chat",
19
- baseUrl: "https://api.z.ai/api/paas/v4",
20
- defaultModelId: ZAI_DEFAULT_MODEL,
21
- capabilities: ["reasoning"],
22
- env: ["ZHIPU_API_KEY"],
23
- },
24
- models: ZAI_MODELS,
25
- };