Skip to content

Commit 30447d0

Browse files
authored
Merge pull request #140 from restackio/remove-base-url-restack
Make onboarding better
2 parents c69e4d3 + 2462d2a commit 30447d0

File tree

21 files changed

+17
-128
lines changed

21 files changed

+17
-128
lines changed

agent-apis/.env.example

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1 @@
1-
OPENAI_API_KEY=
2-
3-
# Restack
4-
5-
RESTACK_ENGINE_ID=
6-
RESTACK_ENGINE_ADDRESS=
7-
RESTACK_ENGINE_API_KEY=
8-
9-
RESTACK_CLOUD_TOKEN=
1+
OPENAI_API_KEY=

agent-apis/src/functions/llm.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ export const llm = async ({
1818
}: OpenAIChatInput): Promise<string> => {
1919
try {
2020
const openai = new OpenAI({
21-
baseURL: "https://ai.restack.io",
22-
apiKey: process.env.RESTACK_API_KEY,
21+
apiKey: process.env.OPENAI_API_KEY,
2322
});
2423

2524
const chatParams: ChatCompletionCreateParamsNonStreaming = {

agent-chat/.env.example

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,2 @@
1-
2-
# For inference
3-
RESTACK_API_KEY=
4-
5-
# For Restack Cloud deployment
6-
RESTACK_ENGINE_ID=
7-
RESTACK_ENGINE_ADDRESS=
8-
RESTACK_ENGINE_API_KEY=
9-
RESTACK_ENGINE_API_ADDRESS=
1+
OPENAI_API_KEY=
102

agent-chat/src/utils/client.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import "dotenv/config";
44
let openaiInstance: OpenAI | null = null;
55

66
export const openaiClient = ({
7-
apiKey = process.env.RESTACK_API_KEY,
7+
apiKey = process.env.OPENAI_API_KEY,
88
}: {
99
apiKey?: string;
1010
}): OpenAI => {
@@ -14,7 +14,6 @@ export const openaiClient = ({
1414

1515
if (!openaiInstance) {
1616
openaiInstance = new OpenAI({
17-
baseURL: "https://ai.restack.io",
1817
apiKey,
1918
});
2019
}

agent-rag/.env.example

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,2 @@
1-
2-
# For inference
3-
RESTACK_API_KEY=
4-
5-
# For Restack Cloud deployment
6-
RESTACK_ENGINE_ID=
7-
RESTACK_ENGINE_ADDRESS=
8-
RESTACK_ENGINE_API_KEY=
9-
RESTACK_ENGINE_API_ADDRESS=
1+
OPENAI_API_KEY=
102

agent-rag/src/utils/client.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import "dotenv/config";
44
let openaiInstance: OpenAI | null = null;
55

66
export const openaiClient = ({
7-
apiKey = process.env.RESTACK_API_KEY,
7+
apiKey = process.env.OPENAI_API_KEY,
88
}: {
99
apiKey?: string;
1010
}): OpenAI => {
@@ -14,7 +14,6 @@ export const openaiClient = ({
1414

1515
if (!openaiInstance) {
1616
openaiInstance = new OpenAI({
17-
baseURL: "https://ai.restack.io",
1817
apiKey,
1918
});
2019
}

agent-reactflow/apps/backend/.env.example

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,3 @@
22
# For inference
33
OPENAI_API_KEY=
44

5-
# For Restack Cloud deployment
6-
RESTACK_ENGINE_ID=
7-
RESTACK_ENGINE_ADDRESS=
8-
RESTACK_ENGINE_API_KEY=
9-
RESTACK_ENGINE_API_ADDRESS=
10-

agent-stream/.env.example

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,2 @@
1-
2-
# For inference
3-
RESTACK_API_KEY=
4-
5-
# For Restack Cloud deployment
6-
RESTACK_ENGINE_ID=
7-
RESTACK_ENGINE_ADDRESS=
8-
RESTACK_ENGINE_API_KEY=
9-
RESTACK_ENGINE_API_ADDRESS=
1+
OPENAI_API_KEY=
102

agent-stream/src/utils/client.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export const openaiClient = ({
1414

1515
if (!openaiInstance) {
1616
openaiInstance = new OpenAI({
17-
// baseURL: "https://ai.restack.io",
1817
apiKey,
1918
});
2019
}
Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
2-
RESTACK_API_KEY=
3-
41
LIVEKIT_API_KEY=
52
LIVEKIT_API_SECRET=
63
LIVEKIT_URL=
@@ -12,11 +9,4 @@ TWILIO_TRUNK_TERMINATION_SIP_URL="trunkId.pstn.twilio.com"
129

1310
ELEVEN_API_KEY=
1411
DEEPGRAM_API_KEY=
15-
OPENAI_API_KEY=
16-
17-
# # For Restack Cloud deployment
18-
# RESTACK_ENGINE_ID=
19-
# RESTACK_ENGINE_ADDRESS=
20-
# RESTACK_ENGINE_API_KEY=
21-
# RESTACK_ENGINE_API_ADDRESS=
22-
12+
OPENAI_API_KEY=

0 commit comments

Comments
 (0)