wanderlust icon indicating copy to clipboard operation
wanderlust copied to clipboard

wanderlust showcase throws error on hugging face

Open hkayabilisim opened this issue 11 months ago • 3 comments

  1. Go to https://solara.dev/showcase/wanderlust
  2. Click one of the images to go https://huggingface.co/spaces/solara-dev/wanderlust
  3. You will see the error below
  4. It seems related to some change on OpenAI API image

hkayabilisim avatar Dec 25 '24 06:12 hkayabilisim

A workaround is to switch the OpenAI assistant used in the usecase to v1. In the assistant management screen below you can see the switch button. It will give deprecation warning, but the usecase will continue working for a while until the code is updated for v2. image

hkayabilisim avatar Dec 26 '24 07:12 hkayabilisim

Thanks for the heads up! I tried that, and got: "Failed to fetch beta assistant: The v1 Assistants API has been deprecated. Please try again by setting the header 'OpenAI-Beta: assistants=v2'. See the migration guide for more information: https://platform.openai.com/docs/assistants/migration."

I'll try to fix it very soon!

maartenbreddels avatar Dec 26 '24 11:12 maartenbreddels

It gives that error on OpenAI webpage, but strangely the API starts working. I worked for me!

update: there is something fishy here now my hf clone works without any problem with (1) fresh OpenAI API key without any modification (2) fresh assistant without any modification (default which is v2) (3) requirements solara==1.36

hkayabilisim avatar Dec 26 '24 11:12 hkayabilisim