Skip to content

Commit

Permalink
Merge pull request #107 from pawelqs/add-support-for-gpt4o
Browse files Browse the repository at this point in the history
Add support for GPT-4 Omni
  • Loading branch information
edgararuiz authored May 21, 2024
2 parents c34c505 + 7360184 commit 14893b9
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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", , "[email protected]", role = c("aut", "cre")),
person(given = "Posit Software, PBC", role = c("cph", "fnd"))
Expand Down
33 changes: 33 additions & 0 deletions inst/configs/gpt4o.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 14893b9

Please sign in to comment.