add gpt-4o-realtime-preview model to openai provider

This commit is contained in:
leonardotrapani
2026-02-01 01:51:00 +01:00
parent 192a372718
commit 917eeed978
4 changed files with 59 additions and 5 deletions
+11 -1
View File
@@ -368,4 +368,14 @@ Started: Sun Feb 1 12:22:47 AM CET 2026
- readLoop calls reconnect() on read errors, readLoop calls reconnect() after failed reads
- SendChunk() calls reconnect() on write errors and retries the chunk
- Sends notification error to resultsCh on successful reconnect
- All tests passing with -race flag, typecheck passes
- All tests passing with -race flag, typecheck passes
### Task 36: Add OpenAI Realtime model to OpenAI provider
- Added `gpt-4o-realtime-preview` model to OpenAI provider's Models()
- Type=Transcription, Streaming=true, AdapterType='openai-realtime'
- Endpoint.BaseURL='wss://api.openai.com', Path='/v1/realtime'
- SupportedLanguages=language.AllLanguageCodes() (all 57 languages)
- DefaultModel(Transcription) unchanged (still returns 'whisper-1')
- Added TestOpenAIRealtimeModel test verifying all properties
- Updated TestModelsOfType to expect 4 transcription models for OpenAI
- All tests passing, typecheck passes