File tree 13 files changed +12
-28
lines changed
agent-telephony/twilio-livekit/agent
agent-voice/livekit/agent
13 files changed +12
-28
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,7 @@ export const llm = async ({
18
18
} : OpenAIChatInput ) : Promise < string > => {
19
19
try {
20
20
const openai = new OpenAI ( {
21
- baseURL : "https://ai.restack.io" ,
22
- apiKey : process . env . RESTACK_API_KEY ,
21
+ apiKey : process . env . OPENAI_API_KEY ,
23
22
} ) ;
24
23
25
24
const chatParams : ChatCompletionCreateParamsNonStreaming = {
Original file line number Diff line number Diff line change 1
-
2
- # For inference
3
- RESTACK_API_KEY =
1
+ OPENAI_API_KEY =
4
2
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import "dotenv/config";
4
4
let openaiInstance : OpenAI | null = null ;
5
5
6
6
export const openaiClient = ( {
7
- apiKey = process . env . RESTACK_API_KEY ,
7
+ apiKey = process . env . OPENAI_API_KEY ,
8
8
} : {
9
9
apiKey ?: string ;
10
10
} ) : OpenAI => {
Original file line number Diff line number Diff line change 1
-
2
- # For inference
3
- RESTACK_API_KEY =
1
+ OPENAI_API_KEY =
4
2
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import "dotenv/config";
4
4
let openaiInstance : OpenAI | null = null ;
5
5
6
6
export const openaiClient = ( {
7
- apiKey = process . env . RESTACK_API_KEY ,
7
+ apiKey = process . env . OPENAI_API_KEY ,
8
8
} : {
9
9
apiKey ?: string ;
10
10
} ) : OpenAI => {
Original file line number Diff line number Diff line change 1
-
2
- # For inference
3
- RESTACK_API_KEY =
1
+ OPENAI_API_KEY =
4
2
Original file line number Diff line number Diff line change 1
-
2
- RESTACK_API_KEY =
3
-
4
1
LIVEKIT_API_KEY =
5
2
LIVEKIT_API_SECRET =
6
3
LIVEKIT_URL =
Original file line number Diff line number Diff line change 1
-
2
- # For inference
3
- RESTACK_API_KEY =
1
+ OPENAI_API_KEY =
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import "dotenv/config";
4
4
let openaiInstance : OpenAI | null = null ;
5
5
6
6
export const openaiClient = ( {
7
- apiKey = process . env . RESTACK_API_KEY ,
7
+ apiKey = process . env . OPENAI_API_KEY ,
8
8
} : {
9
9
apiKey ?: string ;
10
10
} ) : OpenAI => {
Original file line number Diff line number Diff line change 1
-
2
- # For inference
3
- RESTACK_API_KEY =
1
+ OPENAI_API_KEY =
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import "dotenv/config";
4
4
let openaiInstance : OpenAI | null = null ;
5
5
6
6
export const openaiClient = ( {
7
- apiKey = process . env . RESTACK_API_KEY ,
7
+ apiKey = process . env . OPENAI_API_KEY ,
8
8
} : {
9
9
apiKey ?: string ;
10
10
} ) : OpenAI => {
Original file line number Diff line number Diff line change 1
-
2
- # For inference
3
- RESTACK_API_KEY =
1
+ OPENAI_API_KEY =
Original file line number Diff line number Diff line change 1
1
# Deploy on Restack Cloud
2
- RESTACK_API_KEY =
2
+ OPENAI_API_KEY =
You can’t perform that action at this time.
0 commit comments