Files
higress/plugins/wasm-go/extensions/ai-proxy/provider
johnlanni 14e7aca426 test(ai-proxy): add unit tests for Claude Code mode
Add comprehensive unit tests for Claude Code mode:
- Test claudeProviderInitializer validation and capabilities
- Test header logic for beta=true query parameter
- Test buildClaudeTextGenRequest for standard and Claude Code modes
- Test system prompt injection when missing
- Test Bash tool injection when missing
- Test deduplication of existing system prompt and tools
- Test constants and GetApiName

Note: TransformRequestHeaders and TransformRequestBody tests are skipped
as they require WASM runtime. Core logic is tested indirectly through
buildClaudeTextGenRequest tests.
2026-02-07 08:32:52 +08:00
..
2025-08-19 20:53:53 +08:00
2025-11-11 19:36:26 +08:00
2025-10-29 14:31:38 +08:00