diff --git a/docs/openai-models.md b/docs/openai-models.md index eda613a..95e4167 100644 --- a/docs/openai-models.md +++ b/docs/openai-models.md @@ -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) diff --git a/docs/usage.md b/docs/usage.md index dd44ff1..dfd5e24 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -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 diff --git a/llm/default_plugins/openai_models.py b/llm/default_plugins/openai_models.py index 57ec615..affd38a 100644 --- a/llm/default_plugins/openai_models.py +++ b/llm/default_plugins/openai_models.py @@ -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")