Skip to content

Should allow empty prompt in $chat_structured() #570

Description

@hadley
chat <- chat_anthropic()

chat$chat(
  content_image_file("holly-mandarich-3p9zaNwUtv8-unsplash.jpg"),
  "Describe this photo"
)

chat$chat_structured("", type = type_object(
  person = type_boolean("Is there a person in the photo?"),
  landscape = type_string("Briefly describe the landscape")
))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions