Hello Roberto Guardamagna,
Although I haven't directly answered your question, I believe the "function calling" feature of Azure OpenAI Assistants might be more suitable for your situation. You could allow GPT to decide whether to call your existing program to compile a form. Below is just a quick example, but I recommend you first read this document.
curl https://YOUR_RESOURCE_NAME.openai.azure.com/openai/assistants?api-version=2024-02-15-preview \
-H "api-key: $AZURE_OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"instructions": "You are an assistant for helping users compile a form."
"tools": [{
"type": "function",
"function": {
"name": "compilingForm",
"description": "Compiling a Form by a User",
"parameters": {
"type": "object",
"properties": {
"brand": {"type": "string", "description":"..."},
"color": {"type": "string", "description":"..."},
"size": {"type": "string", "description":"..."},
},
"required": []
}
}
}],
"model": "your-custom-model-deployment-name"
}'
Best regards,
Charlie
If you find my response helpful, please consider accepting this answer and voting 'yes' to support the community. Thank you!