Skip to content

Commit

Permalink
🌊 feat: add streaming support for o1 models (#4760)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongkai-neu authored Nov 20, 2024
1 parent 77d1afc commit 7d5be68
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions api/app/clients/OpenAIClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -1308,11 +1308,6 @@ ${convo}
/** @type {(value: void | PromiseLike<void>) => void} */
let streamResolve;

if (modelOptions.stream && this.isO1Model) {
delete modelOptions.stream;
delete modelOptions.stop;
}

if (modelOptions.stream) {
streamPromise = new Promise((resolve) => {
streamResolve = resolve;
Expand Down

0 comments on commit 7d5be68

Please sign in to comment.