Просмотр исходного кода

fix: dynamically set computer use value

Frank 1 год назад
Родитель
Сommit
eb78332d4e
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/core/webview/ClineProvider.ts

+ 1 - 0
src/core/webview/ClineProvider.ts

@@ -926,6 +926,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
 						maxTokens: rawModel.maxTokensOutput,
 						contextWindow: rawModel.maxTokensInput,
 						supportsImages: rawModel.capabilities?.includes("input:image"),
+						supportsComputerUse: rawModel.capabilities?.includes("computer_use"),
 						supportsPromptCache: rawModel.capabilities?.includes("caching"),
 						inputPrice: parsePrice(rawModel.pricePerToken?.input),
 						outputPrice: parsePrice(rawModel.pricePerToken?.output),