mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 10:30:44 +00:00
feat: add xai realtime transcription
This commit is contained in:
@@ -128,6 +128,7 @@ export const pluginRegistrationContractCases = {
|
||||
pluginId: "xai",
|
||||
providerIds: ["xai"],
|
||||
webSearchProviderIds: ["grok"],
|
||||
realtimeTranscriptionProviderIds: ["xai"],
|
||||
mediaUnderstandingProviderIds: ["xai"],
|
||||
},
|
||||
zai: {
|
||||
|
||||
@@ -3,6 +3,7 @@ import type {
|
||||
MediaUnderstandingProviderPlugin,
|
||||
MusicGenerationProviderPlugin,
|
||||
ProviderPlugin,
|
||||
RealtimeTranscriptionProviderPlugin,
|
||||
SpeechProviderPlugin,
|
||||
VideoGenerationProviderPlugin,
|
||||
} from "../../../src/plugins/types.js";
|
||||
@@ -10,6 +11,7 @@ import { createTestPluginApi } from "./plugin-api.js";
|
||||
|
||||
type RegisteredProviderCollections = {
|
||||
providers: ProviderPlugin[];
|
||||
realtimeTranscriptionProviders: RealtimeTranscriptionProviderPlugin[];
|
||||
speechProviders: SpeechProviderPlugin[];
|
||||
mediaProviders: MediaUnderstandingProviderPlugin[];
|
||||
imageProviders: ImageGenerationProviderPlugin[];
|
||||
@@ -27,6 +29,7 @@ export async function registerProviderPlugin(params: {
|
||||
name: string;
|
||||
}): Promise<RegisteredProviderCollections> {
|
||||
const providers: ProviderPlugin[] = [];
|
||||
const realtimeTranscriptionProviders: RealtimeTranscriptionProviderPlugin[] = [];
|
||||
const speechProviders: SpeechProviderPlugin[] = [];
|
||||
const mediaProviders: MediaUnderstandingProviderPlugin[] = [];
|
||||
const imageProviders: ImageGenerationProviderPlugin[] = [];
|
||||
@@ -43,6 +46,9 @@ export async function registerProviderPlugin(params: {
|
||||
registerProvider: (provider) => {
|
||||
providers.push(provider);
|
||||
},
|
||||
registerRealtimeTranscriptionProvider: (provider) => {
|
||||
realtimeTranscriptionProviders.push(provider);
|
||||
},
|
||||
registerSpeechProvider: (provider) => {
|
||||
speechProviders.push(provider);
|
||||
},
|
||||
@@ -63,6 +69,7 @@ export async function registerProviderPlugin(params: {
|
||||
|
||||
return {
|
||||
providers,
|
||||
realtimeTranscriptionProviders,
|
||||
speechProviders,
|
||||
mediaProviders,
|
||||
imageProviders,
|
||||
|
||||
Reference in New Issue
Block a user