Skip to content

Commit

Permalink
Document the schema argument
Browse files Browse the repository at this point in the history
  • Loading branch information
ariya committed Nov 13, 2024
1 parent af55496 commit 7a89b71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions query-llm.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ const unJSON = (text) => {
* Generates a chat completion using a RESTful LLM API service.
*
* @param {Array<Message>} messages - List of chat messages.
* @param {Object} schema - An optional JSON schema for the completion.
* @param {CompletionHandler=} handler - An optional callback to stream the completion.
* @returns {Promise<string>} The completion generated by the LLM.
*/
Expand Down

0 comments on commit 7a89b71

Please sign in to comment.