Function-calling (responses mode) – model says “Here is the document” but never includes it

So it’s fairly easy to prove this can work:

  • calls function :white_check_mark:
  • text returned :white_check_mark:
  • assistant prints text to user :white_check_mark: (albeit with emoji’s as requested in system prompt :slight_smile: )

I’ve tried this with a much longer story and it worked too.

However, it is not reliable, and even with temperature set to 0.11 it sometimes doesn’t call the function.

You might want to experiment with different prompts and function descriptions to see if you can make it more reliable.