* 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
13 lines
303 B
TypeScript
13 lines
303 B
TypeScript
import { LLMOptions } from "../../index.js";
|
|
|
|
import OpenAI from "./OpenAI.js";
|
|
|
|
class zAI extends OpenAI {
|
|
static providerName = "zAI";
|
|
static defaultOptions: Partial<LLMOptions> = {
|
|
apiBase: "https://api.z.ai/api/paas/v4/",
|
|
useLegacyCompletionsEndpoint: false,
|
|
};
|
|
}
|
|
|
|
export default zAI;
|