Skip to content

Refresh the LLM price table; refuse a budget on an unpriced model - #271

Merged
jar-ben merged 4 commits into
masterfrom
jaroslav/openai-pricing
Oct 22, 2026
Merged

jar-ben merged 4 commits into
masterfrom
jaroslav/openai-pricing

Conversation

@jar-ben

@jar-ben jar-ben commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@shellygr shellygr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit only

Comment thread composer/llm/pricing.py Outdated
"""Whether ``model`` is ``name`` or a dated/variant revision of it
(``name`` followed by ``-``). A bare prefix match is not enough: it
would price ``gpt-5.3`` as ``gpt-5``."""
return model == name or model.startswith(name + "-")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

i had to read the comment and figure out it is order sensitive to be convinced the second disjunct is okay. maybe remind in the comment for this why it is okay to have the second disjunct (as well as necessary)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I made the check stricter - the model number must match now except for the date suffix (which is optional).

@jar-ben
jar-ben requested a review from shellygr October 20, 2026 08:40
@jar-ben
jar-ben merged commit c301cbd into master Oct 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants