Skip to content

Commit 9b09eba

Browse files
authored
Default to Claude 3.7 Sonnet in chat_databricks() (#546)
Ibid. This is the same as Anthropic and Snowflake default to. Signed-off-by: Aaron Jacobs <[email protected]>
1 parent 5467c5c commit 9b09eba

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

NEWS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
(#521, @atheriel).
77
* `chat_snowflake()` no longer streams answers that include a mysterious
88
`list(type = "text", text = "")` trailer (#533, @atheriel).
9-
* `chat_snowflake()` now defaults to Claude Sonnet 3.7, the same default as
10-
`chat_anthropic()` (#539, @atheriel).
9+
* `chat_snowflake()` and `chat_databricks()` now default to Claude Sonnet 3.7,
10+
the same default as `chat_anthropic()` (#539 and #546, @atheriel).
1111
* `chat_snowflake()` now parses streaming outputs correctly into turns (#542,
1212
@atheriel).
1313
* `chat_snowflake()` now supports structured ouputs and standard model

R/provider-databricks.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030
#' @param workspace The URL of a Databricks workspace, e.g.
3131
#' `"https://example.cloud.databricks.com"`. Will use the value of the
3232
#' environment variable `DATABRICKS_HOST`, if set.
33-
#' @param model `r param_model("databricks-dbrx-instruct")`
33+
#' @param model `r param_model("databricks-claude-3-7-sonnet")`
3434
#'
3535
#' Available foundational models include:
3636
#'
37-
#' - `databricks-dbrx-instruct` (the default)
37+
#' - `databricks-claude-3-7-sonnet` (the default)
3838
#' - `databricks-mixtral-8x7b-instruct`
3939
#' - `databricks-meta-llama-3-1-70b-instruct`
4040
#' - `databricks-meta-llama-3-1-405b-instruct`
@@ -58,7 +58,7 @@ chat_databricks <- function(
5858
) {
5959
check_string(workspace, allow_empty = FALSE)
6060
check_string(token, allow_empty = FALSE, allow_null = TRUE)
61-
model <- set_default(model, "databricks-dbrx-instruct")
61+
model <- set_default(model, "databricks-claude-3-7-sonnet")
6262
echo <- check_echo(echo)
6363
if (!is.null(token)) {
6464
credentials <- function() list(Authorization = paste("Bearer", token))

man/chat_databricks.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/testthat/_snaps/provider-databricks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Code
44
. <- chat_databricks()
55
Message
6-
Using model = "databricks-dbrx-instruct".
6+
Using model = "databricks-claude-3-7-sonnet".
77

88
# M2M authentication requests look correct
99

0 commit comments

Comments
 (0)