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

add pypi ai params #48

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions easypackages/pypi/top_package_transfer_rpm/job-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ os_arch: aarch64
rpmbuild_type: pypi
api_key: xxx(替换真实的OPEN AI KEY)
base_url: xxx(替换真实的OPEN AI URL)
ai_model: xxx(替换真实的OPEN AI model)
runtime: 1d
4 changes: 4 additions & 0 deletions easypackages/pypi/watch_update_source/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ RUN yum install -y git ruby rubygems make gcc diffutils util-linux lftp hostname
&& pip install schedule \
&& pip install requests

RUN sed -i 's|api_key: .*|api_key: xxxx(填写自己的ai模型key)|' /root/easypackages/easypackages/pypi/watch_update_source/src/update-pypi.yaml \
Copy link
Collaborator

Choose a reason for hiding this comment

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

中文不要出现在命令中,通过注释的方式写

&& sed -i 's|base_url: .*|base_url: xxxx(填写自己的ai模型url)|' /root/easypackages/easypackages/pypi/watch_update_source/src/update-pypi.yaml \
&& sed -i 's|ai_model: .*|ai_model: xxxx(填写自己的ai模型)|' /root/easypackages/easypackages/pypi/watch_update_source/src/update-pypi.yaml

WORKDIR /root/easypackages/easypackages/pypi/watch_update_source/src

CMD python3 schedule_main.py
1 change: 1 addition & 0 deletions easypackages/pypi/watch_update_source/src/update-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ os_arch: aarch64
rpmbuild_type: pypi
api_key: xxx(替换真实的OPEN AI KEY)
base_url: xxx(替换真实的OPEN AI URL)
Copy link
Collaborator

Choose a reason for hiding this comment

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

中文通过注释的方式写,而且不是open AI 的 key 和 url 是兼容 open ai client 接口的 key 和url

ai_model: xxx(替换真实的OPEN AI model)
runtime: 1d
Loading