(config: ModelConfig)
| 206 | } |
| 207 | |
| 208 | export function copyModelConfig(config: ModelConfig): ModelConfig { |
| 209 | return createModelConfig( |
| 210 | { |
| 211 | type: 'item', |
| 212 | name: `${config.name} 副本`, |
| 213 | systemPrompt: config.systemPrompt, |
| 214 | topP: config.topP, |
| 215 | temperature: config.temperature |
| 216 | }, |
| 217 | config.id |
| 218 | ) |
| 219 | } |
| 220 | |
| 221 | export function createModelConfigFolder( |
| 222 | name?: string, |
nothing calls this directly
no test coverage detected