mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-09 22:31:08 +00:00
fix(vscode-lm) fix api-config profile update for vscode lm
This commit is contained in:
parent
685ccbb7d1
commit
3ecc0e66ec
1 changed files with 9 additions and 5 deletions
|
|
@ -639,12 +639,16 @@ const ApiOptions = ({ apiErrorMessage, modelIdErrorMessage }: ApiOptionsProps) =
|
|||
`${apiConfiguration.vsCodeLmModelSelector.vendor ?? ""}/${apiConfiguration.vsCodeLmModelSelector.family ?? ""}` :
|
||||
""}
|
||||
onChange={(value: unknown) => {
|
||||
const valueStr = (value as DropdownOption).value;
|
||||
const valueStr = (value as DropdownOption)?.value;
|
||||
if (!valueStr) {
|
||||
return
|
||||
}
|
||||
const [vendor, family] = valueStr.split('/');
|
||||
setApiConfiguration({
|
||||
...apiConfiguration,
|
||||
vsCodeLmModelSelector: valueStr ? { vendor, family } : undefined
|
||||
});
|
||||
handleInputChange("vsCodeLmModelSelector")({
|
||||
target: {
|
||||
value: { vendor, family }
|
||||
}
|
||||
})
|
||||
}}
|
||||
style={{ width: "100%" }}
|
||||
options={[
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue