diff --git a/DESCRIPTION b/DESCRIPTION index 09bb77d..8d0748f 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: chattr Title: Interact with Large Language Models in 'RStudio' -Version: 0.1.0.9001 +Version: 0.1.0.9002 Authors@R: c( person("Edgar", "Ruiz", , "edgar@posit.co", role = c("aut", "cre")), person(given = "Posit Software, PBC", role = c("cph", "fnd")) diff --git a/inst/configs/gpt4o.yml b/inst/configs/gpt4o.yml new file mode 100644 index 0000000..6b8c938 --- /dev/null +++ b/inst/configs/gpt4o.yml @@ -0,0 +1,33 @@ +default: + prompt: | + {readLines(system.file('prompt/base.txt', package = 'chattr'))} + provider: OpenAI - Chat Completions + path: https://api.openai.com/v1/chat/completions + label: GPT 4 Omni (OpenAI) + model: gpt-4o + max_data_files: 0 + max_data_frames: 0 + include_doc_contents: FALSE + include_history: TRUE + system_msg: You are a helpful coding assistant + model_arguments: + temperature: 0.01 + max_tokens: 1000 + stream: TRUE +chat: + prompt: | + {readLines(system.file('prompt/base.txt', package = 'chattr'))} + For code output, use RMarkdown code chunks + Avoid all code chunk options +console: + prompt: | + {readLines(system.file('prompt/base.txt', package = 'chattr'))} + For any line that is not code, prefix with a: # + Keep each line of explanations to no more than 80 characters + DO NOT use Markdown for the code +script: + prompt: | + {readLines(system.file('prompt/base.txt', package = 'chattr'))} + For any line that is not code, prefix with a: # + Keep each line of explanations to no more than 80 characters + DO NOT use Markdown for the code