Skip to content

fix: remove MultiAIProvider #555

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Feb 19, 2025
Merged

fix: remove MultiAIProvider #555

merged 11 commits into from
Feb 19, 2025

Conversation

jayhack
Copy link
Contributor

@jayhack jayhack commented Feb 19, 2025

Drastically simplifies AI client management.

  • introduces ChatAnthropic for agent chains
  • Uses openai client instead of MultiAIProvider

Going forward, let's go through the OpenAI client and, soon, OpenRouter, which factilitates everything through this python SDK. This is the cleanest and has become the standard.

@jayhack jayhack requested review from codegen-team and a team as code owners February 19, 2025 19:47
Copy link

codecov bot commented Feb 19, 2025

Codecov Report

Attention: Patch coverage is 60.00000% with 22 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/codegen/sdk/core/codebase.py 40.00% 6 Missing ⚠️
src/codegen/extensions/tools/semantic_edit.py 28.57% 5 Missing ⚠️
src/codegen/extensions/tools/semantic_search.py 0.00% 5 Missing ⚠️
src/codegen/sdk/ai/utils.py 72.72% 3 Missing ⚠️
src/codegen/runner/sandbox/runner.py 50.00% 1 Missing ⚠️
src/codegen/sdk/ai/client.py 66.66% 1 Missing ⚠️
src/codegen/shared/configs/models/secrets.py 92.30% 1 Missing ⚠️
Additional details and impacted files

@jayhack jayhack merged commit 834b600 into develop Feb 19, 2025
23 of 26 checks passed
@jayhack jayhack deleted the jay/refactor-ai-clients branch February 19, 2025 21:51
Copy link
Contributor

🎉 This PR is included in version 0.22.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants