Azure-Samples / azure-search-power-skills

A collection of useful functions to be deployed as custom skills for Azure Cognitive Search
MIT License
288 stars 170 forks source link

[DO NOT MERGE] Sample code not working #214

Closed amitkalay closed 4 weeks ago

amitkalay commented 1 month ago

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}