- batches.py: Fix 6 cascading errors from body variable shadowing
- together.py: Add type casts for Together API integration
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Fixes mypy type errors across provider utilities and testing infrastructure (Phase 2e):
- mcp.py (2 errors fixed):
- Cast sse_client to Any to handle incompatible signatures with streamablehttp_client
- Wrap ImageContent data in _URLOrData(data=...) for proper ImageContentItem construction
- batches.py (1 error fixed):
- Rename walrus operator variable from `body` to `request_body` to avoid shadowing
the file content `body` variable (bytes|memoryview) defined earlier in scope
- api_recorder.py (1 error fixed):
- Cast Pydantic field annotation assignment to proper type when monkey-patching
OpenAI CompletionChoice model to accept None in finish_reason
Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Migrates package structure to src/ layout following Python packaging
best practices.
All code moved from `llama_stack/` to `src/llama_stack/`. Public API
unchanged - imports remain `import llama_stack.*`.
Updated build configs, pre-commit hooks, scripts, and GitHub workflows
accordingly. All hooks pass, package builds cleanly.
**Developer note**: Reinstall after pulling: `pip install -e .`
2025-10-27 12:02:21 -07:00
Renamed from llama_stack/providers/inline/batches/reference/batches.py (Browse further)