Version 0.6.0
This new release has two major changes:
pdl-lint
, a linter for PDL programs (thanks to @vite-falcon!)- mesages in the context with the same role are not automatically merged anymore.
For example, the following program generates 3 messages:
lastOf:
- role: user
text:
- hello
- "\n"
- world
- ${pdl_context}
result:
[{"role": "user", "content": "hello", "defsite": "lastOf.text.0"}, {"role": "user", "content": "\n", "defsite": "lastOf.text.1"}, {"role": "user", "content": "world", "defsite": "lastOf.text.2"}]
To generate only one message, you have to use a message
block:
lastOf:
- role: user
content:
text:
- hello
- "\n"
- world
- ${pdl_context}
result
[{"role": "user", "content": "hello\nworld", "defsite": "lastOf.message"}]
What's Changed
- Switch to granite-io version 0.2 by @mandel in #818
- feat: update beeai compiler to support compiling directly from python source by @starpit in #834
- Examples restructuring, tutorial changes by @vazirim in #836
- Bug fixes for setting default parameters by @vazirim in #838
- fix: pdl view trace.json fixes by @starpit in #843
- fix: Bug in pdl_schema_error_analyzer that raises exception during analysis by @vite-falcon in #851
- Clean up run examples and automate result updating via GH Actions by @jgchn in #853
- feat: do not merge messages with same role by @mandel in #846
- fixes to react examples by @vazirim in #859
- feat:
message
blocks contribute the message instead of the content to the context by @mandel in #862 - feat: do not stringify messages content by @mandel in #858
- feat: rust interpreter by @starpit in #857
- gsm8k plan with few-shots by @vazirim in #870
- feat: add pdl-lint tool that can be configured via pyproject.toml by @vite-falcon in #864
New Contributors
- @vite-falcon made their first contribution in #851
Full Changelog: v0.5.1...v0.6.0