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

[vue] "name" parameter get's removed from function calls #469

Closed
cosbgn opened this issue Aug 18, 2023 · 5 comments · Fixed by #656
Closed

[vue] "name" parameter get's removed from function calls #469

cosbgn opened this issue Aug 18, 2023 · 5 comments · Fixed by #656

Comments

@cosbgn
Copy link

cosbgn commented Aug 18, 2023

Look at this screenshot:
2023-08-18_14 25 07@2x
The function call is executed correctly, but when I then ask another question the name is removed, and openAi throws an error as it's required.

I add messages as: setMessages([...messages.value, msg]) using useChat with vue.js and send prompts with handleSubmit

@MaxLeiter
Copy link
Member

Thanks for the report, this should be fixed

@cosbgn
Copy link
Author

cosbgn commented Aug 18, 2023

@MaxLeiter It's still happening on ai/vue

@MaxLeiter
Copy link
Member

Can you confirm that 2.2.2 introduced this?

@MaxLeiter MaxLeiter reopened this Aug 18, 2023
@cosbgn
Copy link
Author

cosbgn commented Aug 18, 2023

Can you confirm that 2.2.2 introduced this?

Not sure, I just started using this library now. But I can try downgrading a few version. I'll let you know in a sec.

@cosbgn
Copy link
Author

cosbgn commented Aug 18, 2023

Seems to happen also with earlier versions like 2.1 etc

@MaxLeiter MaxLeiter changed the title "name" parameter get's removed from function calls [vue] "name" parameter get's removed from function calls Aug 18, 2023
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 a pull request may close this issue.

2 participants