mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-14 22:48:10 +01:00
🛰️ 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:
parent
dc89e00039
commit
276ac8d011
3 changed files with 11 additions and 0 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue