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:
Dustin Healy 2025-08-30 23:01:14 -07:00 committed by Danny Avila
parent 796cb2b1ab
commit f5bb44e652
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956
3 changed files with 75 additions and 19 deletions

View file

@ -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', () => {