mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-02-08 18:44:22 +01:00
🚀 feat: Support for GPT-3.5 Turbo/0125 Model (#1704)
* 🚀 feat: Support for GPT-3.5 Turbo/0125 Model
* ci: fix tx test
This commit is contained in:
parent
30e143e96d
commit
8479ac7293
7 changed files with 15 additions and 4 deletions
|
|
@ -55,6 +55,7 @@ const openAIModels = {
|
|||
'gpt-3.5-turbo-16k': 16375, // -10 from max
|
||||
'gpt-3.5-turbo-16k-0613': 16375, // -10 from max
|
||||
'gpt-3.5-turbo-1106': 16375, // -10 from max
|
||||
'gpt-3.5-turbo-0125': 16375, // -10 from max
|
||||
'mistral-': 31990, // -10 from max
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -92,6 +92,9 @@ describe('getModelMaxTokens', () => {
|
|||
expect(getModelMaxTokens('gpt-4-0125-preview')).toBe(
|
||||
maxTokensMap[EModelEndpoint.openAI]['gpt-4-0125'],
|
||||
);
|
||||
expect(getModelMaxTokens('gpt-3.5-turbo-0125')).toBe(
|
||||
maxTokensMap[EModelEndpoint.openAI]['gpt-3.5-turbo-0125'],
|
||||
);
|
||||
});
|
||||
|
||||
test('should return correct tokens for Anthropic models', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue