Skip to content
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

Add coding provider #1338

Merged
merged 4 commits into from
Dec 23, 2024
Merged

Add coding provider #1338

merged 4 commits into from
Dec 23, 2024

Conversation

Josh-XT
Copy link
Owner

@Josh-XT Josh-XT commented Dec 22, 2024

This pull request introduces a new CodingProvider class in the agixt/providers/coding.py file, which allows users to offload coding tasks to a specified coding provider while maintaining a default provider for other tasks.

Key changes include:

  • New Class Introduction:

    • CodingProvider: A new class that allows users to specify a default provider and a separate coding provider for handling coding tasks. It includes methods for initializing the provider settings and performing inference based on the type of task.
  • Error Handling:

    • Enhanced error handling within the inference method to switch between the default provider and the coding provider in case of failures. This ensures robustness by attempting to use a backup provider if the initially chosen provider fails.

These changes aim to improve flexibility and reliability in handling different types of tasks by leveraging multiple providers.

@Josh-XT Josh-XT marked this pull request as ready for review December 22, 2024 12:20
@Josh-XT Josh-XT marked this pull request as draft December 23, 2024 01:57
@Josh-XT Josh-XT marked this pull request as ready for review December 23, 2024 09:24
@Josh-XT Josh-XT merged commit ca76174 into main Dec 23, 2024
4 checks passed
@Josh-XT Josh-XT deleted the Add-coding-provider branch December 23, 2024 09:24
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.

1 participant