MCPcopy Create free account
hub / github.com/experdot/pointer / deleteLLMConfig

Function deleteLLMConfig

src/renderer/src/services/settingsService.ts:80–88  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

78}
79
80export function deleteLLMConfig(id: string): void {
81 const { settings } = stores
82 settings.removeLLMConfig(id)
83
84 // 如果删除的是默认配置,清除默认值
85 if (settings.settings.defaultLLMId === id) {
86 settings.setDefaultLLMId(undefined)
87 }
88}
89
90export function copyLLMConfig(config: LLMConfig): LLMConfig {
91 return createLLMConfig(

Callers

nothing calls this directly

Calls 2

removeLLMConfigMethod · 0.80
setDefaultLLMIdMethod · 0.80

Tested by

no test coverage detected