Skip to content

merge remote models#9547

Merged
aibrahim-oai merged 5 commits intomainfrom
merge/cache
Jan 20, 2026
Merged

merge remote models#9547
aibrahim-oai merged 5 commits intomainfrom
merge/cache

Conversation

@aibrahim-oai
Copy link
Collaborator

@aibrahim-oai aibrahim-oai commented Jan 20, 2026

We have models.json and /models response
Behavior:

  1. New models from models endpoint gets added
  2. Shared models get replaced by remote ones
  3. Existing models in models.json but not /models are kept
  4. Mark highest priority as default

@aibrahim-oai
Copy link
Collaborator Author

@codex review this

Copy link
Contributor

@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: f631fab246

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@aibrahim-oai
Copy link
Collaborator Author

@codex review

@chatgpt-codex-connector
Copy link
Contributor

Codex Review: Didn't find any major issues. Keep it up!

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

existing_models.push(model);
}
}
*self.remote_models.write().await = existing_models;
Copy link
Collaborator

Choose a reason for hiding this comment

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

self.remote_models now stores a merged catalog (bundled models.json + /models overrides/additions), not just the remote response. Consider renaming to something like cached_models or merged_models (and update related comments) to avoid misleading future readers.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

true. but in a way models.json is also cached remote models and is different from the hot cache. This needs simplification I agree.

Copy link
Collaborator

Choose a reason for hiding this comment

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

ack yeah just a suggestion, feel free to not do. My read is a distinction btwn remote vs bundled vs cached

@aibrahim-oai aibrahim-oai merged commit 56fe5e7 into main Jan 20, 2026
32 checks passed
@aibrahim-oai aibrahim-oai deleted the merge/cache branch January 20, 2026 22:02
@github-actions github-actions bot locked and limited conversation to collaborators Jan 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants