Skip to content

Rename custom_model to overrideModel#386

Merged
ankrgyl merged 1 commit intomainfrom
clearer-override
Feb 8, 2026
Merged

Rename custom_model to overrideModel#386
ankrgyl merged 1 commit intomainfrom
clearer-override

Conversation

@ankrgyl
Copy link
Contributor

@ankrgyl ankrgyl commented Feb 8, 2026

We already have customModels and adopt camel case for consistency

@ankrgyl ankrgyl requested a review from edenh February 8, 2026 16:37
@vercel
Copy link

vercel bot commented Feb 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ai-proxy Ready Ready Preview, Comment Feb 8, 2026 4:39pm

Request Review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 322aaa996c

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +11 to +12
overrideModel: z.string().nullish(),
overrideSystemPrompt: z.string().nullish(),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep accepting legacy secret metadata keys

Renaming custom_model/custom_system_prompt to camelCase here introduces a breaking read path for existing secrets: BaseMetadataSchema is .strict(), so metadata objects that still contain the old keys are now rejected by APISecretSchema.parse during secret lookup (packages/proxy/edge/index.ts:244-249), which drops into the fallback branch and uses the bearer token as a provider key (packages/proxy/edge/index.ts:260-265). In environments with previously saved snake_case metadata, this can turn valid proxy credentials into provider auth failures until every stored secret is migrated.

Useful? React with 👍 / 👎.

@ankrgyl ankrgyl merged commit 959f88c into main Feb 8, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants