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

refactor: support run without aws #597

Merged
merged 2 commits into from
Dec 19, 2024
Merged

Conversation

RaoHai
Copy link
Contributor

@RaoHai RaoHai commented Dec 18, 2024

  • 支持不登录 aws 也能本地跑

Copy link

vercel bot commented Dec 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
petercat ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 3:42am

Copy link

Walkthrough

此PR重构了项目以支持在不登录AWS的情况下运行。主要更改包括替换环境变量名称以去除AWS依赖,并引入新的私钥管理机制,允许在本地或通过S3获取私钥。

Changes

文件 概要
.github/workflows/aws-preview.yml, .github/workflows/aws-prod.yml 更新了工作流配置以支持无AWS运行。
README.en-US.md, README.ja-JP.md, README.md, petercat_utils/README.md 更新了文档以反映新的环境变量名称。
server/.env.example, server/.env.local.example 更新了示例环境变量文件以去除AWS依赖。
server/aws/service.py, server/core/service/user_llm_token.py, server/github_app/router.py, server/github_app/utils.py 修改了代码以使用新的私钥管理机制。
server/utils/get_private_key.py 删除了旧的私钥获取实现。
server/utils/private_key/init.py, server/utils/private_key/base.py, server/utils/private_key/local.py, server/utils/private_key/s3.py 添加了新的私钥管理模块,支持本地和S3两种方式。
template.yml 更新了模板文件以反映新的环境变量名称。

server/aws/service.py Outdated Show resolved Hide resolved
@RaoHai RaoHai changed the title [WIP] refactor: support run without aws refactor: support run without aws Dec 19, 2024
Copy link
Contributor

@xingwanying xingwanying left a comment

Choose a reason for hiding this comment

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

LG

@RaoHai RaoHai merged commit fb7515c into main Dec 19, 2024
3 of 4 checks passed
@RaoHai RaoHai deleted the refactor/support-run-without-aws branch December 19, 2024 06:15
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