File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed
Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 4949 "@openapitools/openapi-generator-cli" : " ^2.7.0" ,
5050 "@rollup/plugin-replace" : " ^5.0.2" ,
5151 "@rollup/plugin-typescript" : " ^11.1.4" ,
52- "@stream-io/openai-realtime-api" : " ~0.1.0 " ,
52+ "@stream-io/openai-realtime-api" : " ~0.1.1 " ,
5353 "@types/uuid" : " ^9.0.4" ,
5454 "@typescript-eslint/eslint-plugin" : " ^6.4.0" ,
5555 "dotenv" : " ^16.3.1" ,
7676 "uuid" : " ^9.0.1"
7777 },
7878 "peerDependencies" : {
79- "@stream-io/openai-realtime-api" : " ~0.1.0 "
79+ "@stream-io/openai-realtime-api" : " ~0.1.1 "
8080 },
8181 "peerDependenciesMeta" : {
8282 "@stream-io/openai-realtime-api" : {
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ import { StreamCall } from './StreamCall';
33import type { StreamClient } from './StreamClient' ;
44import type { ApiConfig } from './types' ;
55import type {
6- RealtimeClient ,
76 createRealtimeClient ,
7+ RealtimeClient ,
88} from '@stream-io/openai-realtime-api' ;
99
1010export class StreamVideoClient extends VideoApi {
@@ -26,7 +26,8 @@ export class StreamVideoClient extends VideoApi {
2626 call : StreamCall ;
2727 agentUserId : string ;
2828 openAiApiKey : string ;
29- validityInSeconds : number ;
29+ model ?: Parameters < typeof createRealtimeClient > [ 0 ] [ 'model' ] ;
30+ validityInSeconds ?: number ;
3031 } ) : Promise < RealtimeClient > => {
3132 let doCreateRealtimeClient : typeof createRealtimeClient ;
3233
@@ -55,6 +56,7 @@ export class StreamVideoClient extends VideoApi {
5556 streamApiKey : this . apiConfig . apiKey ,
5657 streamUserToken : token ,
5758 openAiApiKey : options . openAiApiKey ,
59+ model : options . model ,
5860 } ) ;
5961
6062 await realtimeClient . connect ( ) ;
Original file line number Diff line number Diff line change 488488 resolved "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz"
489489 integrity sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==
490490
491- " @stream-io/openai-realtime-api@~0.1.0 " :
492- version "0.1.0 "
493- resolved "https://registry.yarnpkg.com/@stream-io/openai-realtime-api/-/openai-realtime-api-0.1.0 .tgz#d14db921e96dbbb5e3a71c566f920f8040ca5b55 "
494- integrity sha512-oT6lvxH0rl+lwQLSLFz3UJRFjh/JoqbpE6GCDvOf8Jw05wmslPhrozSqdt8VkCUap+fkPI8LUPfRCWc+HgJp9Q ==
491+ " @stream-io/openai-realtime-api@~0.1.1 " :
492+ version "0.1.1 "
493+ resolved "https://registry.yarnpkg.com/@stream-io/openai-realtime-api/-/openai-realtime-api-0.1.1 .tgz#fe9e7404d2efa2e88bbb8dc9b8c7f52d50254d9f "
494+ integrity sha512-gmfcy+bcPDTn78R3CHi66XLL0YbZjZP2eD8Ja/AlGiRHM3S7IP4bjeFrFBPnOngTOMYwMuSU4xOehhMwCBuh6w ==
495495 dependencies :
496496 " @openai/realtime-api-beta" openai/openai-realtime-api-beta#a5cb94824f625423858ebacb9f769226ca98945f
497497 ws "^8.18.0"
You can’t perform that action at this time.
0 commit comments