Skip to content

Conversation

@michaelneale
Copy link
Collaborator

building off #4303 - correctly sets the strreaming flag and actually does stream, improves performance of ollama a bit at least subjectively

thanks @Jovonni

Copy link
Collaborator

@DOsinga DOsinga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but let's dedupe the code

}
}))
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is identical to the streaming implementation of OpenAI. we should reuse that code

@michaelneale
Copy link
Collaborator Author

closing as folded in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants