Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Roadmap]LocalAI access o1mini , o1 #711

Open
wac81 opened this issue Dec 27, 2024 · 6 comments
Open

[Roadmap]LocalAI access o1mini , o1 #711

wac81 opened this issue Dec 27, 2024 · 6 comments

Comments

@wac81
Copy link

wac81 commented Dec 27, 2024

Description
I have a third-party openai provider and I use localai to access the third-party url and key.
however found LocalAI cannot access o1mini , o1.

Requirements
LocalAI can access o1mini , o1

@enricoros
Copy link
Owner

Hi @wac81, please add some details. As it stands this doesn't seem to be a Big-AGI issue as we support LocalAI as well as o1 models.
What's the third party provider and your configuration?

@wac81
Copy link
Author

wac81 commented Dec 28, 2024

use third party provider url is https://api.myhispreadnlp.com/

can use gpt4o, but not o1mini,o1

try to access o1, get error:
Localai: Bad Request - Unsupported value: 'messages[0].role' does not support 'system' with this model. - [DEV_URL: https://api.myhispreadnlp.com/v1/chat/completions]

@wac81
Copy link
Author

wac81 commented Dec 28, 2024

in other way , or i can setup proxy to access this thrid party url in configure to replace the url of openai itself? Is this feasible?

@enricoros
Copy link
Owner

@wac81 instead of a LocalAI service, can you set up an OpenAI service with a custom server URL? It may fix the problem.

The o1 and o1-preview models have breaking API changes that are not discoverable and require client tweaks, and we apply them in "openai" services, not localai services.

This is the case in the error above, as openai rejects the 'system' message in o1 models.

Lmk if this fixes it already.

@wac81
Copy link
Author

wac81 commented Jan 1, 2025

Okay, I'll give it a try

@enricoros
Copy link
Owner

@wac81 please let me know if you need further support on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants