NVIDIA-NeMo / NVIDIA-NeMo/Guardrails
`generate_events` fails with colang 2.0
Open
@Pouyanpi is already working on this.
Since Nov 1, 2024.
bug
- Dominant language
- Python
- Stars
- 7.2k
- Forks
- 842
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 25
Description
Calling generate_events for a colang 2.0 config aborts
Traceback (most recent call last):
File "/Users/greg/Dev/nemo/NeMo-Guardrails-rgstephens/generate_events.py", line 19, in <module>
new_events = app.generate_events(
File "/Users/greg/Dev/nemo/NeMo-Guardrails-rgstephens/nemoguardrails/rails/llm/llmrails.py", line 947, in generate_events
return loop.run_until_complete(self.generate_events_async(events=events))
File "/Users/greg/.pyenv/versions/3.10.13/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/Users/greg/Dev/nemo/NeMo-Guardrails-rgstephens/nemoguardrails/rails/llm/llmrails.py", line 919, in generate_events_async
new_events = await self.runtime.generate_events(
TypeError: RuntimeV2_x.generate_events() got an unexpected keyword argument 'processing_log'
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.