Function call with finish_reason of stop

We are receiving some responses from the api with finish_reason of “stop” when the model is calling a function.
Has anyone else experienced this?

Nope, over and over a finish reason:

  "choices": [
      "index": 0,
      "message": {
        "role": "assistant",
        "content": null,
        "function_call": {
          "name": "submit_iso_datetime",
          "arguments": "{\n  \"iso8601_datetime\": \"2023-02-06T16:33:00Z\"\n}"
      "finish_reason": "function_call"

I made plenty of trials also trying to stop any of three models from producing the certainty of multi-line JSON by function descriptions, without success (except once at temperature 2.0, which can also produce copious server 500 errors from malformed function outputs), all without a “stop” being produced in any case.

You can use top_p = 0.4 to reduce the chance of the wrong “finish” output special token being produced.


Can you post a copy of the prompt that produced this finish reason?