mirror of
https://github.com/dchakro/shared_Rscripts.git
synced 2026-05-17 09:12:16 -07:00
add code to invoke gptstudio API
This commit is contained in:
parent
d1789fa684
commit
709628702b
1 changed files with 5 additions and 1 deletions
|
|
@ -231,4 +231,8 @@ snippet objectSize
|
|||
snippet unMelt
|
||||
mat <- data.table::dcast.data.table(${1:myDT}, ${2:row} ~ ${3:col}, value.var = "${4:value}")
|
||||
${0}
|
||||
|
||||
|
||||
snippet gptAPI
|
||||
Sys.setenv(OPENAI_API_KEY = "sk-YOURKEYHERE")
|
||||
options(gptstudio.max_tokens = 200)
|
||||
${0}
|
||||
Loading…
Add table
Add a link
Reference in a new issue