feat: model name update
This commit is contained in:
parent
7f8882eee1
commit
045c6bdfec
2 changed files with 4 additions and 4 deletions
2
extensions/vscode/package-lock.json
generated
2
extensions/vscode/package-lock.json
generated
|
|
@ -106,7 +106,7 @@
|
|||
"@aws-sdk/client-sagemaker-runtime": "^3.777.0",
|
||||
"@aws-sdk/credential-providers": "^3.778.0",
|
||||
"@continuedev/config-types": "^1.0.13",
|
||||
"@continuedev/config-yaml": "^1.0.71",
|
||||
"@continuedev/config-yaml": "^1.0.77",
|
||||
"@continuedev/fetch": "^1.0.4",
|
||||
"@continuedev/llm-info": "^1.0.8",
|
||||
"@continuedev/openai-adapters": "^1.0.18",
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ function ModelOption({
|
|||
function ModelSelect() {
|
||||
const dispatch = useAppDispatch();
|
||||
const selectedChatModel = useAppSelector(selectSelectedChatModel);
|
||||
const allModels = useAppSelector(
|
||||
const allChatModels = useAppSelector(
|
||||
(state) => state.config.config.modelsByRole.chat,
|
||||
);
|
||||
const buttonRef = useRef<HTMLButtonElement>(null);
|
||||
|
|
@ -141,7 +141,7 @@ function ModelSelect() {
|
|||
|
||||
useEffect(() => {
|
||||
setOptions(
|
||||
allModels
|
||||
allChatModels
|
||||
.filter((m) => !m.roles || m.roles.includes("chat"))
|
||||
.map((model) => {
|
||||
return {
|
||||
|
|
@ -151,7 +151,7 @@ function ModelSelect() {
|
|||
};
|
||||
}),
|
||||
);
|
||||
}, [allModels]);
|
||||
}, [allChatModels]);
|
||||
|
||||
useEffect(() => {
|
||||
const handleKeyDown = (event: KeyboardEvent) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue