Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a simpler one-time chat api #83

Closed
wants to merge 1 commit into from
Closed

Conversation

Binozo
Copy link

@Binozo Binozo commented Sep 17, 2024

Hello 🤠

I needed a simpler api to one-time chat with my ollama endpoint
Hope it fits well

@awaescher
Copy link
Owner

Hey Binozo, thanks for helping out. May I ask what the intention is for the changes you added?

@Binozo
Copy link
Author

Binozo commented Sep 17, 2024

In my use case I built a RAG system and need a simple way to chat with a model once, because I got one question and I want one answer. The way through IAsyncEnumerable<ChatResponseStream?> Chat was a little confusing for me 😅

@awaescher
Copy link
Owner

Hm, I guess you would have needed StreamToEnd() if I understand correctly. This is available as extension method to IAsyncEnumerable<T>. See the announcement of version 3.0.

@Binozo
Copy link
Author

Binozo commented Sep 17, 2024

Oh I wan't aware of that, thanks for the clarification!

@Binozo Binozo closed this Sep 17, 2024
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.

2 participants