continue-custom/core/llm/llms
Dallin Romney a2c1fe6897
feat: model updates and + z.ai (#10638)
* Add latest model definitions across providers

Add new models for OpenAI (gpt-4.1, gpt-5.2, codex-mini, o1/o3/o4-mini),
Gemini (2.5 stable, 2.5-flash-lite, 3-flash-preview), Mistral (devstral,
magistral, ministral, mistral-nemo), xAI (grok-4-fast, grok-4-1-fast,
grok-3-fast), and Bedrock (Claude 4.5/4.6, Nova, Llama 4, DeepSeek).

Update tool support and reasoning detection for the new model families.

* Add Z.ai (GLM) provider, Kimi K2/K2.5 models, and fix OpenRouter tool support bug

- Add Z.ai as a new provider with GLM-5, GLM-4.7, GLM-4-plus, GLM-4.5 models
- Add Kimi K2 and K2.5 model packages to Moonshot provider
- Fix variable shadowing bug in OpenRouter tool support where loop
  variables shadowed the outer model parameter, causing specificModels
  and supportedContains checks to always return true
- Add moonshotai/kimi and zai-org/glm to OpenRouter supported prefixes
- Add Z.ai and Moonshot to docs navigation

* Clean up unnecessary import aliases for zAI

* Add Z.ai Coding Plan endpoint note to docs

* Replace placeholder zai.png icon with proper zAI.svg

* Add zAI provider to openai-adapters

* Fix Z.ai API key URL
2026-02-20 00:35:44 -08:00
..
stubs Add User-Agent headers to Continue Proxy and CLI requests (#8532) 2025-11-02 20:33:06 -08:00
test don't support fim through continue-proxy to vllm 2025-05-24 14:56:03 -07:00
test-utils remove dumb test 2025-07-17 23:09:50 -07:00
Anthropic.ts feat: add Claude Sonnet 4.6 and Claude Opus 4.6 models 2026-02-17 11:49:21 -08:00
Anthropic.vitest.ts change error name to use config.yaml instead of config.json 2026-02-02 21:53:05 +05:30
Asksage.ts refactor some interface imports, and fixed a bug in the CLI tooling. File reads weren't working, but now are. 2026-01-23 12:22:49 -06:00
Azure.ts revert providers to original 2025-07-17 20:51:23 -07:00
Bedrock.test.ts fix: 🎨 2025-09-09 09:02:14 -07:00
Bedrock.ts run prettier 2025-11-21 13:14:31 +05:30
BedrockImport.ts JSON parsing progress 2025-06-04 15:16:41 -07:00
Cerebras.ts Update available Cerebras models + handling functions (#6915) 2025-07-31 18:57:16 -07:00
Cloudflare.ts use fetch package for streaming utils 2025-05-16 10:33:17 -07:00
Cohere.ts Handle potential case where assistant content is already a block 2025-11-11 15:14:36 -03:00
Cohere.vitest.ts feat(cohere): add support from Reasoning/Vision/Translate models 2025-11-04 20:25:44 -03:00
CometAPI.ts feat: add Claude Sonnet 4.6 and Claude Opus 4.6 models 2026-02-17 11:49:21 -08:00
CustomLLM.ts Enable Custom LLMs to use Tools by allowing customStreamChat to return ChatMessages as well as strings 2025-03-05 17:23:43 -05:00
DeepInfra.ts Remove embeddings folder 2024-12-08 16:16:59 -08:00
Deepseek.ts fix: add reasoning content field support in chat body 2026-01-30 14:25:13 +05:30
Docker.ts add URL trailing slash to some providers 2025-07-17 22:43:21 -07:00
Fireworks.ts add URL trailing slash to some providers 2025-07-17 22:43:21 -07:00
Fireworks.vitest.ts add URL trailing slash to some providers 2025-07-17 22:43:21 -07:00
Flowise.ts catch client abort errors 2025-05-15 18:45:55 -07:00
FunctionNetwork.ts Remove embeddings folder 2024-12-08 16:16:59 -08:00
gemini-types.ts fix types in core gemini llm 2025-11-25 08:59:39 +05:30
Gemini.ts feat: use google/genai sdk for streaming gemini & vertex responses (#8907) 2025-12-04 13:03:57 -08:00
Groq.ts chore: remove deprecated and add new llama3.3 2025-01-13 19:11:56 +07:00
Groq.vitest.ts prettier 2025-07-17 20:52:31 -07:00
HuggingFaceInferenceAPI.ts use fetch package for streaming utils 2025-05-16 10:33:17 -07:00
HuggingFaceTEI.ts respect embeddings batching for bedrock, hugginface, sagemaker 2025-06-17 13:11:20 -07:00
HuggingFaceTGI.ts fix: assign to contextLength basellm getter 2025-07-19 19:47:01 +02:00
Inception.ts feat: add Mercury Apply endpoint support to Inception LLM (#7827) 2025-09-18 23:44:25 -07:00
index.ts feat: model updates and + z.ai (#10638) 2026-02-20 00:35:44 -08:00
Kindo.ts add URL trailing slash to some providers 2025-07-17 22:43:21 -07:00
Lemonade.ts Lemonade Integration (#7749) 2025-09-17 10:15:33 -07:00
LlamaCpp.ts Merge pull request #5726 from ipaddicting/fix-5530 2025-05-30 18:57:54 -07:00
Llamafile.ts remove EmbeddingsProvider 2024-12-08 12:30:35 -08:00
LlamaStack.ts fix style 2025-06-18 11:10:13 -07:00
llm.ts fix config yaml conflicts 2024-12-13 15:41:12 -08:00
llmTestHarness.ts fix type error actually 2025-07-17 22:23:25 -07:00
LMStudio.ts remove EmbeddingsProvider 2024-12-08 12:30:35 -08:00
Mimo.ts chore: format files with prettier 2026-01-05 14:48:28 +00:00
Mistral.ts feat: vertex ai openai adapter (#6736) 2025-07-24 15:38:57 -07:00
Mock.ts fix tests 2025-04-29 13:53:46 -07:00
Moonshot.ts use fetch package for streaming utils 2025-05-16 10:33:17 -07:00
Msty.ts remove EmbeddingsProvider 2024-12-08 12:30:35 -08:00
NCompass.ts add URL trailing slash to some providers 2025-07-17 22:43:21 -07:00
Nebius.ts Nebius info actualized 2025-02-13 16:34:03 +01:00
Nous.ts feat: add Nous Research Hermes models as provider 2026-01-28 15:48:41 -05:00
Novita.ts npx prettier --check "core/**/*.{js,jsx,ts,tsx,json,css,md}" --ignore-p 2025-05-25 18:34:39 -07:00
Nvidia.ts Remove embeddings folder 2024-12-08 16:16:59 -08:00
Ollama.ts Merge pull request #8433 from Psanyi89/psanyi89_n8n_response_parsing 2025-11-21 18:28:04 -08:00
OpenAI-compatible-core.vitest.ts feat: Add CometAPI as a model provider 2025-09-17 23:04:09 +08:00
OpenAI-compatible.vitest.ts test: add Mimo provider to OpenAI-compatible test suite 2026-01-05 04:12:54 +02:00
OpenAI.test.ts feat: gpt-5 support (#7054) 2025-08-07 13:36:26 -07:00
OpenAI.ts fix: add reasoning content field support in chat body 2026-01-30 14:25:13 +05:30
OpenAI.vitest.ts try to fix tests again 2025-07-28 17:57:31 -07:00
OpenRouter.ts feat: Integrate OpenAI Responses API to enable GPT-5 features (#7891) 2025-10-23 13:54:43 -07:00
OpenRouter.vitest.ts chore: sonnet 4.5 preference 2025-12-02 12:35:27 -08:00
OVHcloud.ts feat: Add new OVHcloud models 2026-01-19 10:39:17 -05:00
Relace.ts relace support prediction 2025-04-21 11:13:06 -07:00
Replicate.ts Fixed the integration issues with the Replicate provider 2025-10-23 15:16:46 +01:00
SageMaker.ts respect embeddings batching for bedrock, hugginface, sagemaker 2025-06-17 13:11:20 -07:00
SambaNova.ts fix: Update sambanova models (#7901) 2025-09-22 13:53:26 -07:00
Scaleway.ts feat(scaleway): update supported models 2025-09-08 16:01:19 +02:00
SiliconFlow.ts use fetch package for streaming utils 2025-05-16 10:33:17 -07:00
TARS.ts feat: Add Tetrate Agent Router Service as a provider (#7136) 2025-08-29 13:11:17 -07:00
Test.ts delete artifacts 2025-06-30 15:27:48 -07:00
TextGenWebUI.ts remove EmbeddingsProvider 2024-12-08 12:30:35 -08:00
Together.ts remove EmbeddingsProvider 2024-12-08 12:30:35 -08:00
TransformersJsEmbeddingsProvider.ts fix embed model titles 2025-03-24 23:47:00 -07:00
Venice.ts add URL trailing slash to some providers 2025-07-17 22:43:21 -07:00
VertexAI.ts feat: use google/genai sdk for streaming gemini & vertex responses (#8907) 2025-12-04 13:03:57 -08:00
Vllm.ts Merge pull request #7393 from continuedev/dallin/autodetect-naming 2025-08-25 15:02:16 -07:00
Voyage.ts use safe parsed schema 2025-08-12 00:47:34 +05:30
WatsonX.ts Watsonx image support (#8324) 2025-10-22 18:42:31 -07:00
xAI.ts feat: grok model additions 2025-09-23 14:08:17 -07:00
zAI.ts feat: model updates and + z.ai (#10638) 2026-02-20 00:35:44 -08:00