Skip to content

Commit 98c1ae1

Browse files
authored
Fix Anthropic model metadata (#9825)
Address #9785 The model's metadata is used to determine whether it's allowed for selection in the chat input. Anthropic doesn't return any data on model capabilities so we've been hard-coding them. This is a regression when building the model metadata after fetching the model listing where it omits setting the capabilities. Agent and Edit modes need the model to support `agentMode` and `toolCalling` to display in the list. ### Release Notes #### New Features - N/A #### Bug Fixes - N/A ### QA Notes This only affected Anthropic. Bedrock and the other Vercel backed providers use the proper values.
1 parent 0ae847d commit 98c1ae1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/positron-assistant/src/anthropic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ export class AnthropicLanguageModel implements positron.ai.LanguageModelChatProv
333333
version: model.created_at,
334334
maxInputTokens: maxInputTokens,
335335
maxOutputTokens: maxOutputTokens,
336-
capabilities: {},
336+
capabilities: this.capabilities,
337337
isDefault: isFirst,
338338
isUserSelectable: true,
339339
});

0 commit comments

Comments
 (0)