-
-
Notifications
You must be signed in to change notification settings - Fork 305
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
Add o1 support #570
Comments
you can add locally with this config https://llm.datasette.io/en/stable/openai-models.html#adding-more-openai-models |
the docs there are not quite right... you need to specify both |
OK, it's there for me now, however I'm getting this - "Error: Error code: 400 - {'error': {'message': "Unsupported value: 'stream' does not support true with this model. Only the default (false) value is supported.", 'type': 'invalid_request_error', 'param': 'stream', 'code': 'unsupported_value'}}" So seems like you need to use |
Good catch! I submitted a PR to fix the doc. |
I think we need a new model option for setting |
I've published a branch with this implemented, but I can't test it myself yet as I don't have a tier 5 API key. Could someone else test this for me? You can install the branch like this: pip install https://github.com/simonw/llm/archive/refs/heads/openai-o1.zip
# Or maybe even this:
llm install https://github.com/simonw/llm/archive/refs/heads/openai-o1.zip Then: llm -m o1-preview 'hello to o1-preview'
llm -m o1-mini 'hello to o1-preview' If someone reports those running without incident I'll ship a release with them. |
@simonw your branch works! |
Merged that, about to release it. |
I believe it needs to be added to default_models.py and also add some documentation.
I just tried a local patch and the API reported that
o1-preview
does not exist or I don't have access to it, so not sure if API access has not been enabled yet or if our company doesn't have it yet.The text was updated successfully, but these errors were encountered: