coleam00 / bolt.new-any-llm

Prompt, run, edit, and deploy full-stack web applications using any LLM you want!
https://bolt.new
MIT License
926 stars 534 forks source link

Open ai api key requests not working #81

Open diogoparente opened 2 days ago

diogoparente commented 2 days ago

Describe the bug

I'm trying to run this awesome project with my personal Open AI API key, but all requests seem to fail.

Link to the Bolt URL that caused the error

http://localhost:5173/chat/4 (but others failed too before)

Steps to reproduce

  1. Insert valid Open AI api key
  2. pnpm run dev
  3. Promp anything
  4. Request fails

Expected behavior

bolt should generate code

Screen Recording / Screenshot

https://github.com/user-attachments/assets/5c1f7c16-9cf1-4f18-a9f2-6b08742eeb7c

Screenshot 2024-10-25 at 20 10 42

Platform

Additional context

No response

panteLx commented 2 days ago

Try to repull the repo. When u start up the dev server reload the page once after first visit. i got a similar error because bolt tries to get the gpt-4o model from Anthropic. after a reload it works for me.