NVIDIA-NeMo / NVIDIA-NeMo/Guardrails

`generate_events` fails with colang 2.0

Open
#503 7 comments 0 reactions 2 assignees View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.