HemulGM / DelphiOpenAI

OpenAI API wrapper for Delphi. Use ChatGPT, DALL-E, Whisper and other products.
MIT License
241 stars 58 forks source link

Function calling working, but not Tools #45

Closed JoeSansalone closed 5 months ago

JoeSansalone commented 5 months ago

I was using function calling and everything works. But made changes in code to support Tools (using same functions as before) .. but I can't get it to work.

It's not calling the Tools (i.e. function) and returns BLANK content.

JoeSansalone commented 5 months ago

Ok, I see that 'tool_calls' was 'tool_calls ' (extra space) .. fixed.