Skip to content

[Tests] Add unit tests for ZAIProvider with mocked client #2983

@Salazareo

Description

@Salazareo

ZAIProvider.ts only has ZAIProvider.integration.test.ts. Add a separate offline ZAIProvider.test.ts covering model resolution, OpenAI-compat shape quirks, tool-call passthrough, streaming deltas, error mapping, and metering. Integration test stays untouched.

Metadata

Metadata

Assignees

Labels

TestsIssues for fixing broken tests, or adding missing/incomplete tests.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions