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

anthropic provider #420

Merged
merged 8 commits into from
Dec 9, 2024
Merged

anthropic provider #420

merged 8 commits into from
Dec 9, 2024

Conversation

michaelneale
Copy link
Collaborator

@michaelneale michaelneale commented Dec 5, 2024

it works with the basics at least

@michaelneale michaelneale added help wanted Extra attention is needed work-in-progress p1 labels Dec 5, 2024
…icn/anthropic-native

* 'micn/anthropic-native' of github.com:block/goose:
  Download script for goose cli pre-release (#413)
  feat: Add cli options for configure to specify provider and model (#415)
  [app/ui] Add vibrancy effect to background
@michaelneale michaelneale requested review from baxen and meenalc December 6, 2024 02:56
@michaelneale michaelneale changed the title WIP anthropic native anthropic provider Dec 6, 2024
@michaelneale michaelneale added ready and removed help wanted Extra attention is needed work-in-progress labels Dec 6, 2024
}

// Make request
let response = self.post(payload).await?;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

similar to openai provider, can we check for context limit exceeded here? i think we'll want to raise a specific error for this which then gets handled by the agent / shown to the user.

https://github.com/block/goose/pull/401/files#diff-fed54b47734f06ba118bdf144c00ad3caeab4026f0d230997cb4a03c7d6be6e6

Copy link
Collaborator

@salman1993 salman1993 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Left a comment on checking for context length exceeded in the response

@michaelneale michaelneale merged commit 7288b38 into v1.0 Dec 9, 2024
2 checks passed
@michaelneale michaelneale deleted the micn/anthropic-native branch December 9, 2024 03:55
jsibbison-square added a commit that referenced this pull request Dec 9, 2024
michaelneale added a commit that referenced this pull request Dec 9, 2024
* v1.0:
  fix: theme default (#431)
  anthropic provider (#420)
Kvadratni added a commit that referenced this pull request Dec 10, 2024
* refs/heads/v1.0:
  Extract common renderings (#432)
  fix: theme default (#431)
  anthropic provider (#420)
  fix: lib - add libxcb1-dev (#430)
  feat: launch GUI from shell (#423)
  [feat]: Dark mode support (#345)
  Update README.md (#426)
  fix: slow GUI with stdio (#425)
  Fixed icon position (#422)
  fix: replace empty window (#417)
  Download script for goose cli pre-release (#413)

# Conflicts:
#	ui/desktop/src/ChatWindow.tsx
#	ui/desktop/src/components/Splash.tsx
#	ui/desktop/src/main.ts
#	ui/desktop/src/preload.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants