Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add initial Hugging Face support #359

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
couple of typos
  • Loading branch information
s-spavound committed Mar 7, 2025
commit bf82d7fe226ec53ca6ed1114824eea9e66d45d78
2 changes: 1 addition & 1 deletion R/provider-huggingface.r
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ chat_hf <- function(system_prompt = NULL,
chat_openai(
system_prompt = system_prompt,
turns = turns,
# modify base_url for hugging face compatability with openai
# modify base_url for hugging face compatibility with openai
base_url = paste0(base_url, model, "/v1"),
api_key = api_key,
model = model,
Expand Down
2 changes: 1 addition & 1 deletion R/provider-openai.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ NULL
#' Answer with a bulleted list
#' ")
#'
#' chat$chat("Tell me three funny jokes about statistcians")
#' chat$chat("Tell me three funny jokes about statisticians")
chat_openai <- function(system_prompt = NULL,
turns = NULL,
base_url = "https://api.openai.com/v1",
Expand Down