Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,32 @@ export const OpenAICompatible = ({
</div>
</div>

<div>
<div className="flex items-center gap-1">
<Checkbox
checked={apiConfiguration?.openAiCustomModelInfo?.supportsNativeTools ?? true}
onChange={handleInputChange("openAiCustomModelInfo", (checked) => {
return {
...(apiConfiguration?.openAiCustomModelInfo || openAiModelInfoSaneDefaults),
supportsNativeTools: checked,
}
})}>
<span className="font-medium">
{t("settings:providers.customModel.nativeToolCalling.label")}
</span>
</Checkbox>
<StandardTooltip content={t("settings:providers.customModel.nativeToolCalling.description")}>
<i
className="codicon codicon-info text-vscode-descriptionForeground"
style={{ fontSize: "12px" }}
/>
</StandardTooltip>
</div>
<div className="text-sm text-vscode-descriptionForeground pt-1">
{t("settings:providers.customModel.nativeToolCalling.description")}
</div>
</div>

<div>
<VSCodeTextField
value={
Expand Down
4 changes: 4 additions & 0 deletions webview-ui/src/i18n/locales/en/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,10 @@
"label": "Prompt Caching",
"description": "Is this model capable of caching prompts?"
},
"nativeToolCalling": {
"label": "Native Tool Calling",
"description": "Enable OpenAI-style function calling for this model. Disable if the model does not support native tool calling and falls back to XML-based tool definitions."
},
"pricing": {
"input": {
"label": "Input Price",
Expand Down
Loading