Skip to content

Conversation

@bolinfest
Copy link
Collaborator

@bolinfest bolinfest commented Jan 30, 2026

When using ChatGPT in names of types, we should be consistent, so this renames some types with ChatGpt in the name to Chatgpt. From https://rust-lang.github.io/api-guidelines/naming.html:

In UpperCamelCase, acronyms and contractions of compound words count as one word: use Uuid rather than UUID, Usize rather than USize or Stdin rather than StdIn. In snake_case, acronyms and contractions are lower-cased: is_xid_start.

This PR updates existing uses of ChatGpt and changes them to Chatgpt. Though in all cases where it could affect the wire format, I visually inspected that we don't change anything there. That said, this will change the codegen because it will affect the spelling of type names.

For example, this renames AuthMode::ChatGPT to AuthMode::Chatgpt in app-server-protocol, but the wire format is still "chatgpt".

This PR also updates a number of types in codex-rs/core/src/auth.rs.

@bolinfest bolinfest requested a review from pakrym-oai January 30, 2026 18:41
@bolinfest bolinfest changed the title chore: rename Chatgpt -> ChatGpt in type names chore: rename ChatGpt -> Chatgpt in type names Jan 30, 2026
@bolinfest bolinfest requested a review from owenlin0 January 30, 2026 19:00
@bolinfest bolinfest force-pushed the pr10244 branch 2 times, most recently from c04df09 to 96a2bc8 Compare January 30, 2026 19:04
@bolinfest bolinfest merged commit e6d913a into main Jan 30, 2026
54 of 56 checks passed
@bolinfest bolinfest deleted the pr10244 branch January 30, 2026 19:18
@github-actions github-actions bot locked and limited conversation to collaborators Jan 30, 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.

3 participants