from openai import OpenAI
client = OpenAI()
completion = client.chat.completions.create(
model="gpt-4o-audio-preview",
modalities=["text", "audio"],
audio={"voice": "alloy", "format": "wav"},
messages=[
{
"role": "user",
"content": "Is a golden retriever a good family dog?"
}
]
)
Here is the API response
openai.BadRequestError: Error code: 400 - {'error': {'message': "Invalid request: 'openai-internal-handleimages' and 'openai-internal-multimodal-v2' cannot both be set to true.", 'type': 'invalid_request_error', 'param': None, 'code': None}}
Error code: 400 - {‘error’: {‘message’: “Invalid request: ‘openai-internal-handleimages’ and ‘openai-internal-multimodal-v2’ cannot both be set to true.”, ‘type’: ‘invalid_request_error’, ‘param’: None, ‘code’: None}}
Invalid request: 'openai-internal-handleimages' and 'openai-internal-multimodal-v2' cannot both be set to true.
Chat completions, with gpt-4o-mini-audio-preview-2024-12-17, gpt-4o-mini-audio-preview, gpt-4o-audio-preview-2024-12-17, gpt-4o-audio-preview-2024-10-01… also with one “fail to get network resource”.