(config: LLMConfig)
| 88 | } |
| 89 | |
| 90 | export function copyLLMConfig(config: LLMConfig): LLMConfig { |
| 91 | return createLLMConfig( |
| 92 | { |
| 93 | type: 'item', |
| 94 | name: `${config.name} 副本`, |
| 95 | baseUrl: config.baseUrl, |
| 96 | apiKey: config.apiKey, |
| 97 | modelName: config.modelName |
| 98 | }, |
| 99 | config.id |
| 100 | ) |
| 101 | } |
| 102 | |
| 103 | export function createLLMConfigFolder( |
| 104 | name?: string, |
nothing calls this directly
no test coverage detected