Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: meta.update() fails when meta = None #1775

Closed
zoltan-fedor opened this issue Apr 18, 2024 · 1 comment
Closed

bug: meta.update() fails when meta = None #1775

zoltan-fedor opened this issue Apr 18, 2024 · 1 comment

Comments

@zoltan-fedor
Copy link

zoltan-fedor commented Apr 18, 2024

Describe the bug

I believe this Commit langfuse/langfuse-python@da264a9 from last week has introduced a bug at https://github.com/langfuse/langfuse-python/blame/main/langfuse/callback/langchain.py#L722 by allowing returning None (edit: it seems the version before the commit has also allowed returning None, so it is interesting why I only see this now), which then fails at https://github.com/langfuse/langfuse-python/blame/main/langfuse/callback/langchain.py#L445, as None doesn't have an update() method

To reproduce

Run a callback with no metadata or tags and you will hit an error:

File "/..../lib/python3.10/site-packages/langfuse/callback/langchain.py", line 443, in on_tool_start
    meta.update(
    └ None

Additional information

No response

@zoltan-fedor
Copy link
Author

zoltan-fedor commented Apr 18, 2024

This was incorrectly filed against the langfuse repo. It has been reposted now against the langfuse-python repo : langfuse/langfuse-python#599

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant