-
-
Notifications
You must be signed in to change notification settings - Fork 352
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
Support for new o1 model #676
Comments
|
Not clear from the docs if streaming and system prompts are supported yet. I don't think I have access to the model, must be rolling out: llm -m o1 -s 'speak like santa' 'what should I ask for for christmas?'
|
https://openai.com/index/o1-and-new-tools-for-developers/#openai-o1-in-the-api says it requires usage tier 5, but I do have that usage tier according to https://platform.openai.com/settings/organization/limits |
|
I experimented and |
Here's my o1 diff, I won't land it until I've successfully tested it: diff --git a/llm/default_plugins/openai_models.py b/llm/default_plugins/openai_models.py
index affd38a..eefc966 100644
--- a/llm/default_plugins/openai_models.py
+++ b/llm/default_plugins/openai_models.py
@@ -67,6 +67,12 @@ def register_models(register):
aliases=("gpt-4-turbo-preview", "4-turbo", "4t"),
)
# o1
+ for model_id in ("o1", "o1-2024-12-17"):
+ register(
+ Chat(model_id, vision=True),
+ AsyncChat(model_id, vision=True),
+ )
+
register(
Chat("o1-preview", allows_system_prompt=False),
AsyncChat("o1-preview", allows_system_prompt=False), |
There's a new option called "reasoning effort": https://platform.openai.com/docs/api-reference/chat/create#chat-create-reasoning_effort o1 models only. Values are low, medium, and high. |
I still don't have access to this model myself! In the meantime you can try out the branch with it in like this: uvx --with https://github.com/simonw/llm/archive/refs/heads/o1.zip llm -m o1 hi |
llm -m o1-2024-12-17 'write a puzzle about cheesecakes'
Looks like streaming is not supported by o1. Surprising because it works for |
Two test prompts run through 2025-01-10T23:59:20 conversation: 01jh9ahjf1gvq3dr3jxvrtwmsvModel: o1 Prompt:write a puzzle about cheesecakes Response:Below is a short logic puzzle themed around cheesecakes. Try to deduce which friend baked which flavor, in what shape, and with which crust. Have fun! ──────────────────────────────────────────────────────── Four friends—Angela, Bradley, Carmen, and Dylan—each baked a distinctive cheesecake. Here’s what you know:
Use the following clues to figure out who made which cheesecake, what shape it is, and the type of crust: CLUES
From these clues, can you determine the flavor, shape, and crust of each friend’s cheesecake? ──────────────────────────────────────────────────────── Good luck unraveling the Great Cheesecake Mystery! Token usage:13 input, 1,132 output, {"completion_tokens_details": {"reasoning_tokens": 832}} 2025-01-11T00:00:24 conversation: 01jh9akdm7yag85xkjpfs34jp5Model: o1 Prompt:write a very short puzzle about cheesecakes Response:Annie has three cheesecakes: Strawberry, Chocolate, and Blueberry. She places each one into a box labeled “Strawberry,” “Chocolate,” or “Blueberry,” but all three labels are wrong. When she takes a slice from the box labeled “Strawberry,” the cheesecake inside turns out to be Chocolate. Which flavor goes in each labeled box? Token usage:15 input, 1,180 output, {"completion_tokens_details": {"reasoning_tokens": 1088}} |
And an image test: 2025-01-11T00:02:14 conversation: 01jh9apqgvbtxh1w9g4hcktkr8Model: o1 Prompt:describe image AttachmentsResponse:It appears to show a large gathering of brown pelicans (and possibly other shorebirds) clustered tightly together on rocky ground near a body of water. The pelicans’ long bills and expandable throat pouches are visible as they rest or preen among a mixture of smaller, darker birds. The background includes calm water, and the overall scene conveys a busy congregation of birds along the shoreline. Token usage:218 input, 730 output, {"completion_tokens_details": {"reasoning_tokens": 640}} |
I tested async mode with this as well: llm -m o1 -a https://static.simonwillison.net/static/2024/pelicans.jpg 'describe image' --async |
Released in the API today: https://platform.openai.com/docs/models#o1
See also https://openai.com/index/o1-and-new-tools-for-developers/
The text was updated successfully, but these errors were encountered: