Skip to content

Audio completions samples do not work with Phi 4.0 Multimodal Instruct Serverless deployment #39928

Open
@gonsss

Description

@gonsss
  • Package Name:
  • Name: azure-ai-inference
  • Package Version:
    Version: 1.0.0b9-
  • Operating System:
  • W11
  • Python Version:
  • Python 3.10.9 | Anaconda

Describe the bug
I want to run audio completions with Phi-4-multimodal-instruct.
I have followed this example (as it is) and it doesnt work (get 422 Error code)
https://github.com/Azure/azure-sdk-for-python/blob/azure-ai-inference_1.0.0b9/sdk/ai/azure-ai-inference/samples/sample_chat_completions_with_audio_data.py

To Reproduce
Steps to reproduce the behavior:

  1. Create a Phi-4-multimodal-instruct serverless deployment on Azure foundry.
  2. Run the example https://github.com/Azure/azure-sdk-for-python/blob/azure-ai-inference_1.0.0b9/sdk/ai/azure-ai-inference/samples/sample_chat_completions_with_audio_data.py as it is.
  3. I get the following error :
    Error occurred: HttpResponseError
    Error details: (Invalid input) invalid input error
    Code: Invalid input
    Message: invalid input error
    Status code: 422

Expected behavior
Get completion result

Screenshots
N/A

Additional context
N/A

Metadata

Metadata

Assignees

Labels

AIAI Model InferenceIssues related to the client library for Azure AI Model Inference (\sdk\ai\azure-ai-inference)Service AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions