mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-05-24 07:30:52 +08:00
fix: 修复本地模型验证失效的问题(resolve #145)
This commit is contained in:
@@ -654,7 +654,12 @@ export const llmApi = {
|
||||
/**
|
||||
* 验证 API Key(支持自定义 baseUrl 和 model)
|
||||
*/
|
||||
validateApiKey: (provider: string, apiKey: string, baseUrl?: string, model?: string): Promise<boolean> => {
|
||||
validateApiKey: (
|
||||
provider: string,
|
||||
apiKey: string,
|
||||
baseUrl?: string,
|
||||
model?: string
|
||||
): Promise<{ success: boolean; error?: string }> => {
|
||||
return ipcRenderer.invoke('llm:validateApiKey', provider, apiKey, baseUrl, model)
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user