Replies: 4 comments 1 reply
-
Hi @gykung, |
Beta Was this translation helpful? Give feedback.
-
Have a look at our OpenAI assistant example: nicegui/examples/openai_assistant/main.py Lines 36 to 50 in 78a5035 Also the langchain example might be helpful: nicegui/examples/chat_with_ai/main.py Lines 23 to 28 in c8c3dd7 |
Beta Was this translation helpful? Give feedback.
-
@rodja thanks! This works. Next I would try to figure out how to make it show the previous turns (history from user/bot), UI as speech bubbles ('bot' aligned left, 'user' aligned right), and the input box to always stick to the bottom (similar to most chat apps)... I think NiceGUI is not well known enough - I did not manage to find this example via Google, perhaps I was using the wrong keywords. |
Beta Was this translation helpful? Give feedback.
-
Have you launched the examples? Most of what you write is already implement...
Yes. SEO and marketing are not our strong suits. But try the search on our website https://nicegui.io. It should show you the examples you are looking for when you search "chat app". |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Would anyone know how we can stream responses from the OpenAI chat.completions endpoint?
Beta Was this translation helpful? Give feedback.
All reactions