Skip to content

Conversation

@Quantisan
Copy link
Owner

Integration tests were broken after previous LLM refactoring that combined HTTP fetching with response normalization. This PR separates fetch-provider-response (raw API calls) from normalization logic, allowing integration tests to validate actual API response structures. Tests now include comprehensive structural validation for all three providers (Anthropic, OpenAI, Gemini) with checks for nested fields, API contracts, and token metadata.

Quantisan and others added 8 commits November 11, 2025 14:54
Extracts provider-specific HTTP calls into fetch-provider-response
multimethod. New query-llm-provider function composes fetch +
normalization. No behavior change to public API.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Integration tests now call fetch-provider-response and validate
that mock fixtures accurately represent real API responses.
This ensures mocks used in unit tests stay synchronized with
actual provider APIs.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@Quantisan Quantisan marked this pull request as ready for review November 12, 2025 00:28
@Quantisan Quantisan merged commit 0fd97c9 into main Nov 12, 2025
1 check passed
@Quantisan Quantisan deleted the fix/llm-integration-regression branch November 12, 2025 01:17
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