mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-21 10:50:14 +01:00
🤖 feat: GPT-5.1 (#10491)
This commit is contained in:
parent
e71c48ec3d
commit
6522789f5b
8 changed files with 50 additions and 14 deletions
|
|
@ -345,7 +345,7 @@ ${memory ?? 'No existing memories'}`;
|
|||
};
|
||||
|
||||
// Handle GPT-5+ models
|
||||
if ('model' in finalLLMConfig && /\bgpt-[5-9]\b/i.test(finalLLMConfig.model ?? '')) {
|
||||
if ('model' in finalLLMConfig && /\bgpt-[5-9](?:\.\d+)?\b/i.test(finalLLMConfig.model ?? '')) {
|
||||
// Remove temperature for GPT-5+ models
|
||||
delete finalLLMConfig.temperature;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue