Skip to content
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

Move stop_at parameter to completion call #110

Merged
merged 1 commit into from
May 16, 2023
Merged

Move stop_at parameter to completion call #110

merged 1 commit into from
May 16, 2023

Conversation

brosand
Copy link
Contributor

@brosand brosand commented May 16, 2023

Checking up on outlines -- seems like there is an issue in some of the examples where stop_at is passed as a paramater to models.text_completion.openai giving the error

TypeError: OpenAITextCompletion() got an unexpected keyword argument 'stop_at'

This fix moves the stop_at parameter to always be in the opneai function call itself, which also follows the two newest examples.

@rlouf
Copy link
Member

rlouf commented May 16, 2023

Good catch!

@rlouf rlouf merged commit 364298e into main May 16, 2023
@rlouf rlouf deleted the stopat-fix branch May 16, 2023 14:43
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.

None yet

2 participants