mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-03-15 20:26:33 +01:00
🎮 feat: Bedrock Parameters for OpenAI GPT-OSS models (#11798)
Some checks failed
Docker Dev Branch Images Build / build (Dockerfile, lc-dev, node) (push) Has been cancelled
Docker Dev Branch Images Build / build (Dockerfile.multi, lc-dev-api, api-build) (push) Has been cancelled
Docker Dev Images Build / build (Dockerfile, librechat-dev, node) (push) Has been cancelled
Docker Dev Images Build / build (Dockerfile.multi, librechat-dev-api, api-build) (push) Has been cancelled
Sync Locize Translations & Create Translation PR / Sync Translation Keys with Locize (push) Has been cancelled
Sync Locize Translations & Create Translation PR / Create Translation PR on Version Published (push) Has been cancelled
Some checks failed
Docker Dev Branch Images Build / build (Dockerfile, lc-dev, node) (push) Has been cancelled
Docker Dev Branch Images Build / build (Dockerfile.multi, lc-dev-api, api-build) (push) Has been cancelled
Docker Dev Images Build / build (Dockerfile, librechat-dev, node) (push) Has been cancelled
Docker Dev Images Build / build (Dockerfile.multi, librechat-dev-api, api-build) (push) Has been cancelled
Sync Locize Translations & Create Translation PR / Sync Translation Keys with Locize (push) Has been cancelled
Sync Locize Translations & Create Translation PR / Create Translation PR on Version Published (push) Has been cancelled
Add OpenAI as a Bedrock provider so that selecting openai.gpt-oss-* models in the Bedrock agent UI renders the general parameter settings (temperature, top_p, max_tokens) instead of a blank panel. Also add token context lengths (128K) for gpt-oss-20b and gpt-oss-120b.
This commit is contained in:
parent
bf9aae0571
commit
12f45c76ee
3 changed files with 9 additions and 0 deletions
|
|
@ -310,6 +310,11 @@ const amazonModels = {
|
||||||
'nova-premier': 995000, // -5000 from max
|
'nova-premier': 995000, // -5000 from max
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const openAIBedrockModels = {
|
||||||
|
'openai.gpt-oss-20b': 128000,
|
||||||
|
'openai.gpt-oss-120b': 128000,
|
||||||
|
};
|
||||||
|
|
||||||
const bedrockModels = {
|
const bedrockModels = {
|
||||||
...anthropicModels,
|
...anthropicModels,
|
||||||
...mistralModels,
|
...mistralModels,
|
||||||
|
|
@ -319,6 +324,7 @@ const bedrockModels = {
|
||||||
...metaModels,
|
...metaModels,
|
||||||
...ai21Models,
|
...ai21Models,
|
||||||
...amazonModels,
|
...amazonModels,
|
||||||
|
...openAIBedrockModels,
|
||||||
};
|
};
|
||||||
|
|
||||||
const xAIModels = {
|
const xAIModels = {
|
||||||
|
|
|
||||||
|
|
@ -953,6 +953,7 @@ export const paramSettings: Record<string, SettingsConfiguration | undefined> =
|
||||||
[`${EModelEndpoint.bedrock}-${BedrockProviders.DeepSeek}`]: bedrockGeneral,
|
[`${EModelEndpoint.bedrock}-${BedrockProviders.DeepSeek}`]: bedrockGeneral,
|
||||||
[`${EModelEndpoint.bedrock}-${BedrockProviders.Moonshot}`]: bedrockMoonshot,
|
[`${EModelEndpoint.bedrock}-${BedrockProviders.Moonshot}`]: bedrockMoonshot,
|
||||||
[`${EModelEndpoint.bedrock}-${BedrockProviders.MoonshotAI}`]: bedrockMoonshot,
|
[`${EModelEndpoint.bedrock}-${BedrockProviders.MoonshotAI}`]: bedrockMoonshot,
|
||||||
|
[`${EModelEndpoint.bedrock}-${BedrockProviders.OpenAI}`]: bedrockGeneral,
|
||||||
[`${EModelEndpoint.bedrock}-${BedrockProviders.ZAI}`]: bedrockGeneral,
|
[`${EModelEndpoint.bedrock}-${BedrockProviders.ZAI}`]: bedrockGeneral,
|
||||||
[EModelEndpoint.google]: googleConfig,
|
[EModelEndpoint.google]: googleConfig,
|
||||||
};
|
};
|
||||||
|
|
@ -1006,6 +1007,7 @@ export const presetSettings: Record<
|
||||||
col1: bedrockMoonshotCol1,
|
col1: bedrockMoonshotCol1,
|
||||||
col2: bedrockMoonshotCol2,
|
col2: bedrockMoonshotCol2,
|
||||||
},
|
},
|
||||||
|
[`${EModelEndpoint.bedrock}-${BedrockProviders.OpenAI}`]: bedrockGeneralColumns,
|
||||||
[`${EModelEndpoint.bedrock}-${BedrockProviders.ZAI}`]: bedrockGeneralColumns,
|
[`${EModelEndpoint.bedrock}-${BedrockProviders.ZAI}`]: bedrockGeneralColumns,
|
||||||
[EModelEndpoint.google]: {
|
[EModelEndpoint.google]: {
|
||||||
col1: googleCol1,
|
col1: googleCol1,
|
||||||
|
|
|
||||||
|
|
@ -102,6 +102,7 @@ export enum BedrockProviders {
|
||||||
MistralAI = 'mistral',
|
MistralAI = 'mistral',
|
||||||
Moonshot = 'moonshot',
|
Moonshot = 'moonshot',
|
||||||
MoonshotAI = 'moonshotai',
|
MoonshotAI = 'moonshotai',
|
||||||
|
OpenAI = 'openai',
|
||||||
StabilityAI = 'stability',
|
StabilityAI = 'stability',
|
||||||
ZAI = 'zai',
|
ZAI = 'zai',
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue