Skip to content

chat() ends up with a different default value for echo than direct chat functions #741

@gadenbuie

Description

@gadenbuie
library(ellmer)

chat("openai")$chat("Hi there") # doesn't stream (echo="none")
chat_openai()$chat("Hi there") # streams (echo="output")

This happens because the default value for echo is decided according to where the function is called. Because we call chat_openai() inside chat() we lose the default value.

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