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

feat(opentrons-ai-server): anthropic integration #16881

Merged
merged 4 commits into from
Nov 19, 2024

Conversation

Elyorcv
Copy link
Contributor

@Elyorcv Elyorcv commented Nov 19, 2024

Overview

closes AUTH-1050
This PR introduces Anthropic model, named claude-3.5-sonnet in addition to OpenAI.

Test Plan and Hands on Testing

Please interact with UI

Changelog

  • integrated anthropic model and set it as default

Review requests

Review scripts:

  • opentrons-ai-server/api/domain/anthropic_predict.py
  • opentrons-ai-server/api/domain/config_anthropic.py
  • opentrons-ai-server/api/handler/fast.py

UI

  • Please interact with UI and create protocols.

  • not required to check storage/docs unless if you have time

Risk assessment

Low

@Elyorcv Elyorcv changed the title Anthropic integration feat(opentrons-ai-server): anthropic integration Nov 19, 2024
@Elyorcv Elyorcv force-pushed the AUTH-1050-anthropic-integration branch 3 times, most recently from 145e925 to 230523e Compare November 19, 2024 17:16
@Elyorcv Elyorcv marked this pull request as ready for review November 19, 2024 17:37
@Elyorcv Elyorcv requested review from a team as code owners November 19, 2024 17:37
@Elyorcv Elyorcv requested a review from y3rsh November 19, 2024 17:38
@Elyorcv Elyorcv force-pushed the AUTH-1050-anthropic-integration branch from 230523e to 7d9af10 Compare November 19, 2024 17:41
Copy link
Member

@y3rsh y3rsh left a comment

Choose a reason for hiding this comment

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

Awesome. I have updated the prod and staging environment variables.
image
Once I have completed the below, we may merge.

  • add staging anthropic api key to secrets manager
  • add prod anthropic api key to secrets manager

{
"role": "user",
"content": [
{"type": "text", "text": DOCUMENTS.format(doc_content=self.get_docs()), "cache_control": {"type": "ephemeral"}} # type: ignore
Copy link
Member

Choose a reason for hiding this comment

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

As discussed we will circle back to these # type: ignore

@Elyorcv Elyorcv merged commit b7a5540 into edge Nov 19, 2024
35 checks passed
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.

2 participants