Spaces:
Runtime error
Runtime error
matthoffner
commited on
Commit
·
e8ed8bb
1
Parent(s):
a551dfc
Update utils/server/index.ts
Browse files- utils/server/index.ts +1 -1
utils/server/index.ts
CHANGED
@@ -30,7 +30,7 @@ export const OpenAIStream = async (
|
|
30 |
key: string,
|
31 |
messages: Message[],
|
32 |
) => {
|
33 |
-
let url = `${OPENAI_API_HOST}/
|
34 |
const res = await fetch(url, {
|
35 |
headers: {
|
36 |
'Content-Type': 'application/json'
|
|
|
30 |
key: string,
|
31 |
messages: Message[],
|
32 |
) => {
|
33 |
+
let url = `${OPENAI_API_HOST}/v0/chat/completions`;
|
34 |
const res = await fetch(url, {
|
35 |
headers: {
|
36 |
'Content-Type': 'application/json'
|