Azure / Azure/azure-sdk-for-python

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

Offen
#39,928 6 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@trangevi arbeitet bereits daran.

Seit 04.3.2025.

AI AI Model Inference customer-reported question Service Attention
Vorherrschende Sprache
Python
Sterne
5.6k
Forks
3.4k
Ø Merge
2 T. 2 Std.
Gemergte PRs (30 T.)
213

Beschreibung

  • 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

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.