LLMs not working with 31e03ce(v0.0.5) - nightly

I’ve installed the latest version of bolt.diy but only the Google models are working. I have Anthropic, OpenAI, OpenRouter, and Google APIs. I’ve done the following:

  • Copied a known working version of .env from a different version of bolt to this new version
  • Deleted the .env file. Created a brand new one. Copied and pasted the API keys into the new .env
  • Added the API keys into the UI
  • Created and tested a brand new Open AI API key
  • Restarted the server, browser, and eventually my pc

The error is always the same: ERROR Chat Request failed. Error: An error occured. No other info.

Just to make sure => the env file is called “.env.local” not just “.env”?

Did you test putting the API keys in the UI and do they work then?

I did try adding all the APIs to the UI but they didn’t work. I just changed .env to .env local, restarted the server but exactly the same with one exception. Now Google LLMs don’t work either. :slight_smile:

I closed my browser (Canary), killed the process in the Windows terminal, and restarted everything and tested Anthropic, OpenAI, OpenRouter, and Google. Only Google works. Same as before.

Is it also not working when you switch to the stable branch?

I’ll test and get back to you.

1 Like

This is what I did:

  • Downloaded a stable branch, installed the dependencies, closed down the browser, double-checked I had no 5173 ports open, and started the server.
  • Tried the 4 APIs using the .env.local. Only Google worked
  • Tried the Anthropic, OpenAI, and OpenRouter APIs from the UI - Didn’t work
  • Created a new Anthropic API key and tested it in the UI - Didn’t work
  • Created a new To Do app using GPT 4o - Worked
  • Created a new To Do app using OpenRouter (Claude 3.5) - Worked
  • Tried to create a To Do app using Claude with a brand new API key. Didn’t work
  • Cleared the cache. Tried 3 APIs on current project. Didn’t work
  • Downloaded the project and reuploaded it as a new project. Tested 4 APIs. Only Google worked

UPDATE:

  • I exported my project, deleted ALL my cached from Canary, uploaded my project, and tried again. Same problem.
1 Like

I did some more testing. I created a new OpenRouter key and tested several random LLMs including Claude 3.5, GPT-4o, and Google. Only Google worked.

1 Like

@twestproducthqio thanks for testing. We seeing this errors more and more and already investigating/trying to find out where something is wrong.

1 Like

Is there a workaround in the mean time? Is there another version of bolt I could use? Gemini 2.0 is not the best for building apps. Very very frustraiting. Like trying to ask a monkey to write code.

You could try to get back to the version before the last stable update.

I dont know what is not working for you with Gemini, but for me it worked very well till last week and I build this app to 90% with Gemini 2.0 Flash:

But yes, maybe depends on the project.

1 Like
  • Could you please share a link to that version? I’m still learning Github.
  • Gemini was ok up until very recently. It seems like it got really dumb really quick… maybe over the last couple of days. Maybe it’s just me.

Here are the build releases: Releases · stackblitz-labs/bolt.diy · GitHub

or checkout directly should also work with:

git checkout tags/v0.0.4

You can try version 0.0.4

1 Like

@twestproducthqio sry I ment v0.0.3, as 0.0.4 and 0.0.5 are the buggy ones. the 5 was just a little bug fix that was deployed a few days after.

1 Like

Hmmm. I was using 0.0.3 and ran into this issue which is why I updated to 0.0.5. I’ll go back to 0.0.3 and check. I’ll also check 0.0.4 just because I haven’t used it yet.

The issue should not be in 0.0.3 and please make sure you delete all cookies/cache etc., so you do your test on a clean browser session.

Update:

  • Renamed current install of 0.0.3 to 0.0.3-old
  • Cleared all bolt-related info from Brave and Canary caches
  • Restarted pc
  • Downloaded 0.0.3 zip from release page and installed
  • Created brand new GPT API key
  • Renamed .env to .env.local and added new GPT key
  • Opened Canary (100% clean cache)
  • Created To Do app with 4o, no problem
  • Uploaded existing project. Can see it in the preview
  • Tried using GPT-4o. Same error
  • Added current Google API. Same error
  • Added API keys to UI and tried again. Same error with both APIs

Any update/progress with this?

1 Like

Try installing bolt.diy on cloudflare, that fixed the problem for me.

Sry, oversaw this post.

I think the 4o Model is just not capable of your project size. Try Gemini 2.0 Flash.
Also you can provide the project to me if you want, then I try/verify on my system. You can also provide it via PM if you dont want to post public here.

I’m been using Gemini for days. I’ve moved from Canary to Brave, tested OpenRouter, and found Sao10k: Llama 3.1 Euryale 70B v2.2. Works perfectly. Super cheap.