mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-27 21:58:51 +01:00
refactor: port anthropic/llm.js to typescript with supporting types in types/anthropic.ts and updated tests in llm.spec.js
This commit is contained in:
parent
796cb2b1ab
commit
f5bb44e652
3 changed files with 75 additions and 19 deletions
|
|
@ -211,13 +211,13 @@ describe('getLLMConfig', () => {
|
|||
it('should handle empty modelOptions', () => {
|
||||
expect(() => {
|
||||
getLLMConfig('test-api-key', {});
|
||||
}).toThrow("Cannot read properties of undefined (reading 'thinking')");
|
||||
}).toThrow('No modelOptions provided');
|
||||
});
|
||||
|
||||
it('should handle no options parameter', () => {
|
||||
expect(() => {
|
||||
getLLMConfig('test-api-key');
|
||||
}).toThrow("Cannot read properties of undefined (reading 'thinking')");
|
||||
}).toThrow('No modelOptions provided');
|
||||
});
|
||||
|
||||
it('should handle temperature, stop sequences, and stream settings', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue