You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromchatlasimportChatOllamafromshiny.expressimportui# Might instead be ChatAnthropic, ChatOpenAI, or some other providerchat_client=ChatOllama(model="llama3.2")
chat=ui.Chat(id="my_chat")
chat.ui()
@chat.on_user_submitasyncdefhandle_user_input(user_input: str):
response=awaitchat_client.stream_async(user_input)
awaitchat.append_message_stream(response)
I didn't check every example, but at least several of them have this error. Here is a link to one example:
I noticed a few syntax typos on this page: https://shiny.posit.co/py/docs/genai-chatbots.html#choose-a-template. For example:
Should be: from chatlas import ChatOllama
I didn't check every example, but at least several of them have this error. Here is a link to one example:
py-shiny-site/docs/genai-chatbots.qmd
Line 93 in 2a44a6d
The text was updated successfully, but these errors were encountered: