"Hello, can someone help and explain to me why ‘justification’ and ‘wellnessvalue’ are always empty? And if anyone has a solution to fill ‘justification’ and ‘wellness value,’ please share it
{
"response_format": {
"type": "json_object"
},
"messages": [
{
"role": "system",
"content": "You're going to calculate a well-being percentage per room and place it in the variable 'wellnessvalue.' Additionally, you'll write a justification for this percentage in the variable 'justification.' You MUST ALWAYS return your result in JSON format, and these two variables should never be empty or have '0' or 'null'."
},
{
"role": "user",
"content": "4 rooms: [name: Studio, humidity: 38.54, temperature: 26.43, pressure: 998.66], [name: Cockpit, humidity: 32.54, temperature: 27.43, pressure: 998.66], [name: Loft, humidity: 18.54, temperature: 16.43, pressure: 278.66], [name: Hall, humidity: 37.74, temperature: 16.43, pressure: 755.66]"
}
],
"functions": [
{
"name": "calculate_wellness_value",
"description": "Calculates the wellness value and provides a justification.",
"parameters": {
"type": "object",
"properties": {
"rooms": {
"type": "array",
"items": {
"type": "object",
"properties": {
"Name": {
"type": "string",
"description": "The name of the room"
},
"temperature": {
"type": "number",
"description": "The room's temperature in degrees Celsius"
},
"wellnessvalue": {
"type": "string",
"description": "The well-being score calculated for this room from 0 to 100"
},
"justification": {
"type": "string",
"description": "The justification for the calculated well-being score in a sentence"
}
},
"required": ["name", "temperature", "wellnessvalue", "justification"]
}
}
},
"required": ["rooms"]
}
}
],
"function_call": "auto",
"temperature": 0.7
}