Skip to content

Commit ce85e26

Browse files
committed
Add aliases for ask_le_chat() to ask_mistral() and ask_xai() to ask_grok()
1 parent e682a1c commit ce85e26

File tree

7 files changed

+29
-7
lines changed

7 files changed

+29
-7
lines changed

NAMESPACE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ export(ask_chatgpt)
1111
export(ask_claude)
1212
export(ask_copilot)
1313
export(ask_grok)
14+
export(ask_le_chat)
1415
export(ask_meta_ai)
1516
export(ask_mistral)
1617
export(ask_perplexity)
18+
export(ask_xai)
1719
export(search_bb)
1820
export(search_bing)
1921
export(search_bitbucket)

R/ai-search-functions.R

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,11 @@ ask_perplexity = ai_searcher("perplexity")
149149
#' prompt = "Explain the error and fix it:")
150150
ask_mistral = ai_searcher("mistral")
151151

152+
153+
#' @rdname ask_mistral
154+
#' @export
155+
ask_le_chat = ask_mistral
156+
152157
#' Search with Bing Copilot
153158
#'
154159
#' Searches Microsoft Bing Copilot, which combines web search results
@@ -192,6 +197,10 @@ ask_copilot = ask_bing_copilot
192197
#' prompt = "Focus on efficiency and best practices:")
193198
ask_grok = ai_searcher("grok")
194199

200+
#' @rdname ask_grok
201+
#' @export
202+
ask_xai = ask_grok
203+
195204
#' Search with Meta AI
196205
#'
197206
#' Searches Meta AI, which provides general-purpose AI assistance

R/search-functions.R

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
#' `"twitter"` or `"x"`, `"bluesky"`, `"mastodon"`, `"stackoverflow"`,
1212
#' `"github"`, `"grep"`, `"bitbucket"`,
1313
#' `"chatgpt"`, `"claude"`, `"perplexity"`,
14-
#' `"mistral"`, `"bing copilot"` or `"copilot"`, and
15-
#' `"meta ai"` or `"meta"`.
14+
#' `"mistral"` or `"le chat"`, `"bing copilot"` or `"copilot"`, and
15+
#' `"grok"` or `"xai"`, `"meta ai"` or `"meta"`.
1616
#' @param query Contents of string to search. Default is the error message.
1717
#' @param rlang Search for results written in R. Default is `TRUE`
1818
#' @param prompt Optional prompt prefix to add before your query to guide how the AI
@@ -56,6 +56,7 @@ search_site = function(query,
5656
"mistral",
5757
"bing copilot",
5858
"copilot",
59+
"grok",
5960
"meta ai",
6061
"meta"
6162
),
@@ -92,9 +93,12 @@ search_site = function(query,
9293
chatgpt = ask_chatgpt(query, prompt),
9394
claude = ask_claude(query, prompt),
9495
perplexity = ask_perplexity(query, prompt),
96+
`le chat` = , # empty case carried below
9597
mistral = ask_mistral(query, prompt),
9698
`bing copilot` = , # empty case carried below
9799
copilot = ask_bing_copilot(query, prompt),
100+
xai = , # empty case carried below
101+
grok = ask_grok(query, prompt),
98102
`meta ai` = , # empty case carried below,
99103
meta = ask_meta_ai(query, prompt)
100104
)

man/ask_grok.Rd

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

man/ask_mistral.Rd

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

man/search_site.Rd

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

man/searcher.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.

0 commit comments

Comments
 (0)