Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin with does not return any result - urgent help needed! #50

Open
shankswa opened this issue Dec 22, 2024 · 3 comments
Open

Plugin with does not return any result - urgent help needed! #50

shankswa opened this issue Dec 22, 2024 · 3 comments

Comments

@shankswa
Copy link

Hello,

I installed the chatgpt.vim plugin manually for vim (version 8.2.2637).

After configuring the .virmrc properly with the API key, when i tried to review a piece of C code, i got the following error:

========
Error: Error code: 404 - {'error': {'message': 'The model gpt-4o does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'param':
None, 'code': 'model_not_found'}}

Hence, i edited the .vimrc to use gpt-4o-mini, like below:

let g:chat_gpt_model='gpt-4o-mini'

After this the above error disappeared.
However, when I tried to review code (or any other operation), I do not get any response.
I just get the following in a horizontally split window of vim:

=====

{
    wpa_printf(MSG_ERROR, "ACS: Failed to start");
    acs_cleanup(iface);
    hostapd_disable_iface(iface);
}

^A>>>Assistant:^A

There is nothing from the "Assistant".

Note, that i am able to ping openai.com / Internet from my system where i run vim.

This is a bit urgent, hope you can guide me towards a solution immediately.

thanks,
-shankar

@CoderCookE
Copy link
Owner

There was a bug that resulted in the response always being None if you didn't pass a language, i've pushed a fix for that hopefully it fixes the issue you're seeing.

@shankswa
Copy link
Author

Hello Eric,

i took your changes, where the diff with my version was:

< resp = lang and f" And respond in {lang}." or ""

resp = f" And respond in {lang}." if lang != 'None' else ""

Still i see the same issue - no output from the Assistant

3 ^A>>>User:^A
4 Can you provide a code review? Given the following code snippet:
5
6 c 7 static void acs_fail(struct hostapd_iface *iface) 8 { 9 wpa_printf(MSG_ERROR, "ACS: Failed to start"); 10 acs_cleanup(iface); 11 hostapd_disable_iface(iface); 12 } 13 14
15
16
17 ^A>>>Assistant:^A
18

thanks,
-shankar

@shankswa
Copy link
Author

Do you have some suggestions to debug this issue? Would appreciate if you can give a solution ASAP.

thanks,
-shankar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants