Skip to content

Commit 14893b9

Browse files
authored
Merge pull request #107 from pawelqs/add-support-for-gpt4o
Add support for GPT-4 Omni
2 parents c34c505 + 7360184 commit 14893b9

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: chattr
22
Title: Interact with Large Language Models in 'RStudio'
3-
Version: 0.1.0.9001
3+
Version: 0.1.0.9002
44
Authors@R: c(
55
person("Edgar", "Ruiz", , "[email protected]", role = c("aut", "cre")),
66
person(given = "Posit Software, PBC", role = c("cph", "fnd"))

inst/configs/gpt4o.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
default:
2+
prompt: |
3+
{readLines(system.file('prompt/base.txt', package = 'chattr'))}
4+
provider: OpenAI - Chat Completions
5+
path: https://api.openai.com/v1/chat/completions
6+
label: GPT 4 Omni (OpenAI)
7+
model: gpt-4o
8+
max_data_files: 0
9+
max_data_frames: 0
10+
include_doc_contents: FALSE
11+
include_history: TRUE
12+
system_msg: You are a helpful coding assistant
13+
model_arguments:
14+
temperature: 0.01
15+
max_tokens: 1000
16+
stream: TRUE
17+
chat:
18+
prompt: |
19+
{readLines(system.file('prompt/base.txt', package = 'chattr'))}
20+
For code output, use RMarkdown code chunks
21+
Avoid all code chunk options
22+
console:
23+
prompt: |
24+
{readLines(system.file('prompt/base.txt', package = 'chattr'))}
25+
For any line that is not code, prefix with a: #
26+
Keep each line of explanations to no more than 80 characters
27+
DO NOT use Markdown for the code
28+
script:
29+
prompt: |
30+
{readLines(system.file('prompt/base.txt', package = 'chattr'))}
31+
For any line that is not code, prefix with a: #
32+
Keep each line of explanations to no more than 80 characters
33+
DO NOT use Markdown for the code

0 commit comments

Comments
 (0)