mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 04:11:10 -05:00
Merge pull request #394 from samhvw8/fix/api-config-vscode-lm
fix(vscode-lm) fix api-config profile update for vscode lm
This commit is contained in:
@@ -639,12 +639,16 @@ const ApiOptions = ({ apiErrorMessage, modelIdErrorMessage }: ApiOptionsProps) =
|
|||||||
`${apiConfiguration.vsCodeLmModelSelector.vendor ?? ""}/${apiConfiguration.vsCodeLmModelSelector.family ?? ""}` :
|
`${apiConfiguration.vsCodeLmModelSelector.vendor ?? ""}/${apiConfiguration.vsCodeLmModelSelector.family ?? ""}` :
|
||||||
""}
|
""}
|
||||||
onChange={(value: unknown) => {
|
onChange={(value: unknown) => {
|
||||||
const valueStr = (value as DropdownOption).value;
|
const valueStr = (value as DropdownOption)?.value;
|
||||||
|
if (!valueStr) {
|
||||||
|
return
|
||||||
|
}
|
||||||
const [vendor, family] = valueStr.split('/');
|
const [vendor, family] = valueStr.split('/');
|
||||||
setApiConfiguration({
|
handleInputChange("vsCodeLmModelSelector")({
|
||||||
...apiConfiguration,
|
target: {
|
||||||
vsCodeLmModelSelector: valueStr ? { vendor, family } : undefined
|
value: { vendor, family }
|
||||||
});
|
}
|
||||||
|
})
|
||||||
}}
|
}}
|
||||||
style={{ width: "100%" }}
|
style={{ width: "100%" }}
|
||||||
options={[
|
options={[
|
||||||
|
|||||||
Reference in New Issue
Block a user