Skip to content

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

Merged
skyfallwastaken merged 1 commit into
hackclub: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 into
hackclub:mainfrom
Efe-Cal:fix/incorrect-model-name

Conversation

@Efe-Cal

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

Copy link
Copy Markdown
Contributor

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

@skyfallwastaken skyfallwastaken left a comment

Copy link
Copy Markdown
Member

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