Skip to content

Commit

Permalink
o1 - refs #676
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Dec 22, 2024
1 parent 000e984 commit b257872
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/openai-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ OpenAI Chat: gpt-4-1106-preview
OpenAI Chat: gpt-4-0125-preview
OpenAI Chat: gpt-4-turbo-2024-04-09
OpenAI Chat: gpt-4-turbo (aliases: gpt-4-turbo-preview, 4-turbo, 4t)
OpenAI Chat: o1
OpenAI Chat: o1-2024-12-17
OpenAI Chat: o1-preview
OpenAI Chat: o1-mini
OpenAI Completion: gpt-3.5-turbo-instruct (aliases: 3.5-instruct, chatgpt-instruct)
Expand Down
26 changes: 26 additions & 0 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,32 @@ OpenAI Chat: gpt-4-turbo (aliases: gpt-4-turbo-preview, 4-turbo, 4t)
logit_bias: dict, str
seed: int
json_object: boolean
OpenAI Chat: o1
Options:
temperature: float
max_tokens: int
top_p: float
frequency_penalty: float
presence_penalty: float
stop: str
logit_bias: dict, str
seed: int
json_object: boolean
Attachment types:
image/gif, image/jpeg, image/png, image/webp
OpenAI Chat: o1-2024-12-17
Options:
temperature: float
max_tokens: int
top_p: float
frequency_penalty: float
presence_penalty: float
stop: str
logit_bias: dict, str
seed: int
json_object: boolean
Attachment types:
image/gif, image/jpeg, image/png, image/webp
OpenAI Chat: o1-preview
Options:
temperature: float
Expand Down
6 changes: 6 additions & 0 deletions llm/default_plugins/openai_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,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),
Expand Down

0 comments on commit b257872

Please sign in to comment.