Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pkg-py/docs/models.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@ from querychat.data import titanic
qc = QueryChat(
titanic(),
"titanic",
client="anthropic/claude-sonnet-4-5"
client="anthropic/claude-sonnet-5-5"
)
```

And, if you'd like to effectively set a new default model, you can use the `QUERYCHAT_CLIENT` environment variable.

```shell
export QUERYCHAT_CLIENT="anthropic/claude-sonnet-4-5"
export QUERYCHAT_CLIENT="anthropic/claude-sonnet-5-5"
```

Note that it can also be useful to pass a full `Chat` object to the `client` parameter for more advanced use cases (e.g., custom [parameters](https://posit-dev.github.io/chatlas/get-started/parameters.html), [tools](https://posit-dev.github.io/chatlas/get-started/tools.html), etc). It can also be useful for getting some [helpful autocomplete](https://posit-dev.github.io/chatlas/get-started/models.html#model-type-hints) of available models.

```python
from chatlas import ChatAnthropic

client = ChatAnthropic(model="claude-sonnet-4-5")
client = ChatAnthropic(model="claude-sonnet-5-5")
```

### Credentials
Expand Down
4 changes: 2 additions & 2 deletions pkg-py/src/querychat/_shiny.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class QueryChat(QueryChatBase[IntoFrameT]):
A `chatlas.Chat` object or a string to be passed to
`chatlas.ChatAuto()`'s `provider_model` parameter, describing the
provider and model combination to use (e.g. `"openai/gpt-4.1"`,
"anthropic/claude-sonnet-4-5", "google/gemini-2.5-flash". etc).
"anthropic/claude-sonnet-5-5", "google/gemini-3.8-flash". etc).

If `client` is not provided, querychat consults the
`QUERYCHAT_CLIENT` environment variable. If that is not set, it
Expand Down Expand Up @@ -876,7 +876,7 @@ def data_table():
A `chatlas.Chat` object or a string to be passed to
`chatlas.ChatAuto()`'s `provider_model` parameter, describing the
provider and model combination to use (e.g. `"openai/gpt-4.1"`,
"anthropic/claude-sonnet-4-5", "google/gemini-2.5-flash". etc).
"anthropic/claude-sonnet-5-5", "google/gemini-3.8-flash". etc).

If `client` is not provided, querychat consults the
`QUERYCHAT_CLIENT` environment variable. If that is not set, it
Expand Down
2 changes: 1 addition & 1 deletion pkg-r/R/QueryChat.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
#' qc <- QueryChat$new(mtcars, greeting = greeting)
#'
#' # With a specific LLM provider
#' qc <- QueryChat$new(mtcars, client = "anthropic/claude-sonnet-4-5")
#' qc <- QueryChat$new(mtcars, client = "anthropic/claude-sonnet-5-5")
#'
#' # Generate a greeting for reuse (requires internet/API access)
#' \dontrun{
Expand Down
2 changes: 1 addition & 1 deletion pkg-r/man/QueryChat.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg-r/vignettes/build.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ library(DT)
library(plotly)
library(palmerpenguins)

qc <- QueryChat$new(penguins, client = "claude/claude-sonnet-4-5")
qc <- QueryChat$new(penguins, client = "claude/claude-sonnet-5-5")

ui <- page_sidebar(
sidebar = qc$sidebar(),
Expand Down
6 changes: 3 additions & 3 deletions pkg-r/vignettes/models.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,21 @@ library(ellmer)
To use a particular model, pass a `"{provider}/{model}"` string to the `client` parameter, which gets passed along to `ellmer::chat()`:

```{r}
qc <- querychat(penguins, client = "anthropic/claude-sonnet-4-5")
qc <- querychat(penguins, client = "anthropic/claude-sonnet-5-5")
qc$app() # Launch the app
```

And, if you'd like to effectively set a new default model, you can use the `querychat.client` R option or the `QUERYCHAT_CLIENT` environment variable.

```{r}
# In your .Rprofile
options(querychat.client = "anthropic/claude-sonnet-4-5")
options(querychat.client = "anthropic/claude-sonnet-5-5")
```

Note that it can also be useful to pass a full `Chat` object to the `client` parameter for more advanced use cases (e.g., custom parameters, tools, etc):

```{r}
client <- chat_anthropic(model = "claude-sonnet-4-5")
client <- chat_anthropic(model = "claude-sonnet-5-5")
qc <- querychat(penguins, client = client)
qc$app() # Launch the app
```
Expand Down