Skip to content

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 a team and codegen-team as code owners February 19, 2025 19:47
@codecov
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
@github-actions
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.

3 participants