Files
ycode/src/shared/assistant-model.ts
T

7 lines
329 B
TypeScript

import type { CustomModelProfile } from './models'
/** Freeze the selected profile's identity before a turn can outlive its settings. */
export function freezeAssistantModelMetadata(model: Pick<CustomModelProfile, 'id' | 'name'>): { modelId: string; modelName: string } {
return { modelId: model.id, modelName: model.name }
}