-
Notifications
You must be signed in to change notification settings - Fork 67
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
Direct Anthropic API Integration #98
Open
emshvac
wants to merge
39
commits into
kodu-ai:main
Choose a base branch
from
emshvac:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+1,698
−644
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
remove code remove code
The horiztonal scroll bar does not show
- Add direct Anthropic API handler with proper message conversion - Add secure storage for Anthropic API key - Add state management for direct API toggle - Fix tool message handling to prevent infinite loops - Implement proper error handling for unsupported features
- Add UI components for API key input and toggle - Add state management in ExtensionStateContext - Update API configuration types - Add settings state hooks for direct API - Update API manager for direct integration
- Remove complex state management (let TaskExecutor handle it) - Simplify abort handling to just use AbortController - Remove duplicate error handling - Remove stream timeout management - Clean up code to just implement ApiHandler interface
- Remove complex state management (use TaskExecutor) - Remove retry logic (use api-handler.ts) - Remove UI state handling (use api-handler.ts) - Just handle Anthropic API interaction - Follow KoduHandler's simple abort pattern The abort->resume delay is expected due to TaskExecutor's state cleanup.
merge upstream
…hvac/claude-coder into feature/direct-anthropic-api
Feature/direct anthropic api
looking to merge it today! |
Found bugs: Starts a new stream each time causing input tokens to spike |
matannahmani
force-pushed
the
main
branch
2 times, most recently
from
December 23, 2024 21:09
433452f
to
2a193e4
Compare
is this feature abandoned? |
I have just not had the time to wrap it up. I will try and work on it
again soon but the Kodu code base has changed and I will have to rewrite it.
…On Thu, Jan 16, 2025 at 6:45 AM Younes ***@***.***> wrote:
is this feature abandoned?
—
Reply to this email directly, view it on GitHub
<#98 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BNE7LWUSU4W7YOYS5L4XYPD2K6SVDAVCNFSM6AAAAABSCYVRSKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKOJVGUYTQMJRHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR implements direct integration with the Anthropic API, providing enhanced functionality and performance improvements to the Claude Coder extension.
Warnings
Some tools only work with Kodu and you will experience some funkiness when it tries to use these tools. Please report these and we will correct them.
Key Changes
Added direct Anthropic API integration for improved reliability and performance
Implemented UI components and state management for API configuration
Added support for Claude 3.5 Sonnet (20241022) model
Integrated with existing TaskExecutor infrastructure for consistent execution flow
Fixed token metrics capture from message_start events
Improved abort functionality handling
Technical Details
Simplified implementation by leveraging existing infrastructure
Refactored code to maintain consistency with current architecture
Enhanced state management for API configuration
Added token usage tracking improvements
Testing
The implementation has been tested with various models and configurations, ensuring proper functionality of:
API integration
Token metrics tracking
Abort operations
Model selection
UI state management