Skip to content

Commit

Permalink
Update HistoriesGPT
Browse files Browse the repository at this point in the history
  • Loading branch information
boiled-data committed Dec 14, 2023
1 parent 5438b8b commit a63c5b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/HistoriesGPT.html
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ <h4 class="date">5 Dec 2023</h4>


<pre class="r"><code>#Preliminaries:
knitr::opts_chunk$set(message=FALSE, warning=FALSE, eval = TRUE) #set eval = TRUE when run first
knitr::opts_chunk$set(message=FALSE, warning=FALSE, eval = TRUE)

rm(list=ls())

Expand Down Expand Up @@ -403,7 +403,7 @@ <h2>Introduction</h2>
response &lt;- create_chat_completion(model,
messages = messages ,
temperature = temperature,
openai_api_key = Sys.getenv(&quot;OPENAI_API_KEY&quot;), #you need to add openai key to global environment
openai_api_key = Sys.getenv(&quot;OPENAI_API_KEY&quot;), #add your openai key to the environment variables
)
return(response$choices$message.content)

Expand Down
4 changes: 2 additions & 2 deletions docs/Scale.html

Large diffs are not rendered by default.

0 comments on commit a63c5b8

Please sign in to comment.