spring-projects / spring-ai

An Application Framework for AI Engineering
https://docs.spring.io/spring-ai/reference/index.html
Apache License 2.0
3.16k stars 788 forks source link

OpenAI: Support audio modality in chat completion #1560

Open ThomasVitale opened 1 week ago

ThomasVitale commented 1 week ago

OpenAI has finally launched support for audio modality in its chat completion API, both as input and as output.

We should start by supporting the input audio modality, in line with the existing APIs in Spring AI for multimodality. The output audio modality can be supported at a lower level (OpenAiApi), but it will need some design discussions to surface it through the Spring AI abstractions.

More information: https://platform.openai.com/docs/guides/audio

ThomasVitale commented 1 week ago

Here's a PR: https://github.com/spring-projects/spring-ai/pull/1561