Skip to content

Commit

Permalink
Update README and docs for model naming
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatcherC committed Oct 4, 2023
1 parent b742b34 commit 17a07e3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,16 @@ $ OPENAI_API_KEY=<key goes here> julia

Note that when the environment variable is used, the key is **not** saved to the `LocalPreferences.toml` file.

## Selecting a Model
The OpenAI model name can be selected with the `ReplGPT.setmodelname(...)` function:
```julia
# Select gpt-3.5-turbo (default):
ReplGPT.setmodelname("gpt-3.5-turbo")

# Select gpt-4
ReplGPT.setmodelname("gpt-4")
```

---

Inspiration drawn from
Expand Down
10 changes: 10 additions & 0 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ ReplGPT.setAPIkey(key::String)
ReplGPT.clearAPIkey()
```

## Model Selection

```@docs
ReplGPT.setmodelname(model::String)
ReplGPT.getmodelname()
ReplGPT.clearmodelname()
```

## Conversation Management

```@docs
Expand Down

2 comments on commit 17a07e3

@ThatcherC
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/92729

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.4.0 -m "<description of version>" 17a07e35929a0483546690bd230048988093dd24
git push origin v0.4.0

Please sign in to comment.