Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

fix: read the Codex catalog display_name in normalizeModels (#731)

Alfredo Lopez96212fbfb8a7
diff --git a/codex-llm-proxy/src/codexTransport.ts b/codex-llm-proxy/src/codexTransport.ts
index 930aee47e..32df9d60c 100644
--- a/codex-llm-proxy/src/codexTransport.ts
+++ b/codex-llm-proxy/src/codexTransport.ts
@@ -702,12 +702,16 @@ function normalizeModels(body: unknown): CatalogModel[] {
droppedOverLimit += 1
continue
}
+ // The upstream catalog sends `display_name`; the camelCase and `title`
+ // spellings keep their precedence.
const displayName =
typeof row.displayName === 'string'
? row.displayName
: typeof row.title === 'string'
? row.title
- : undefined
+ : typeof row.display_name === 'string'
+ ? row.display_name
+ : undefined
const contextWindowTokens = contextWindowOf(row)
models.push({
model,