Fix connection profile for CC setting incorrect source by preset

This commit is contained in:
Cohee
2024-09-19 23:12:33 +03:00
parent 5269725f1c
commit 9197ed7fce
2 changed files with 19 additions and 11 deletions

View File

@ -19,20 +19,21 @@ const DEFAULT_SETTINGS = {
selectedProfile: null,
};
const COMMON_COMMANDS = [
const CC_COMMANDS = [
'api',
'preset',
// Do not fix; CC needs to set the API twice because it could be overridden by the preset
'api',
'api-url',
'model',
];
const CC_COMMANDS = [
...COMMON_COMMANDS,
'proxy',
];
const TC_COMMANDS = [
...COMMON_COMMANDS,
'api',
'preset',
'api-url',
'model',
'instruct',
'context',
'instruct-state',