Skip to content

Commit a5b83d8

Browse files
Merge pull request #161 from rijnb/main
Do not show dated models
2 parents 2794c31 + 0b3d827 commit a5b83d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

types/openai.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ export const OpenAIModels: Record<string, OpenAIModel> = {
6363

6464
const normalizeModelId = (modelId: string): string => {
6565
// Strip a trailing date suffix like -YYYY-MM-DD (e.g., gpt-5-nano-2025-02-02 -> gpt-5-nano).
66-
return modelId.replace(/-\d{4}-\d{2}-\d{2}$/i, "")
66+
// For now, we won't do this, because it seems dated models are not always well supported.
67+
// Code to nowmalize: return modelId.replace(/-\d{4}-\d{2}-\d{2}$/i, "")
68+
return modelId
6769
}
6870

6971
export const maxInputTokensForModel = (modelId: string) => {

0 commit comments

Comments
 (0)