-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #107 from pawelqs/add-support-for-gpt4o
Add support for GPT-4 Omni
- Loading branch information
Showing
2 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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")) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |