o1-preview and o1-mini can stream now

Refs https://github.com/simonw/llm/issues/676#issuecomment-2549328154
This commit is contained in:
Simon Willison 2024-12-17 10:52:28 -08:00
parent 571f4b2a4d
commit aa25ad1d54

View file

@ -63,12 +63,12 @@ def register_models(register):
)
# o1
register(
Chat("o1-preview", can_stream=False, allows_system_prompt=False),
AsyncChat("o1-preview", can_stream=False, allows_system_prompt=False),
Chat("o1-preview", allows_system_prompt=False),
AsyncChat("o1-preview", allows_system_prompt=False),
)
register(
Chat("o1-mini", can_stream=False, allows_system_prompt=False),
AsyncChat("o1-mini", can_stream=False, allows_system_prompt=False),
Chat("o1-mini", allows_system_prompt=False),
AsyncChat("o1-mini", allows_system_prompt=False),
)
# The -instruct completion model
register(