CodeNext icon indicating copy to clipboard operation
CodeNext copied to clipboard

Unable to Add Models (Claude, Grok-2, Gemini)

Open goldenphang opened this issue 1 year ago • 19 comments

Hi

I have deleted and generated several keys per model and im still unable to reach the server through CodeNext. I'm unable to chat, as I'm getting" "not found responses. Is there a bug? Seems pretty straight forward, add key, name and URL. However, google says there's no need for a URL if I have the API Key.

Please help, as I'd definitely want to try the app with Xcode.

Thanks Jason

goldenphang avatar Apr 06 '25 02:04 goldenphang

Sorry for the issue. Can you give more details? how to reproduce the issue? are you adding models for chat or autocomplete? can you give model details except API Key?

johnvicinno avatar Apr 06 '25 03:04 johnvicinno

I'm using the chat feature. Gemini 2.5, grok-2, Claude 3.7 Sonnet. It seems the url is broken, and I get an invalid API (e.g., Grok uses open ai, yet the error shows an error for a Anthropic key). It's like it's swapped internally somehow.

goldenphang avatar Apr 06 '25 04:04 goldenphang

you do need to configure a URL for each model. can you give details for each model? like what you configured for each model? eg. what url, format, and model name did you configure for each model?

johnvicinno avatar Apr 06 '25 04:04 johnvicinno

We use Claude 3.7 Sonnet for our own development which works very well.

johnvicinno avatar Apr 06 '25 04:04 johnvicinno

for grok 2, please use openAI compatible format.

johnvicinno avatar Apr 06 '25 04:04 johnvicinno

which version of CodeNext are you using?

johnvicinno avatar Apr 06 '25 04:04 johnvicinno

version 1.0.6.3. However I reverted to this version after using 1.0.6.4. I was getting the issue there, then I read the logs that there was a URL fix in the .6.3 version. Maybe if I had the correct base URL's for them I could try again. I tried to find YouTube videos of a tutorial with a successful attempt at adding models.

goldenphang avatar Apr 06 '25 05:04 goldenphang

Please use the latest version 1.0.6.4 which includes all the fixes so far. If you use Google Vertex Model Garden for those models, please configure them together with Google Generative AI format, or configure them separately. But anyway, you need a URL.

johnvicinno avatar Apr 06 '25 14:04 johnvicinno

Please let us know what we can help. Thanks.

johnvicinno avatar Apr 07 '25 01:04 johnvicinno

I've down;oaded lates version, and there's no change. I'm still unable to use the chat. API errors. I'm able to use other coding apps, but I really wanted to try Codenext. What would be helpful is if the URL's were built in based on the model you're adding so all you have to do is paste the API key.

goldenphang avatar Apr 07 '25 03:04 goldenphang

To be able to help you, please share the details like steps to reproduce the issue. As asked above, tell us what format, url, model name you used so that we can reproduce the issue. Thank you.

johnvicinno avatar Apr 07 '25 16:04 johnvicinno

Hello, i have same issue. I suppose it has to do something I am inputing wrong model. I tried multiple names from this https://docs.anthropic.com/en/docs/about-claude/models/overview

and stil getting Not found ...

Image

Any Advice?

SwiftyMike avatar Jun 03 '25 09:06 SwiftyMike

Hello, the model name is the column of Anthropic API in the table of above Anthropic document, the second column, not the first one. or select from our dropdown list like this:

Image

Please let me know if it helps.

johnvicinno avatar Jun 03 '25 13:06 johnvicinno

Hi! I have the same problem... Below is my setting ( I added two models, Claude and Ollama Qwen2.5 ) :

Image Image

the chat always gets "404 page not found" (Ollama Qwen2.5) or "not found" ( Claude ) :

Image Image

I used curl to test the Ollama API and Python to test Claude - they both work fine.

Image

Image

Do you have any advice? thanks!

ffshy1212 avatar Jun 11 '25 07:06 ffshy1212

Hello, thanks for reporting them. We will check both issues and get back to you soon. It is weird for Claude 3.7. we are pretty sure that it works since we use it for our development every day. but we will double check.

johnvicinno avatar Jun 11 '25 12:06 johnvicinno

We fixed the issues. and will release a new build soon. Thanks for your patience.

johnvicinno avatar Jun 12 '25 00:06 johnvicinno

The new release 1.1.2.5 is live. Please download it and try. Thanks.

johnvicinno avatar Jun 12 '25 03:06 johnvicinno

It's work! Thanks!!

ffshy1212 avatar Jun 12 '25 05:06 ffshy1212

Great. Let us know if you need any other help.

johnvicinno avatar Jun 12 '25 20:06 johnvicinno