mirror of
https://github.com/Hopiu/llm.git
synced 2026-05-25 21:53:46 +00:00
New OpenAI audio models, closes #677
This commit is contained in:
parent
aa25ad1d54
commit
8898584ba6
3 changed files with 37 additions and 4 deletions
|
|
@ -34,6 +34,8 @@ cog.out("```\n{}\n```".format("\n".join(models)))
|
|||
OpenAI Chat: gpt-4o (aliases: 4o)
|
||||
OpenAI Chat: gpt-4o-mini (aliases: 4o-mini)
|
||||
OpenAI Chat: gpt-4o-audio-preview
|
||||
OpenAI Chat: gpt-4o-audio-preview-2024-12-17
|
||||
OpenAI Chat: gpt-4o-audio-preview-2024-10-01
|
||||
OpenAI Chat: gpt-3.5-turbo (aliases: 3.5, chatgpt)
|
||||
OpenAI Chat: gpt-3.5-turbo-16k (aliases: chatgpt-16k, 3.5-16k)
|
||||
OpenAI Chat: gpt-4 (aliases: 4, gpt4)
|
||||
|
|
|
|||
|
|
@ -306,6 +306,32 @@ OpenAI Chat: gpt-4o-audio-preview
|
|||
json_object: boolean
|
||||
Attachment types:
|
||||
audio/mpeg, audio/wav
|
||||
OpenAI Chat: gpt-4o-audio-preview-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:
|
||||
audio/mpeg, audio/wav
|
||||
OpenAI Chat: gpt-4o-audio-preview-2024-10-01
|
||||
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:
|
||||
audio/mpeg, audio/wav
|
||||
OpenAI Chat: gpt-3.5-turbo (aliases: 3.5, chatgpt)
|
||||
Options:
|
||||
temperature: float
|
||||
|
|
|
|||
|
|
@ -37,10 +37,15 @@ def register_models(register):
|
|||
AsyncChat("gpt-4o-mini", vision=True),
|
||||
aliases=("4o-mini",),
|
||||
)
|
||||
register(
|
||||
Chat("gpt-4o-audio-preview", audio=True),
|
||||
AsyncChat("gpt-4o-audio-preview", audio=True),
|
||||
)
|
||||
for audio_model_id in (
|
||||
"gpt-4o-audio-preview",
|
||||
"gpt-4o-audio-preview-2024-12-17",
|
||||
"gpt-4o-audio-preview-2024-10-01",
|
||||
):
|
||||
register(
|
||||
Chat(audio_model_id, audio=True),
|
||||
AsyncChat(audio_model_id, audio=True),
|
||||
)
|
||||
# 3.5 and 4
|
||||
register(
|
||||
Chat("gpt-3.5-turbo"), AsyncChat("gpt-3.5-turbo"), aliases=("3.5", "chatgpt")
|
||||
|
|
|
|||
Loading…
Reference in a new issue