enricoros / big-AGI

Generative AI suite powered by state-of-the-art models and providing advanced AI/AGI functions. It features AI personas, AGI functions, multi-model chats, text-to-image, voice, response streaming, code highlighting and execution, PDF import, presets for developers, much more. Deploy on-prem or in the cloud.
https://big-agi.com
MIT License
5.59k stars 1.29k forks source link

[BUG] OpenAI's o1-preview and o1-mini models not working #682

Open jelmerkk opened 4 days ago

jelmerkk commented 4 days ago

Description

Whenever I try to use the o1-preview or the o1-mini model, I get this reponse:

[Service Issue] Openai: Bad Request (400): "error": { "message": "Unsupported value: 'messages[0].role' does not support 'system' with this model.", "type": "invalid_request_error", "param": "messages[0].role", "code": "unsupported_value" }

Device and browser

Macbook Pro M1 on Arc/Chrome/Safari

Screenshots and more

No response

Willingness to Contribute

genchadt commented 3 days ago

Dropping in to state that I'm having the same issue. I've deleted and re-added the API token to get access to o1 models but receive this same error message.

enricoros commented 3 days ago

@genchadt @jelmerkk Version 2 of Big-AGI dropping soon with full support for o1. In the meantime you can:

  1. build the v2-dev branch yourself until the official app is out in the next few weeks
  2. use o1 via the openrouter provider (openrouter is a great model server that makes new models available sooner)
  3. use the model on chatgpt until V2 is out.
genchadt commented 3 days ago

@genchadt @jelmerkk Version 2 of Big-AGI dropping soon with full support for o1. In the meantime you can:

  1. build the v2-dev branch yourself until the official app is out in the next few weeks
  2. use o1 via the openrouter provider (openrouter is a great model server that makes new models available sooner)
  3. use the model on chatgpt until V2 is out.

Thanks for the response. I have switched to v2-dev and it is working, however I did need to re-add my API key.

balintbabics commented 2 days ago

Thanks for the response. I have switched to v2-dev and it is working, however I did need to re-generate my API key.

How did you manage to build it locally, the latest v2-dev? On my device, I've got a build error: Error: Failed to collect page data for /draw.

Any tips?

genchadt commented 1 day ago

Thanks for the response. I have switched to v2-dev and it is working, however I did need to re-generate my API key.

How did you manage to build it locally, the latest v2-dev? On my device, I've got a build error: Error: Failed to collect page data for /draw.

Any tips?

Here's what I did (I am a git noob)

  1. Deleted the big-agi root folder
  2. Cloned v2-dev from scratch with git clone -b v2-dev https://github.com/enricoros/big-AGI.git
  3. Run npm install then npm run build
  4. Opened big-agi and re-added my API key (think I could've just used the models refresh button there tho)
enricoros commented 6 hours ago

Great job @genchadt and @balintbabics . I'm close to publish the first V2 officially on Big-AGI.com and very excited about cloud backups and all. Working very very hard on it, and there's so much I want to ship once this major milestone of having the big-agi cloud is done.