update interface
This commit is contained in:
parent
6416f293a4
commit
d44e9bb5c9
@ -3,16 +3,6 @@ import { loadConfig, loadTabSaveConfig, saveConfig, saveTabSaveConfig } from '..
|
||||
import { MCPClient } from './connect';
|
||||
|
||||
export async function panelSaveHandler(client: MCPClient | undefined, data: any, webview: PostMessageble) {
|
||||
if (!client) {
|
||||
const connectResult = {
|
||||
code: 501,
|
||||
msg: 'mcp client 尚未连接'
|
||||
};
|
||||
webview.postMessage({ command: 'ping', data: connectResult });
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
try {
|
||||
// 保存配置
|
||||
saveTabSaveConfig(data);
|
||||
@ -36,16 +26,6 @@ export async function panelSaveHandler(client: MCPClient | undefined, data: any,
|
||||
}
|
||||
|
||||
export async function panelLoadHandler(client: MCPClient | undefined, webview: PostMessageble) {
|
||||
if (!client) {
|
||||
const connectResult = {
|
||||
code: 501,
|
||||
msg: 'mcp client 尚未连接'
|
||||
};
|
||||
webview.postMessage({ command: 'ping', data: connectResult });
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
try {
|
||||
// 加载配置
|
||||
const config = loadTabSaveConfig();
|
||||
|
@ -3,16 +3,6 @@ import { loadConfig, saveConfig } from '../util';
|
||||
import { MCPClient } from './connect';
|
||||
|
||||
export async function settingSaveHandler(client: MCPClient | undefined, data: any, webview: PostMessageble) {
|
||||
if (!client) {
|
||||
const connectResult = {
|
||||
code: 501,
|
||||
msg: 'mcp client 尚未连接'
|
||||
};
|
||||
webview.postMessage({ command: 'ping', data: connectResult });
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
try {
|
||||
// 保存配置
|
||||
saveConfig(data);
|
||||
@ -36,16 +26,6 @@ export async function settingSaveHandler(client: MCPClient | undefined, data: an
|
||||
}
|
||||
|
||||
export async function settingLoadHandler(client: MCPClient | undefined, webview: PostMessageble) {
|
||||
if (!client) {
|
||||
const connectResult = {
|
||||
code: 501,
|
||||
msg: 'mcp client 尚未连接'
|
||||
};
|
||||
webview.postMessage({ command: 'ping', data: connectResult });
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
try {
|
||||
// 加载配置
|
||||
const config = loadConfig();
|
||||
|
@ -3,7 +3,7 @@ export const llms = [
|
||||
id: 'deepseek',
|
||||
name: 'DeepSeek',
|
||||
baseUrl: 'https://api.deepseek.com/v1',
|
||||
models: ['deepseek-chat', 'deepseek-coder', 'deepseek-math'],
|
||||
models: ['deepseek-chat', 'deepseek-reasoner'],
|
||||
icon: '/images/deepseek.com.ico',
|
||||
provider: 'DeepSeek',
|
||||
isOpenAICompatible: true,
|
||||
|
Loading…
x
Reference in New Issue
Block a user