This commit is contained in:
bobo.yang 2023-10-01 17:03:56 +08:00
parent ec7de83529
commit 676f3aef1c

View File

@ -2,7 +2,7 @@ import * as vscode from 'vscode';
import CommandManager from '../command/commandManager';
import { MessageHandler } from './messageHandler';
import { regInMessage, regOutMessage } from '../util/reg_messages';
import { getValidModels } from './regValidModelList';
import { ApiKeyManager } from '../util/apiKey';
regInMessage({command: 'regCommandList'});
@ -50,7 +50,7 @@ export async function sendCommandListByDevChatRun() {
}
export async function updateChatModels() {
const modelList = await getValidModels();
const modelList = await ApiKeyManager.getValidModels();
MessageHandler.sendMessage(existPannel!, { command: 'regModelList', result: modelList });
}