|
|
|
|
|
by globalise83
872 days ago
|
|
One thing I found helps if I want the responses to be valid JSON, seems to work: where result contains all of the <data expected> and the result is valid JSON. Do NOT under any circumstances deviate from this format! Ensure all of the value <data expected> are complete, do not leave ANY of them out. Do not add ANY other text to your answer except for the JSON result. I found that just asking for valid JSON didn't always work out as expected (e.g. gpt-4 API would add formatting etc., so I became more and more of a micromanager! |
|
https://openai.com/blog/function-calling-and-other-api-updat...