Skip to content

Commit

Permalink
Update site
Browse files Browse the repository at this point in the history
  • Loading branch information
hauselin committed May 2, 2024
1 parent d80ef6e commit d8fb97f
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ resp_process(resp, "text") # text vector

#### Utility/helper functions to format and prepare messages for the `chat()` function

Internally, messages are represented as a `list` of many distinct `list` messages. Each list/message object has two elements: `role` (either "user" or "assistant" or "system) and `content` (the message text). The example below shows how the messages/lists are presented.
Internally, messages are represented as a `list` of many distinct `list` messages. Each list/message object has two elements: `role` (can be `"user"` or `"assistant"` or `"system"`) and `content` (the message text). The example below shows how the messages/lists are presented.

```{r eval=FALSE}
list( # main list containing all the messages
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,9 @@ resp_process(resp, "text") # text vector
#### Utility/helper functions to format and prepare messages for the `chat()` function

Internally, messages are represented as a `list` of many distinct `list`
messages. Each list/message object has two elements: `role` (either
user or assistant or system) and `content` (the message text). The
example below shows how the messages/lists are presented.
messages. Each list/message object has two elements: `role` (can be
`"user"` or `"assistant"` or `"system"`) and `content` (the message
text). The example below shows how the messages/lists are presented.

``` r
list( # main list containing all the messages
Expand Down
29 changes: 29 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
url: https://hauselin.github.io/ollama-r/

template:
bootstrap: 5

reference:
- title: API calls
desc: Functions to make calls to the Ollama server/API
contents:
- list_models
- pull
- delete
- generate
- chat
- embeddings
- test_connection
- create_request

- subtitle: Utility or convenience functions
desc: Functions that are useful for working with the Ollama API
contents:
- resp_process
- create_message
- append_message
- prepend_message
- delete_message
- insert_message

- subtitle: Miscellaneous functions and variables
desc: Functions and variables used internally by the package
contents:
- package_config

0 comments on commit d8fb97f

Please sign in to comment.