Skip to content

Conversation

@AlexMikhalev
Copy link

Summary

  • Merged latest upstream changes from jeremychone/rust-genai
  • Consolidated duplicate Zai/ZAi adapters into single Zai adapter
  • Fixed adapter import paths and module exports

Changes Made

  • Resolved merge conflicts in Z.AI adapter implementation
  • Updated model routing logic for Z.AI models
  • Removed obsolete zhipu adapter references
  • Added missing cerebras and openrouter module exports
  • Preserved dual endpoint support for Z.AI coding plans

Testing

✅ Compilation successful
✅ Z.AI API integration verified with live tests
✅ Code quality checks passed (clippy, fmt)

🤖 Generated with terraphim.ai

pdylanross and others added 12 commits October 19, 2025 18:23
…eremychone#95)

- Rename zhipu adapter to zai adapter
- Implement namespace-based routing for regular vs coding endpoints
- Regular models: "glm-4.6" → credit-based API
- Coding models: "zai::glm-4.6" → subscription API
- Add comprehensive example c07-zai.rs
- Update adapter kind detection to handle "zai" namespace
- Remove dual-endpoint complexity from user-facing API

Co-authored-by: Rui Andrada <rui.andrada@imaginedone.com.br>
Resolved conflicts in Z.AI adapter implementation:
- Consolidated duplicate Zai/ZAi adapters into single Zai adapter
- Updated model routing logic for Z.AI models
- Removed obsolete zhipu adapter references
- Added cerebras module to adapters
- Preserved dual endpoint support for Z.AI coding plans

🤖 Generated with [terraphim.ai](https://terraphim.ai)

Co-Authored-By: Claude <noreply@anthropic.com>
- Fixed import paths for adapters after module reorganization
- Removed remaining duplicate ZAi adapter references
- Added missing openrouter module export
- Ensured consistent adapter import structure

🤖 Generated with [terraphim.ai](https://terraphim.ai)

Co-Authored-By: Claude <noreply@anthropic.com>
@AlexMikhalev
Copy link
Author

PR #3 completed successfully!

All changes have been merged to main:

  • Fixed clippy warnings in test_adapter_consistency.rs and test_verify_model_lists.rs
  • Fixed case mismatch (ZAi vs Zai) in test expectations
  • Fixed ZAI model resolution test (glm-3-turbo routing to Zhipu)
  • All tests passing
  • Code quality checks passed (clippy, fmt, build)

Additionally, AWS Bedrock adapter integration has been squash-merged to main with:

  • Bearer token authentication
  • Full chat completion and streaming support
  • Tool/function calling support
  • Support for 26 Bedrock models
  • All clippy warnings resolved

✅ All objectives achieved

AlexMikhalev added a commit that referenced this pull request Jan 12, 2026
Add comprehensive documentation from session fixing PR #3 and merging
Bedrock integration:

HANDOVER.md:
- Complete progress summary (PR #3 fixed, Bedrock integrated)
- Technical context (commits, files changed, discoveries)
- Next steps and verification commands
- All 4 commits documented with details

lessons-learned.md:
- 6 technical discoveries (Debug format, routing, let-chains, etc.)
- Debugging approaches that worked
- 5 pitfalls to avoid with solutions
- 5 best practices discovered
- Quick reference for commands and file locations

Generated after successful completion of:
- Fixed clippy warnings in test files and Bedrock adapter
- Fixed ZAI model routing test expectations
- Squash-merged AWS Bedrock adapter integration
- All CI checks passing, main branch stable

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
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.

6 participants