File tree Expand file tree Collapse file tree 2 files changed +36
-0
lines changed
webview-ui/src/components/prompts Expand file tree Collapse file tree 2 files changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " roo-cline " : patch
3+ ---
4+
5+ Add a dropdown to select the API configuration for a mode in the Prompts tab
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
4343 customModePrompts,
4444 customSupportPrompts,
4545 listApiConfigMeta,
46+ currentApiConfigName,
4647 enhancementApiConfigId,
4748 setEnhancementApiConfigId,
4849 mode,
@@ -609,6 +610,36 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
609610 </ div >
610611 { /* Mode settings */ }
611612 < >
613+ < div style = { { marginBottom : "12px" } } >
614+ < div style = { { fontWeight : "bold" , marginBottom : "4px" } } > API Configuration</ div >
615+ < div style = { { marginBottom : "8px" } } >
616+ < VSCodeDropdown
617+ value = { currentApiConfigName || "" }
618+ onChange = { ( e : any ) => {
619+ const value = e . detail ?. target ?. value || e . target ?. value
620+ vscode . postMessage ( {
621+ type : "loadApiConfiguration" ,
622+ text : value ,
623+ } )
624+ } }
625+ style = { { width : "100%" } } >
626+ { ( listApiConfigMeta || [ ] ) . map ( ( config ) => (
627+ < VSCodeOption key = { config . id } value = { config . name } >
628+ { config . name }
629+ </ VSCodeOption >
630+ ) ) }
631+ </ VSCodeDropdown >
632+ < div
633+ style = { {
634+ fontSize : "12px" ,
635+ marginTop : "5px" ,
636+ color : "var(--vscode-descriptionForeground)" ,
637+ } } >
638+ Select which API configuration to use for this mode
639+ </ div >
640+ </ div >
641+ </ div >
642+
612643 { /* Show tools for all modes */ }
613644 < div style = { { marginBottom : "16px" } } >
614645 < div
You can’t perform that action at this time.
0 commit comments