Skip to content

chattr_app(as_job = TRUE) error with OpenRouter #146

@JCfly3000

Description

@JCfly3000

openrouter_model <- chat_openrouter(
api_key = key_get("openrouter"),
model = "moonshotai/kimi-k2:free"
)

chattr_use(openrouter_model)

chattr_app(as_job = TRUE)

The shinyapp end when input. Error message:

Listening on http://127.0.0.1:7788
Warning: Error in ch_env$ellmer_obj$set_system_prompt: attempt to apply non-function
87: ch_ellmer_init
86: ch_submit.ch_ellmer
84: observe
83: observer:observeEvent(input$submit)
4: shiny::runApp
3: eval
2: eval
1: .rs.sourceWithProgress

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions