Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@b8zhong
Copy link
Contributor

@b8zhong b8zhong commented Mar 22, 2025

Changes

  • Refactored ZenbaseTracer.add_trace to use setdefault() and remove redundant move_to_end calls
  • Rewrote LMDemo.__hash__ to handle nested dicts/lists/sets

Why?

  • Simplifies trace logic and avoids unnecessary operations.
  • Makes LMDemo hashable without errors for common nested structures

Non-breaking

@b8zhong
Copy link
Contributor Author

b8zhong commented Mar 22, 2025

Hey @ammirsm -- can't help but notice you're active around here. Would you mind taking a look?

Thanks in advance!

(I think the CI failure is unrelated)

langfuse.api.core.api_error.ApiError: status_code: 429, body: 429 - rate limit exceeded

@ammirsm
Copy link
Contributor

ammirsm commented Mar 22, 2025

Hey @ammirsm -- can't help but notice you're active around here. Would you mind taking a look?

Thanks in advance!

(I think the CI failure is unrelated)


langfuse.api.core.api_error.ApiError: status_code: 429, body: 429 - rate limit exceeded

Hey @b8zhong

Thanks for the contribution.
Will check it out tomorrow morning!

@b8zhong
Copy link
Contributor Author

b8zhong commented Mar 25, 2025

Friendly bump! I know how busy life gets...

@ammirsm ammirsm self-requested a review March 25, 2025 01:04
Copy link
Contributor

@ammirsm ammirsm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@ammirsm
Copy link
Contributor

ammirsm commented Mar 25, 2025

Those errors in CI are fine, they are for integrations that we are blocked by langfuse.

Thanks for the contribution.

@ammirsm ammirsm merged commit 5997186 into zenbase-ai:main Mar 25, 2025
2 of 9 checks passed
@b8zhong
Copy link
Contributor Author

b8zhong commented Mar 25, 2025

Awesome -- thanks!

@b8zhong b8zhong deleted the fix-tracers-and-hashable branch March 25, 2025 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants