Remove unsupported speaker reference option

This commit is contained in:
404oops committed 2026-10-13 20:43:54 +02:00
1 parent 29e0e1e2aa
commit 7abd7b4417
7 files changed
+2 -11

No files matched your search

@@ -531,7 +531,6 @@ describe('SpeechToTextDriver model selection and payload shape', () => {
file: dataUrl(Buffer.from('a'), 'audio/mp3'),
chunking_strategy: 'auto',
known_speaker_names: ['agent'],
known_speaker_references: ['data:audio/wav;base64,QQ=='],
}),
);
@@ -539,7 +538,6 @@ describe('SpeechToTextDriver model selection and payload shape', () => {
const sent = transcriptionsCreateMock.mock.calls[0]![0];
expect(sent.chunking_strategy).toBeUndefined();
expect(sent.known_speaker_names).toBeUndefined();
expect(sent.known_speaker_references).toBeUndefined();
});
it('passes extra_body through verbatim', async () => {
@@ -453,7 +453,6 @@ describe('XAISpeechToTextProvider request shape', () => {
timestamp_granularities: ['word'],
chunking_strategy: 'auto',
known_speaker_names: ['agent'],
known_speaker_references: ['data:audio/wav;base64,QQ=='],
}),
);
@@ -465,8 +464,6 @@ describe('XAISpeechToTextProvider request shape', () => {
expect(form.get('chunking_strategy')).toBeNull();
expect(form.get('known_speaker_names')).toBeNull();
expect(form.get('known_speaker_names[]')).toBeNull();
expect(form.get('known_speaker_references')).toBeNull();
expect(form.get('known_speaker_references[]')).toBeNull();
});
it('forwards a pinned grok-voice-transcribe version as `model`', async () => {
@@ -53,7 +53,6 @@ export interface ITranscribeArgs {
timestamp_granularities?: string[];
chunking_strategy?: string;
known_speaker_names?: string[];
known_speaker_references?: unknown[];
extra_body?: Record<string, unknown>;
stream?: boolean;
test_mode?: boolean;
+2 -2
View File
@@ -44,8 +44,8 @@ Fine-tune how transcription runs.
- `stream` (Boolean): Reserved for future streaming support. Streaming is not currently supported.
- `test_mode` (Boolean): When `true`, returns a sample response without using credits. Defaults to `false`.
The options `timestamp_granularities`, `chunking_strategy`, `known_speaker_names`,
and `known_speaker_references` are accepted and ignored by both providers.
The options `timestamp_granularities`, `chunking_strategy`, and `known_speaker_names`
are accepted and ignored by both providers.
**xAI-specific options** (when `provider: 'xai'`):
-1
View File
@@ -567,7 +567,6 @@ describe('ai.speech2txt driver payloads', () => {
timestamp_granularities: ['word'],
chunking_strategy: 'auto',
known_speaker_names: ['agent'],
known_speaker_references: ['data:audio/wav;base64,QQ=='],
};
await ai.speech2txt({ file: 'data:audio/mpeg;base64,QUJD', ...legacy });
expect(lastBody().args).toEqual({
-1
View File
@@ -483,7 +483,6 @@
* @property {string[]} [timestamp_granularities] Accepted and ignored by all providers.
* @property {string} [chunking_strategy] Accepted and ignored by all providers.
* @property {string[]} [known_speaker_names] Accepted and ignored by all providers.
* @property {string[]} [known_speaker_references] Accepted and ignored by all providers.
* @property {Record<string, unknown>} [extra_body]
* @property {boolean} [format]
* @property {boolean} [diarize]
@@ -1307,7 +1307,6 @@ export default suite('ai', {
timestamp_granularities: ['word'],
chunking_strategy: 'auto',
known_speaker_names: ['speaker'],
known_speaker_references: [TINY_AUDIO],
test_mode: true,
})) as { text?: string };
t.assert.ok((result.text ?? '').includes('sample transcription'));