#API with function call -> AttributeError: 'NoneType' object has no attribute 'choices'
1 messages · Page 1 of 1 (latest)
The code is in this repo: https://github.com/LeonardHolter/norsk_maskin
in routes.py^
You are setting the value of second_response only in the case if there is a tool call, however, if for some reason that condition is false, second_response will never be set to anything and thus stay none