Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nbonamy committed May 16, 2024
1 parent eb77b6c commit 76ad2bf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
7 changes: 1 addition & 6 deletions src/services/anthropic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,7 @@ export default class extends LlmEngine {
}

getVisionModels(): string[] {
return []
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
isVisionModel(model: string): boolean {
return true
return ['*']
}

getRountingModel(): string|null {
Expand Down
1 change: 0 additions & 1 deletion tests/unit/engine_anthropic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ test('Anthropic Load Models', async () => {
test('Anthropic Basic', async () => {
const anthropic = new Anthropic(store.config)
expect(anthropic.getName()).toBe('anthropic')
expect(anthropic.getVisionModels()).toStrictEqual([])
expect(anthropic.isVisionModel('claude-3-haiku-20240307')).toBe(true)
expect(anthropic.isVisionModel('claude-3-sonnet-20240229')).toBe(true)
expect(anthropic.isVisionModel('claude-3-opus-2024022')).toBe(true)
Expand Down

0 comments on commit 76ad2bf

Please sign in to comment.