jbkunst / jbkunst/shiny-chat-patterns

probar rendimiento con version local de ollama

Open
#1 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
0
Forks
0
Avg merge
19h 30m
Merged PRs (30d)
5

Description

https://masto.machlis.com/@smach/113918164751484290

```
library(shiny)
library(shinychat)
ui <- bslib::page_fluid(chat_ui("chat"))
server <- function(input, output, session) {
chat <- ellmer::chat_ollama(model = "gemma2")
observeEvent(input$chat_user_input, {
stream <- chat$stream_async(input$chat_user_input)
chat_append("chat", stream)
})
}
shinyApp(ui, server)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.