-init-
This commit is contained in:
@@ -228,7 +228,10 @@ $prompt"
|
||||
}')
|
||||
;;
|
||||
*)
|
||||
payload=$(echo "$base_payload" | jq '. + {response_format: {type: "json_object"}}')
|
||||
# Default OpenAI-compatible providers increasingly expect
|
||||
# response_format.type to be either "text" or a json_schema.
|
||||
# Use "text" for maximum compatibility to avoid 400 errors.
|
||||
payload=$(echo "$base_payload" | jq '. + {response_format: {type: "text"}}')
|
||||
;;
|
||||
esac
|
||||
echo "$payload"
|
||||
|
||||
Reference in New Issue
Block a user