Skip to content

Commit

Permalink
Use #opts.apiVersion (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
brianbscho authored Feb 13, 2025
1 parent c279433 commit 45432d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/openai/src/realtime/realtime_model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ export class RealtimeSession extends multimodal.RealtimeSession {
// Construct query parameters
const queryParams: Record<string, string> = {};
if (this.#opts.isAzure) {
queryParams['api-version'] = '2024-10-01-preview';
queryParams['api-version'] = this.#opts.apiVersion ?? '2024-10-01-preview';
queryParams['deployment'] = this.#opts.model;
} else {
queryParams['model'] = this.#opts.model;
Expand Down

0 comments on commit 45432d3

Please sign in to comment.