mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 04:11:10 -05:00
Add configuration picker on the modes page
This commit is contained in:
5
.changeset/healthy-oranges-drum.md
Normal file
5
.changeset/healthy-oranges-drum.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"roo-cline": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Add a dropdown to select the API configuration for a mode in the Prompts tab
|
||||||
@@ -43,6 +43,7 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
|
|||||||
customModePrompts,
|
customModePrompts,
|
||||||
customSupportPrompts,
|
customSupportPrompts,
|
||||||
listApiConfigMeta,
|
listApiConfigMeta,
|
||||||
|
currentApiConfigName,
|
||||||
enhancementApiConfigId,
|
enhancementApiConfigId,
|
||||||
setEnhancementApiConfigId,
|
setEnhancementApiConfigId,
|
||||||
mode,
|
mode,
|
||||||
@@ -609,6 +610,36 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
|
|||||||
</div>
|
</div>
|
||||||
{/* Mode settings */}
|
{/* Mode settings */}
|
||||||
<>
|
<>
|
||||||
|
<div style={{ marginBottom: "12px" }}>
|
||||||
|
<div style={{ fontWeight: "bold", marginBottom: "4px" }}>API Configuration</div>
|
||||||
|
<div style={{ marginBottom: "8px" }}>
|
||||||
|
<VSCodeDropdown
|
||||||
|
value={currentApiConfigName || ""}
|
||||||
|
onChange={(e: any) => {
|
||||||
|
const value = e.detail?.target?.value || e.target?.value
|
||||||
|
vscode.postMessage({
|
||||||
|
type: "loadApiConfiguration",
|
||||||
|
text: value,
|
||||||
|
})
|
||||||
|
}}
|
||||||
|
style={{ width: "100%" }}>
|
||||||
|
{(listApiConfigMeta || []).map((config) => (
|
||||||
|
<VSCodeOption key={config.id} value={config.name}>
|
||||||
|
{config.name}
|
||||||
|
</VSCodeOption>
|
||||||
|
))}
|
||||||
|
</VSCodeDropdown>
|
||||||
|
<div
|
||||||
|
style={{
|
||||||
|
fontSize: "12px",
|
||||||
|
marginTop: "5px",
|
||||||
|
color: "var(--vscode-descriptionForeground)",
|
||||||
|
}}>
|
||||||
|
Select which API configuration to use for this mode
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
{/* Show tools for all modes */}
|
{/* Show tools for all modes */}
|
||||||
<div style={{ marginBottom: "16px" }}>
|
<div style={{ marginBottom: "16px" }}>
|
||||||
<div
|
<div
|
||||||
|
|||||||
Reference in New Issue
Block a user