twilio-labs / call-gpt

Generative AI phone call toolkit using Twilio Media Streams.
MIT License
273 stars 114 forks source link

Fix bug in gpt-service.js that happens in function calls #32

Closed akiani closed 4 months ago

akiani commented 4 months ago

The order of parameters was wrong, causing OpenAI API to give an error because the function name was being passed instead of the role. Simply reordering the parameters would fix this issue (currently only happens in the transferCall function)

Contributing to Twilio

All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under.

cweems commented 4 months ago

Thank you for the fix!