intitni / CopilotForXcode

The missing GitHub Copilot, Codeium and ChatGPT Xcode Source Editor Extension
https://copilotforxcode.intii.com
MIT License
7.63k stars 372 forks source link

[Bug]: Using Azure ChatGPT deployment is broken by functions argument #335

Closed Vybo closed 1 year ago

Vybo commented 1 year ago

Before Reporting

What happened?

One of the recent updates broken the Azure ChatGPT functionality. Chat now supplies functions argument in its request, which this particular version of the API does not support.

How to reproduce the bug.

Use Azure ChatGPT deployment that uses the 2023-05-15 API version and then try to use Chat. You'll get this error: "Unrecognized request argument supplied: functions".

Relevant log output

No response

macOS version

13.4.1 (22F82)

Xcode version

14.3.0

Copilot for Xcode version

0.21.1

Node version

v20.0.0

intitni commented 1 year ago

Please update the model version to 0613 #334

Vybo commented 1 year ago

The model is GPT-4 and I am unfortunately most likely not able to update the model, since it's not managed by me, but the company. It would be nice if there would be the option to turn that functionality off for backwards compatibility.

intitni commented 1 year ago

I will add a toggle to turn the function calling off later. In the meantime, you can try turning off the default code scope in the chat feature settings, or revert to 0.20.x.

intitni commented 1 year ago

Released in 0.21.2.