Skip to content

chat_databricks() barfs when tool calls are registered #548

Description

@atheriel

It seems that Databricks's tool serialization is not OpenAI compatible after all:

> chat <- chat_databricks(model = "databricks-claude-3-7-sonnet")
> chat$register_tool(tool(
  function() format(Sys.Date()),
  .name = "current_date",
  .description = "Returns the current date in ISO 8601 format."
))
> chat$chat("What's the current date in Y-M-D format?")
Error in `req_perform_connection()` at elmer/R/httr2.R:37:5:
! HTTP 400 Bad Request.tools.0.custom.strict: Extra inputs are not permitted

Reported by @blairj09.

Activity

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

Metadata

Metadata

Assignees

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