carlrobertoh / CodeGPT

The leading open-source AI copilot for JetBrains. Connect to any model in any environment, and customize your coding experience in any way you like.
https://codegpt.ee
Apache License 2.0
1.08k stars 225 forks source link

Edit Code popup not using Azure OpenAI #696

Closed gmontamat closed 1 month ago

gmontamat commented 1 month ago

What happened?

I use CodeGPT with custom Azure OpenAI credentials to chat with a deployed gpt-4o model (PyCharm Community 2024.2.1)

When trying out the Edit Code popup feature, even though Azure OpenAI is selected as provider, I get: "The model 'gpt-4o' is not available under your current pricing plan."

Relevant log output or stack trace

No response

Steps to reproduce

Expected behavior: it uses Azure OpenAI gpt-4o model to prompt edit

CodeGPT version

2.11.1-241.1

Operating System

macOS

kcupr commented 1 month ago

https://github.com/carlrobertoh/CodeGPT/blob/37adb90587283a01cdccf4cb10a370c777e84f5b/src/main/kotlin/ee/carlrobert/codegpt/ui/EditCodePopover.kt#L126 https://github.com/carlrobertoh/CodeGPT/blob/37adb90587283a01cdccf4cb10a370c777e84f5b/src/main/kotlin/ee/carlrobert/codegpt/actions/editor/EditCodeSubmissionHandler.kt#L38

gmontamat commented 1 month ago

thanks!