Files
oh-my-opencode/src/shared/model-normalization.ts
T

9 lines
237 B
TypeScript
Raw Normal View History

export function normalizeModel(model?: string): string | undefined {
const trimmed = model?.trim()
return trimmed || undefined
}
export function normalizeModelID(modelID: string): string {
return modelID.replace(/\.(\d+)/g, "-$1")
}