azure openai gpt-4o create message to a thread, "Invalid type for 'content': expected a string, but got an array instead."

John Zhang 0 Reputation points
2024-06-22T01:11:22.0733333+00:00

Getting 400 as in title.
swapping endpoint to openai, worked fine.

looking at the doc.

azure doc seems not updated https://learn.microsoft.com/en-us/azure/ai-services/openai/assistants-reference-messages?tabs=python#create-message

compare to the openai doc: https://platform.openai.com/docs/api-reference/messages/createMessage

is azure open ai assistant version behind the openai assistant version, that's why?
when can i expecting the update?

thank you

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,659 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AshokPeddakotla-MSFT 30,516 Reputation points
    2024-06-24T03:24:17.97+00:00

    John Zhang Greetings & Welcome to Microsoft Q&A forum!

    Thanks for sharing your feedback.

    You can directly provide your feedback on the same documentation.

    User's image

    User's image

    Do let me know if you have any further queries.

    0 comments No comments