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(ai-proxy): add AWS Bedrock Converse-API Driver #13354

Merged
merged 24 commits into from
Jul 30, 2024

Conversation

tysoekong
Copy link
Contributor

Summary

Supersedes #13054 which was completely broken.

Adds AWS Bedrock "Converse API" support to Kong AI Gateway.

Checklist

  • The Pull Request has tests
  • A changelog file has been created under changelog/unreleased/kong or skip-changelog label added on PR if changelog is unnecessary. README.md
  • There is a user-facing docs PR against https://github.com/Kong/docs.konghq.com - PUT DOCS PR HERE

Issue reference

AG-14

@subnetmarco
Copy link
Member

@fffonion let's start the review process on this large PR.

kong/llm/drivers/bedrock.lua Show resolved Hide resolved
kong/llm/drivers/bedrock.lua Outdated Show resolved Hide resolved
kong/llm/init.lua Show resolved Hide resolved
kong/llm/init.lua Outdated Show resolved Hide resolved
kong/tools/aws_stream.lua Show resolved Hide resolved
@tysoekong tysoekong force-pushed the feat/ai_proxy_aws_bedrock branch from 2c5883a to 1a541a3 Compare July 24, 2024 15:30
@tysoekong tysoekong force-pushed the feat/ai_proxy_aws_bedrock branch 3 times, most recently from fa52c16 to f499d3f Compare July 25, 2024 13:02
@tysoekong tysoekong changed the title Feat/ai proxy aws bedrock feat: AI Proxy, AWS Bedrock Converse API Driver Jul 25, 2024
@tysoekong tysoekong changed the title feat: AI Proxy, AWS Bedrock Converse API Driver feat: AI Proxy, AWS Bedrock Converse AI Driver Jul 25, 2024
Copy link
Contributor

@jschmid1 jschmid1 left a comment

Choose a reason for hiding this comment

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

1/n

kong/clustering/compat/checkers.lua Outdated Show resolved Hide resolved
kong/clustering/compat/checkers.lua Outdated Show resolved Hide resolved
kong/llm/drivers/shared.lua Show resolved Hide resolved
@tysoekong tysoekong force-pushed the feat/ai_proxy_aws_bedrock branch from 9d864e7 to f704158 Compare July 25, 2024 19:12
@tysoekong tysoekong changed the title feat: AI Proxy, AWS Bedrock Converse AI Driver feat: AI Proxy, AWS Bedrock Converse-API Driver Jul 25, 2024
kong/plugins/ai-proxy/handler.lua Outdated Show resolved Hide resolved
kong/plugins/ai-proxy/handler.lua Outdated Show resolved Hide resolved
kong/plugins/ai-proxy/handler.lua Show resolved Hide resolved
kong/plugins/ai-proxy/handler.lua Outdated Show resolved Hide resolved
kong/llm/drivers/bedrock.lua Outdated Show resolved Hide resolved
kong/llm/drivers/gemini.lua Outdated Show resolved Hide resolved
kong/llm/drivers/shared.lua Outdated Show resolved Hide resolved
kong/llm/schemas/init.lua Outdated Show resolved Hide resolved
@tysoekong
Copy link
Contributor Author

@fffonion I done all your second round comments

@fffonion fffonion changed the title feat: AI Proxy, AWS Bedrock Converse-API Driver feat(ai-proxy): add AWS Bedrock Converse-API Driver Jul 29, 2024
@fffonion
Copy link
Contributor

LGTM, please make sure comments from other reviewers are addressed : )

@tysoekong tysoekong force-pushed the feat/ai_proxy_aws_bedrock branch from 1b85373 to 8184ee0 Compare July 29, 2024 14:38
@fffonion fffonion merged commit 264341d into master Jul 30, 2024
25 checks passed
@fffonion fffonion deleted the feat/ai_proxy_aws_bedrock branch July 30, 2024 07:48
@team-gateway-bot
Copy link
Collaborator

Cherry-pick failed for master, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally.

git remote add upstream https://github.com/kong/kong-ee
git fetch upstream master
git worktree add -d .worktree/cherry-pick-13354-to-master-to-upstream upstream/master
cd .worktree/cherry-pick-13354-to-master-to-upstream
git checkout -b cherry-pick-13354-to-master-to-upstream
ancref=$(git merge-base 61e2c761d7ec7757552b54851a992b5a8740f4be 8184ee0faaee6adf6ff71de0f8f5ce88fbfa326e)
git cherry-pick -x $ancref..8184ee0faaee6adf6ff71de0f8f5ce88fbfa326e

@github-actions github-actions bot added the incomplete-cherry-pick A cherry-pick was incomplete and needs manual intervention label Jul 30, 2024
@fffonion
Copy link
Contributor

fffonion commented Jul 30, 2024

cc @ttyS0e I will do the cherrypicks to EE because there are couple of PRs that needs to cooridnate for conflict.

@fffonion
Copy link
Contributor

@AndyZhang0707 AndyZhang0707 removed the incomplete-cherry-pick A cherry-pick was incomplete and needs manual intervention label Aug 1, 2024
oowl pushed a commit that referenced this pull request Aug 15, 2024
Supersedes #13054 which was completely broken.

Adds AWS Bedrock "Converse API" support to Kong AI Gateway.

AG-14

Co-authored-by: Jack Tysoe <[email protected]>
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.

9 participants