Skip to content

adding missing args in create_completion for functionary chat handler#1430

Merged
abetlen merged 1 commit intoabetlen:mainfrom
skalade:functionary_missing_args
May 8, 2024
Merged

adding missing args in create_completion for functionary chat handler#1430
abetlen merged 1 commit intoabetlen:mainfrom
skalade:functionary_missing_args

Conversation

@skalade
Copy link
Contributor

@skalade skalade commented May 5, 2024

Looks like in all cases where stream == False the create_completion function was missing the new args.

I was getting this error when querying functionary v2 on llama-cpp-server:

TypeError: create_completion() missing 2 required positional arguments: 'prompt' and 'grammar'

@jeffrey-fong
Copy link
Contributor

Thanks for this! 🙏

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.

3 participants