JocysCom / VsAiCompanion

AI Companion that analyzes your project files and works alongside you to streamline development and boost productivity.
Mozilla Public License 2.0
14 stars 5 forks source link

It's fully broken now, thank you :-D #15

Open Vitashakti opened 2 weeks ago

Vitashakti commented 2 weeks ago

It keeps saying "Please Provide the API Key" even though the user has entered the API Key. It takes you back to the setting to provide the API key which you already have.

See the attached photo: 1. API Key is provided. 2. Message that is asking for API Key. 3. Blue arrow on the right: the button is always disabled. 4. The blue arrow on the left: the Drop Down is always empty.

image

EJocys commented 2 weeks ago

Hi @Vitashakti ,

Thanks for reporting the issue. I've tested connection on the app to Azure but couldn't replicate the problem. I've updated the code to provide a clearer error message, which will be included in the next app update.

Regarding the "blue arrows": the Drop Down and Refresh buttons are only enabled when the "Options \ Main \ Enable Microsoft Account" option is enabled and the user is signed in. If you're accessing Microsoft Azure the AI service with an API key, you don't need to use Microsoft account.

Every time you restart the application, it attempts to clean up and fix AI service and model configurations. You can try restarting the application to see if it helps.

If you're using the Microsoft Azure OpenAI service, make sure the correct service is selected. It's easy to mix up "OpenAI" and "Azure OpenAI" services.

image

I'll try experimenting more to see if I can replicate the issue.

Kind regards, Evaldas Jocys

EJocys commented 1 week ago

If you're asking the AI to analyse images or screenshots, it might be using another AI model specified in the ® System - Video template. Go to [Templates] \ ® System - Video template and select an AI service and AI model capable of image processing, probably "Azure OpenAI" service if you're not using "OpenAI", and the "GPT-4o" model.

image

Vitashakti commented 6 days ago

Hi Evaldas, thanks for clarification. The problem was my confusion over azure open ai and open ai. In a sense the API key that I provided wasn't right for Azure so it told me it was not provided. that's fine. Now, can you please tell me where I can find detailed logs of the system? I'm getting a 403 error and want to see exactly on which request to which URL I got it.

EJocys commented 6 days ago

Originally, there's an option "[ ] Log HTTP Messages" that logs all traffic into this folder: C:\Users\%USERNAME%\AppData\Roaming\Jocys.com\VS AI Companion\Logs image

Unfortunately, it’s not working as expected. I’ll try to fix it in the next release. Also, I found and fixed a bug where it would use https://api.openai.com/v1 as the address for the OpenAPI service even if you specified another URL.

You can also enable "[x] Show Errors Panel: image