microsoft / genaiscript

Generative AI Scripting
https://microsoft.github.io/genaiscript/
MIT License
81 stars 22 forks source link

configurable max data repairs #549

Closed pelikhan closed 2 weeks ago

pelikhan commented 2 weeks ago

generated by pr-describe

github-actions[bot] commented 2 weeks ago

The changes in the pull request appear to be primarily around message formatting and the handling of data repairs within the chat functionality.

  1. The repair message formatting has been changed to use a dedent template literal with some modified text.
  2. The maximum number of data repairs allowed (maxDataRepairs) is now also an option that can be set when calling processChatMessage, falling back to a default if not set.
  3. A comment has been added in the definition file to clarify that format refers to the output format in the prompt.

Concerns: No major functionality concerns. However, make sure that the consumers of the processChatMessage function are aware of the new maxDataRepairs option and its implications.

LGTM :rocket:

generated by pr-review