mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 15:10:52 +00:00
refactor: share provider HTTP errors with google
This commit is contained in:
@@ -493,8 +493,10 @@ API key auth, and dynamic model resolution.
|
||||
<Tabs>
|
||||
<Tab title="Speech (TTS)">
|
||||
```typescript
|
||||
import { postJsonRequest } from "openclaw/plugin-sdk/provider-http";
|
||||
import { assertOkOrThrowProviderError } from "openclaw/plugin-sdk/speech";
|
||||
import {
|
||||
assertOkOrThrowProviderError,
|
||||
postJsonRequest,
|
||||
} from "openclaw/plugin-sdk/provider-http";
|
||||
|
||||
api.registerSpeechProvider({
|
||||
id: "acme-ai",
|
||||
@@ -525,7 +527,7 @@ API key auth, and dynamic model resolution.
|
||||
```
|
||||
|
||||
Use `assertOkOrThrowProviderError(...)` for provider HTTP failures so
|
||||
speech plugins share capped error-body reads, JSON error parsing, and
|
||||
plugins share capped error-body reads, JSON error parsing, and
|
||||
request-id suffixes.
|
||||
</Tab>
|
||||
<Tab title="Realtime transcription">
|
||||
|
||||
Reference in New Issue
Block a user