8000 Fix type hint for `logit_bias` parameter by ddh0 · Pull Request #1802 · abetlen/llama-cpp-python · GitHub
[go: up one dir, main page]

Skip to content

Fix type hint for logit_bias parameter #1802

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 6, 2024
Merged

Conversation

ddh0
Copy link
Contributor
@ddh0 ddh0 commented Oct 16, 2024

This PR changes the type hint of the logit_bias parameter from Optional[Dict[str, float]] to Optional[Dict[int, float]]. (It was already being cast to int, the logic does not change, only the type hint was wrong which was confusing)

ddh0 added 2 commits October 16, 2024 17:17
`Optional[Dict[str, float]]` --> `Optional[Dict[int, float]]`
@abetlen abetlen merged commit fa04cdc into abetlen:main Dec 6, 2024
14 checks passed
@ddh0 ddh0 deleted the fix-type-hint branch December 6, 2024 09:51
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.

2 participants
0