Skip to content

Commit 0121251

Browse files
deyaaeldeenstainless-app[bot]
authored andcommitted
fix(azure/tts): avoid stripping model param (#999)
* [Azure] Fix tts required model issue * add tests * remove console.log call
1 parent 0fc2ae4 commit 0121251

File tree

2 files changed

+148
-185
lines changed

2 files changed

+148
-185
lines changed

src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,6 @@ export class AzureOpenAI extends OpenAI {
460460
throw new Error('Expected request body to be an object');
461461
}
462462
const model = this._deployment || options.body['model'];
463-
delete options.body['model'];
464463
if (model !== undefined && !this.baseURL.includes('/deployments')) {
465464
options.path = `/deployments/${model}${options.path}`;
466465
}

0 commit comments

Comments
 (0)