Skip to content

Commit

Permalink
Refinements to readme - Using completion results
Browse files Browse the repository at this point in the history
  • Loading branch information
robatwilliams committed Dec 19, 2023
1 parent 66a46db commit ac8380f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# OpenAI API Functions for Excel

> Create OpenAI chat completions from an Excel formula
> Create OpenAI chat completions from Excel formulas
Developer oriented Excel add-in that provides `=OAI.CHAT_COMPLETE()` and helpers. Use the power of spreadsheets for prompt engineering, prompt decomposition, prototyping systems, and more.

Expand All @@ -27,11 +27,11 @@ See the [function metadata](https://github.com/robatwilliams/openai-excel-formul

## Using completion results

Completions populate the cell with a custom data type which includes the complate API request and response, and whose text value is the content of the first completion choice.
Completions populate the cell with a custom data type which includes the complete API request and response. Its text value is the content of the first completion choice.

To view the completion data, open the entity card. The `_lines` property provides a convenience view of the completion content.
To obtain the text value for use in formulas, use the `VALUETOTEXT()` function. To obtain other request/response data, use dot notation to the property path (e.g. `A123.response.model`).

To obtain the text value for use in formulas, use the `VALUETOTEXT()` function. To obtain other request/response data, use dot notation to the property path.
To view the completion data, open the entity card. The `_lines` property provides a line-by-line view of the completion content.

To extract a final answer that follows a chain of thought, you could use a formula such as:

Expand Down

0 comments on commit ac8380f

Please sign in to comment.