Skip to content

fix: improve model selection logic in completion request handler#73

Merged
skyfallwastaken merged 1 commit intohackclub:mainfrom
Efe-Cal:fix/incorrect-model-name
Jan 3, 2026
Merged

fix: improve model selection logic in completion request handler#73
skyfallwastaken merged 1 commit intohackclub:mainfrom
Efe-Cal:fix/incorrect-model-name

Conversation

@Efe-Cal
Copy link
Contributor

@Efe-Cal Efe-Cal commented Jan 2, 2026

Hi!

I updated the logic for handling model selection in the handleCompletionRequest function. Now, if the requested model name isn't a direct match, the code tries to find the model by matching on the model name after the / character before defaulting to the first allowed model.

fixes #72

Copy link
Member

@skyfallwastaken skyfallwastaken left a comment

Choose a reason for hiding this comment

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

Thanks!

@skyfallwastaken skyfallwastaken merged commit d52f431 into hackclub:main Jan 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect model name used when provider name is omitted

2 participants