Repository navigation
fix(api-key): keep raw served model names in invokable model options - #564
Merged
Merged
Conversation
The candidates built from list_invokable_models trimmed the model name, so an engine name with leading or trailing whitespace was offered (and would be stored) as a name the gateway does not match. Use nonBlankModelName as the other model paths do: trim only to skip blank names. Refs NEU-943
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
Summary
Fixes NEU-943.
invokableModelOptions(added in #512) trimmed the model name fromlist_invokable_models. An engine that serves" Z "was offered in Allowed Models asZ(value, label and model), a name the gateway does not match. #501 had already fixed the same trim on the other paths withnonBlankModelName; this path now uses it too.invokableModelOptions: keep the raw model name; trim only to skip blank names." Z "stays as is;""and" "are dropped.User-visible changes
Only served model names with leading or trailing whitespace are affected: the Allowed Models candidate now shows and stores the name as the endpoint reports it. Other names are unchanged.