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';
|
import { MCPClient } from './connect';
|
||||||
|
|
||||||
export async function panelSaveHandler(client: MCPClient | undefined, data: any, webview: PostMessageble) {
|
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 {
|
try {
|
||||||
// 保存配置
|
// 保存配置
|
||||||
saveTabSaveConfig(data);
|
saveTabSaveConfig(data);
|
||||||
@ -36,16 +26,6 @@ export async function panelSaveHandler(client: MCPClient | undefined, data: any,
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function panelLoadHandler(client: MCPClient | undefined, webview: PostMessageble) {
|
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 {
|
try {
|
||||||
// 加载配置
|
// 加载配置
|
||||||
const config = loadTabSaveConfig();
|
const config = loadTabSaveConfig();
|
||||||
|
@ -3,16 +3,6 @@ import { loadConfig, saveConfig } from '../util';
|
|||||||
import { MCPClient } from './connect';
|
import { MCPClient } from './connect';
|
||||||
|
|
||||||
export async function settingSaveHandler(client: MCPClient | undefined, data: any, webview: PostMessageble) {
|
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 {
|
try {
|
||||||
// 保存配置
|
// 保存配置
|
||||||
saveConfig(data);
|
saveConfig(data);
|
||||||
@ -36,16 +26,6 @@ export async function settingSaveHandler(client: MCPClient | undefined, data: an
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function settingLoadHandler(client: MCPClient | undefined, webview: PostMessageble) {
|
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 {
|
try {
|
||||||
// 加载配置
|
// 加载配置
|
||||||
const config = loadConfig();
|
const config = loadConfig();
|
||||||
|
@ -3,7 +3,7 @@ export const llms = [
|
|||||||
id: 'deepseek',
|
id: 'deepseek',
|
||||||
name: 'DeepSeek',
|
name: 'DeepSeek',
|
||||||
baseUrl: 'https://api.deepseek.com/v1',
|
baseUrl: 'https://api.deepseek.com/v1',
|
||||||
models: ['deepseek-chat', 'deepseek-coder', 'deepseek-math'],
|
models: ['deepseek-chat', 'deepseek-reasoner'],
|
||||||
icon: '/images/deepseek.com.ico',
|
icon: '/images/deepseek.com.ico',
|
||||||
provider: 'DeepSeek',
|
provider: 'DeepSeek',
|
||||||
isOpenAICompatible: true,
|
isOpenAICompatible: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user