From d3bb6ff456eb95eee311058b54878430cbde0027 Mon Sep 17 00:00:00 2001 From: Evan <58194240+celestial-vault@users.noreply.github.com> Date: Wed, 12 Mar 2025 19:00:40 -0700 Subject: [PATCH] Configure Computer Use Openai Compatible (#2215) * Set up branch * feat: Allow to configure computer use for openapi compatible provider (#1923) * feat: Allow to set computerUse for OpenAI Compatible provider * Update webview-ui/src/components/settings/ApiOptions.tsx Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> --------- Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> --------- Co-authored-by: FlavioInacta Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com> --- .changeset/violet-socks-obey.md | 5 +++++ webview-ui/src/components/settings/ApiOptions.tsx | 15 +++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 .changeset/violet-socks-obey.md diff --git a/.changeset/violet-socks-obey.md b/.changeset/violet-socks-obey.md new file mode 100644 index 0000000000..962369fefb --- /dev/null +++ b/.changeset/violet-socks-obey.md @@ -0,0 +1,5 @@ +--- +"claude-dev": minor +--- + +Allow to set computerUse for OpenAI Compatible provider diff --git a/webview-ui/src/components/settings/ApiOptions.tsx b/webview-ui/src/components/settings/ApiOptions.tsx index 1586b9893e..f5187c178f 100644 --- a/webview-ui/src/components/settings/ApiOptions.tsx +++ b/webview-ui/src/components/settings/ApiOptions.tsx @@ -803,6 +803,21 @@ const ApiOptions = ({ showModelOptions, apiErrorMessage, modelIdErrorMessage, is }}> Supports Images + { + const isChecked = e.target.checked === true + let modelInfo = apiConfiguration?.openAiModelInfo + ? apiConfiguration.openAiModelInfo + : { ...openAiModelInfoSaneDefaults } + modelInfo = { ...modelInfo, supportsComputerUse: isChecked } + setApiConfiguration({ + ...apiConfiguration, + openAiModelInfo: modelInfo, + }) + }}> + Supports Computer Use +