Skip to content

fix: assign self.tracetools and add LiteLLM provider docs#56

Merged
wxai-space merged 2 commits into
wanxingai:mainfrom
Oxygen56:fix/tracetools-and-litellm-docs
Jun 5, 2026
Merged

fix: assign self.tracetools and add LiteLLM provider docs#56
wxai-space merged 2 commits into
wanxingai:mainfrom
Oxygen56:fix/tracetools-and-litellm-docs

Conversation

@Oxygen56

@Oxygen56 Oxygen56 commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Two changes:

  1. Bugfix: Assign in so the Langfuse assignment at line 515 is no longer dead code. Previously, the accepted a parameter and passed it to , but never stored it as an instance attribute. The check was always , so the Langfuse session tracking was silently disabled.

  2. Docs: Add LiteLLM provider documentation to covering installation (), usage (), and model routing behavior (model naming, api_key/base_url forwarding, drop_params). Also update to mention the optional provider in the supported providers section.

Test Plan

  • Verified attribute is now properly assigned in the agent instance after initialization
  • Confirmed the check at line 516 is now reachable
  • Docs follow the same format as existing provider documentation (OpenRouter, vLLM, llama.cpp, Ollama)
  • Python compilation check passes () with no errors

🤖 Generated with Claude Code

Oxygen56 and others added 2 commits June 5, 2026 03:11
The __init__ method accepted a tracetools parameter and passed it to
_initialize_clients, but never stored it as self.tracetools. The later
check 'hasattr(self, tracetools) and self.tracetools' was always False,
making the Langfuse session_id assignment dead code.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Add LiteLLM section to docs/model_providers.md covering installation,
  usage, and model routing behavior
- Update FAQ.md to mention the optional litellm provider

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@wxai-space wxai-space merged commit 220e853 into wanxingai:main Jun 5, 2026
3 checks passed
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