LocalAI/pkg/grpc
Ettore Di Giacinto 93c48e19f0 refactor(grpc): plumb ctx through AIModel.AudioTranscription{,Stream}
Adds context.Context as first parameter to the AIModel interface methods
that wrap whisper-style transcription. Server-side gRPC handler now
forwards the per-RPC ctx (server-streaming uses stream.Context()).
Whisper, Voxtral, vibevoice-cpp, and sherpa-onnx accept the parameter;
none uses it yet — the actual cancellation primitive lands in the next
commit so this is pure plumbing.

Assisted-by: Claude:claude-sonnet-4-6
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
2026-05-07 16:36:33 +00:00
..
base refactor(grpc): plumb ctx through AIModel.AudioTranscription{,Stream} 2026-05-07 16:36:33 +00:00
auth_test.go feat: add distributed mode (#9124) 2026-03-30 00:47:27 +02:00
backend.go feat(api): add /v1/audio/diarization endpoint with sherpa-onnx + vibevoice.cpp (#9654) 2026-05-05 15:10:13 +02:00
client.go feat(api): add /v1/audio/diarization endpoint with sherpa-onnx + vibevoice.cpp (#9654) 2026-05-05 15:10:13 +02:00
embed.go feat(api): add /v1/audio/diarization endpoint with sherpa-onnx + vibevoice.cpp (#9654) 2026-05-05 15:10:13 +02:00
grpc_suite_test.go feat: add distributed mode (#9124) 2026-03-30 00:47:27 +02:00
interface.go refactor(grpc): plumb ctx through AIModel.AudioTranscription{,Stream} 2026-05-07 16:36:33 +00:00
server.go refactor(grpc): plumb ctx through AIModel.AudioTranscription{,Stream} 2026-05-07 16:36:33 +00:00