mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-21 19:00:13 +01:00
🤖 feat: Custom Endpoint Agents (experimental) (#4627)
* wip: first pass, custom endpoint agents * chore: imports * chore: consolidate exports * fix: imports * feat: convert message.content array to strings for legacy format handling (deepseek/groq) * refactor: normalize ollama endpoint name * refactor: update mocking in isDomainAllowed.spec.js * refactor: update deepseekModels in tokens.js and tokens.spec.js
This commit is contained in:
parent
9437e95315
commit
2e519f9b57
23 changed files with 230 additions and 73 deletions
|
|
@ -357,6 +357,11 @@ describe('Meta Models Tests', () => {
|
|||
expect(getModelMaxTokens('meta/llama3')).toBe(8000);
|
||||
expect(getModelMaxTokens('meta/llama2')).toBe(4000);
|
||||
});
|
||||
|
||||
test('should match Deepseek model variations', () => {
|
||||
expect(getModelMaxTokens('deepseek-chat')).toBe(127500);
|
||||
expect(getModelMaxTokens('deepseek-coder')).toBe(127500);
|
||||
});
|
||||
});
|
||||
|
||||
describe('matchModelName', () => {
|
||||
|
|
@ -383,6 +388,11 @@ describe('Meta Models Tests', () => {
|
|||
expect(matchModelName('llama3', EModelEndpoint.bedrock)).toBe('llama3');
|
||||
expect(matchModelName('llama3.1:8b', EModelEndpoint.bedrock)).toBe('llama3.1:8b');
|
||||
});
|
||||
|
||||
test('should match Deepseek model variations', () => {
|
||||
expect(matchModelName('deepseek-chat')).toBe('deepseek');
|
||||
expect(matchModelName('deepseek-coder')).toBe('deepseek');
|
||||
});
|
||||
});
|
||||
|
||||
describe('processModelData with Meta models', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue