Commit graph

4 commits

Author SHA1 Message Date
Ashwin Bharambe
a7866dff48 fix(mypy): resolve additional type errors in batches and together
- 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>
2025-10-28 10:28:51 -07:00
Ashwin Bharambe
0c95140ca7 fix(mypy): resolve provider utility and testing type issues
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>
2025-10-28 10:28:51 -07:00
Ashwin Bharambe
6ce59b5df8
fix(mypy): resolve type issues in MongoDB, batches, and auth providers (#3933)
Fixes mypy type errors in provider utilities:
- MongoDB: Fix AsyncMongoClient parameters, use async iteration for
cursor
- Batches: Handle memoryview|bytes union for file decoding
- Auth: Add missing imports, validate JWKS URI, conditionally pass
parameters

Fixes 11 type errors. No functional changes.
2025-10-28 10:23:39 -07:00
Ashwin Bharambe
471b1b248b
chore(package): migrate to src/ layout (#3920)
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)