🛰️ feat: Add Bedrock Parameter Settings for MoonshotAI and Z.AI Models (#11783)

- Introduced new model entries for 'moonshotai.kimi' and 'moonshotai.kimi-k2.5' in tokens.ts.
- Updated parameterSettings.ts to include configurations for MoonshotAI and ZAI providers.
- Enhanced schemas.ts by adding MoonshotAI and ZAI to the BedrockProviders enum for better integration.
This commit is contained in:
Danny Avila 2026-02-13 11:21:53 -05:00 committed by GitHub
parent dc89e00039
commit 276ac8d011
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 11 additions and 0 deletions

View file

@ -197,6 +197,8 @@ const moonshotModels = {
'moonshot.kimi-k2.5': 262144,
'moonshot.kimi-k2-thinking': 262144,
'moonshot.kimi-k2-0711': 131072,
'moonshotai.kimi': 262144,
'moonshotai.kimi-k2.5': 262144,
};
const metaModels = {

View file

@ -952,6 +952,8 @@ export const paramSettings: Record<string, SettingsConfiguration | undefined> =
[`${EModelEndpoint.bedrock}-${BedrockProviders.Amazon}`]: bedrockGeneral,
[`${EModelEndpoint.bedrock}-${BedrockProviders.DeepSeek}`]: bedrockGeneral,
[`${EModelEndpoint.bedrock}-${BedrockProviders.Moonshot}`]: bedrockMoonshot,
[`${EModelEndpoint.bedrock}-${BedrockProviders.MoonshotAI}`]: bedrockMoonshot,
[`${EModelEndpoint.bedrock}-${BedrockProviders.ZAI}`]: bedrockGeneral,
[EModelEndpoint.google]: googleConfig,
};
@ -1000,6 +1002,11 @@ export const presetSettings: Record<
col1: bedrockMoonshotCol1,
col2: bedrockMoonshotCol2,
},
[`${EModelEndpoint.bedrock}-${BedrockProviders.MoonshotAI}`]: {
col1: bedrockMoonshotCol1,
col2: bedrockMoonshotCol2,
},
[`${EModelEndpoint.bedrock}-${BedrockProviders.ZAI}`]: bedrockGeneralColumns,
[EModelEndpoint.google]: {
col1: googleCol1,
col2: googleCol2,

View file

@ -101,7 +101,9 @@ export enum BedrockProviders {
Meta = 'meta',
MistralAI = 'mistral',
Moonshot = 'moonshot',
MoonshotAI = 'moonshotai',
StabilityAI = 'stability',
ZAI = 'zai',
}
export const getModelKey = (endpoint: EModelEndpoint | string, model: string) => {