Feature/simpler model names#8
Open
m-messer wants to merge 3 commits into
Open
Conversation
peterbjohnson
left a comment
Member
There was a problem hiding this comment.
This is good. I have a suggestion but it may not be good so it's for you to consider:
Would it be helpful for admin (in the app) to have the option to define the mapping from the aliases to the real model?
E.g. a parameter SMALL_MODEL could be set by admin as gpt-4o-mini, and later as something else. Without pushing changes to the GitHub repo and deploying them.
Maybe it's a good idea, or maybe it's an abuse.
Member
Author
|
I think it's a good idea. I'll change it over. It will be useful for when we support more than GPT models. |
… docs, and adjust tests accordingly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem: The model parameter required callers to know and supply exact OpenAI model strings (e.g. gpt-4o-mini).
Solution: Introduce a MODEL_ALIASES dict in evaluation.py that maps four human-friendly names (small, medium, large, reasoning) to their current OpenAI model strings. The evaluation function resolves the alias at runtime before any API calls, falling back to the raw string if the value isn't a known alias. This means specific model strings still work unchanged, while common cases are abstracted behind stable names that can be updated in a single place.
Changes:
passthrough (no API calls)