Tags: devlooped/xAI
Tags
Add ISpeechToTextClient support via GrokSpeechToTextClient Implements ISpeechToTextClient for xAI's Grok models, including: - GrokSpeechToTextClient: unary transcription via POST /v1/stt and streaming transcription via wss://.../v1/stt WebSocket protocol. Handles session handshake, chunked audio upload, interim/final transcript events, word-level timing, and language detection. - GrokSpeechToTextOptions: Grok-specific options for audio format, sample rate, multichannel, diarization, interim results, and endpointing timeout. - AsISpeechToTextClient() extension on GrokClient wires up the client with the correct HTTP handler and WebSocket factory. Fix: voice REST clients (TTS and STT) were accidentally reusing the gRPC channel's BalancerHttpHandler, which throws for plain HTTP/1.1 requests. Added GrokClient.HttpHandler, backed by a separate httpHandlers cache using the same Polly retry pipeline but independent of the gRPC channel. AsITextToSpeechClient and AsISpeechToTextClient now use client.HttpHandler instead of client.ChannelHandler.Handler. The channels dictionary now holds ChannelBase directly rather than a tuple, since the HttpMessageHandler is no longer needed from it. Add TextToSpeech_SpeechToText integration test that streams TTS audio to a temp file and transcribes it back with STT, asserting the roundtrip text matches (punctuation-insensitive via NormalizeTranscription). Update readme with ISpeechToTextClient usage examples alongside the existing TTS documentation.
Add tool instruction following comparison tests across models We noticed inconsistencies in how Grok models invoke (or not) tools depending on their description. Right now, the 4.20 model randomly fails whereas 4.1 passes every time (on not-calling scenario). This will serve to monitor future model behavior changes, as well as documenting behavior delta (if any).
Bump the system group with 1 update Bumps System.ClientModel from 1.9.0 to 1.10.0 --- updated-dependencies: - dependency-name: System.ClientModel dependency-version: 1.10.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: system ... Signed-off-by: dependabot[bot] <support@github.com>
Bump Devlooped.Extensions.AI from 2.0.1 to 2.0.2 --- updated-dependencies: - dependency-name: Devlooped.Extensions.AI dependency-version: 2.0.2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Bump the tests group with 1 update Bumps coverlet.collector from 6.0.4 to 8.0.0 --- updated-dependencies: - dependency-name: coverlet.collector dependency-version: 8.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: tests ... Signed-off-by: dependabot[bot] <support@github.com>
PreviousNext