matthoffner commited on
Commit
e8ed8bb
·
1 Parent(s): a551dfc

Update utils/server/index.ts

Browse files
Files changed (1) hide show
  1. 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}/v1/chat/completions`;
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'