continue-custom/core/llm
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
..
llms feat: model updates and + z.ai (#10638) 2026-02-20 00:35:44 -08:00
rules feat: remove applied rules from chat history and dev data 2025-11-04 12:42:01 -08:00
templates feat: sonnet lazy apply prompt should not change comments (#8665) 2025-11-17 11:05:22 -08:00
utils fix: update stale comment for Claude Opus 4.5 pricing 2026-02-18 01:23:22 +00:00
asyncEncoder.test.ts error on no-floating-promises in core 2025-04-29 15:11:35 -07:00
asyncEncoder.ts chore: apply eslint to vscode and core 2024-11-11 07:38:52 -08:00
autodetect.ts feat: model updates and + z.ai (#10638) 2026-02-20 00:35:44 -08:00
autodetect.vitest.ts refactor: code cleanup for next edit (#7312) 2025-08-22 17:44:37 -04:00
constants.ts feat: clean up anthropic messaging (#7799) 2025-09-24 12:57:10 -07:00
countTokens.test.ts fix: move token adjustment to separate module 2026-01-31 15:17:30 -08:00
countTokens.ts fix: move token adjustment to separate module 2026-01-31 15:17:30 -08:00
defaultSystemMessages.ts feat: upgrade grok code fast 1 (#8475) 2025-11-03 12:33:05 -08:00
getAdjustedTokenCount.test.ts fix: move token adjustment to separate module 2026-01-31 15:17:30 -08:00
getAdjustedTokenCount.ts fix: mistral model matching 2026-02-02 22:12:07 -08:00
index.test.ts feat: autodetect qwen2.5vl image support 2025-09-15 11:34:13 +02:00
index.ts fix: add reasoning content field support in chat body (#10027) 2026-02-02 22:35:49 -08:00
llamaTokenizer.d.ts npx prettier --check "core/**/*.{js,jsx,ts,tsx,json,css,md}" --ignore-p 2025-05-25 18:34:39 -07:00
llamaTokenizer.js npx prettier --check "core/**/*.{js,jsx,ts,tsx,json,css,md}" --ignore-p 2025-05-25 18:34:39 -07:00
llamaTokenizer.mjs prettier update 2025-06-11 18:01:41 -07:00
llamaTokenizerWorkerPool.mjs prettier update 2025-06-11 18:01:41 -07:00
llm-pre-fetch.vitest.ts feat: clean up anthropic messaging (#7799) 2025-09-24 12:57:10 -07:00
llm.test.ts Skip Gemini test due to @google/genai getReader issue 2025-12-05 18:19:57 +00:00
logFormatter.test.ts improv: cost breakdown in continue console 2025-07-07 18:02:45 -07:00
logFormatter.ts LLMLogFormatter: rich logging to an output stream 2025-04-07 14:11:38 -04:00
logger.ts Add rich logging of LLM interactions 2025-04-07 14:11:38 -04:00
messages.ts nuke flattenMessages 2025-07-09 16:46:24 -07:00
openaiTypeConverters.test.ts fix: OpenAI Responses API parallel tool calls losing call_ids (#9659) 2026-02-02 21:45:48 -08:00
openaiTypeConverters.ts fix: add reasoning content field support in chat body (#10027) 2026-02-02 22:35:49 -08:00
streamChat.ts fix: useSlashCommand for all slash commands 2025-11-03 23:44:05 -08:00
tiktokenWorkerPool.mjs prettier update 2025-06-11 18:01:41 -07:00
toolSupport.test.ts fix: check exclusions on both raw and normalized model names for LM Studio 2026-02-08 10:09:33 -08:00
toolSupport.ts feat: model updates and + z.ai (#10638) 2026-02-20 00:35:44 -08:00