didalgolab / chatgpt-intellij-plugin

Yet another JetBrains extension that enables you to use ChatGPT within your favorite IDE.
Apache License 2.0
25 stars 13 forks source link

Suffix v1/chat/completions added to custom server endpoint #24

Closed pgebert closed 3 months ago

pgebert commented 3 months ago

Plugin Version

Actual Behaviour

I use a custom endpoint in the server settings https://ete-openai-experiments.openai.azure.com/openai/deployments/gpt-4/chat/completions?api-version=2024-02-15-preview and this worked fine until the latest version of the plugin.

Now it fails with the message 404 Not Found from POST https://ete-openai-experiments.openai.azure.com/openai/deployments/gpt-4/chat/completions/v1/chat/completions

Please notice the v1/chat/completions suffix that seems to be added.

Expected Behaviour

If I add a URL in the server settings configuration it gets applied as it is

didalgolab commented 3 months ago

Azure OpenAI services have got a separate configuration in the latest version of the plugin. Please go to Settings | Tools | ChatGPT Integration | Azure OpenAI and provide your endpoint configuration there: API Key, API Endpoint and Deployment Name.

And if you are not using previous endpoints for GPT-4 and GPT-3.5-Turbo you may also disable them to not show them in a tool window.

I hope this helps.

pgebert commented 3 months ago

Great - thanks 👍 That resolved my issues. Thanks for this nice plugin.