Skip to content

Commit

Permalink
Disable fake streaming in O1 (#118)
Browse files Browse the repository at this point in the history
OpenAI now supports it!
  • Loading branch information
ankrgyl authored Nov 19, 2024
1 parent d3b1f34 commit d24b531
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/proxy/src/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1037,13 +1037,16 @@ async function fetchOpenAI(
}));
}

// O1 now supports streaming! Leaving this in in case we hit unexpected issues.
/*
return fetchOpenAIFakeStream({
method,
fullURL,
headers,
bodyData,
setHeader,
});
*/
}

const proxyResponse = await fetch(
Expand Down

0 comments on commit d24b531

Please sign in to comment.