This is the EXACT code example shown in the Azure AI Studio chat playground which no longer works. We'll have to find a way to debug this or try out another custom language model to see whether that one also has the same issue. I am seeing the following error message -
Exception has occurred: HttpResponseError
(Bad Request) {"object":"error","message":"[{'type': 'extra_forbidden', 'loc': ('body', 'stream_options'), 'msg': 'Extra inputs are not permitted', 'input': None}]","type":"BadRequestError","param":null,"code":400}
Code: Bad Request
Message: {"object":"error","message":"[{'type': 'extra_forbidden', 'loc': ('body', 'stream_options'), 'msg': 'Extra inputs are not permitted', 'input': None}]","type":"BadRequestError","param":null,"code":400}
File "/workspaces/azure-search-power-skills/phi-vision-example.py", line 45, in <module>
response = client.complete(payload)
^^^^^^^^^^^^^^^^^^^^^^^^
azure.core.exceptions.HttpResponseError: (Bad Request) {"object":"error","message":"[{'type': 'extra_forbidden', 'loc': ('body', 'stream_options'), 'msg': 'Extra inputs are not permitted', 'input': None}]","type":"BadRequestError","param":null,"code":400}
Code: Bad Request
Message: {"object":"error","message":"[{'type': 'extra_forbidden', 'loc': ('body', 'stream_options'), 'msg': 'Extra inputs are not permitted', 'input': None}]","type":"BadRequestError","param":null,"code":400}
This is the EXACT code example shown in the Azure AI Studio chat playground which no longer works. We'll have to find a way to debug this or try out another custom language model to see whether that one also has the same issue. I am seeing the following error message -