Skip to content

Commit

Permalink
Merge pull request #33 from imclerran/update-docs
Browse files Browse the repository at this point in the history
Clarify that Chat.initClient and Prompt.initClient are Client.inti
  • Loading branch information
imclerran authored Dec 28, 2024
2 parents b319473 + 772e299 commit 4a72327
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions package/Chat.roc
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Client : Client.Client
## ```
## client = Chat.initClient { apiKey: "your_openrouter_api_key" }
## ```
## Same as `Client.init`.
initClient = Client.init

## The OpenAI ChatML standard message used to query the AI model.
Expand Down
7 changes: 5 additions & 2 deletions package/Prompt.roc
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,11 @@ PromptResponseBody : {
},
}

## Initialize the OpenRouter API client with the required API key.
## Other parameters may optionally be set during initialization, or assigned later using the Client module setters.
## Initialize the OpenRouter API client with the required API key. All parameters besides apiKey are completely optional, and may be set during initialization, assigned later, or left as their defaults.
## ```
## client = Chat.initClient { apiKey: "your_openrouter_api_key" }
## ```
## Same as `Client.init`.
initClient = Client.init

## Create a request object to be sent with basic-cli's Http.send using a prompt string
Expand Down

0 comments on commit 4a72327

Please sign in to comment.