Commit 5f017f7
committed
Optimize realtime model usage and remove dead code
- Switch to gpt-4o-mini-realtime-preview-2024-12-17 for WebSocket connections
- Keep gpt-4o-mini-transcribe for input_audio_transcription (cost-effective)
- Remove unused RealtimeRelayService and realtimeClient abstraction
- Clean up unused OpenAI packages (@openai/realtime-api-beta, @openai/agents)
- Update documentation to reflect direct WebSocket architecture
- Remove 180+ lines of dead code for cleaner codebase
Benefits:
- Cost-effective transcription with specialized model
- Direct WebSocket connections for better performance
- Cleaner architecture without unused relay services1 parent 3648c33 commit 5f017f7
File tree
12 files changed
+41
-1209
lines changed- app
- Http/Controllers
- Services
- resources/js
- pages/RealtimeAgent
- services
- types
- tests
- Feature/Controllers
- Traits
12 files changed
+41
-1209
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
199 | 212 | | |
200 | 213 | | |
201 | 214 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
This file was deleted.
0 commit comments