From d18f12dbd064b6d3750bc47e008088574c255b54 Mon Sep 17 00:00:00 2001 From: fuxinji9527 <1992666531@qq.com> Date: Thu, 14 Nov 2024 09:31:03 +0800 Subject: [PATCH] add pypi ai params --- easypackages/pypi/top_package_transfer_rpm/job-pypi.yaml | 1 + easypackages/pypi/watch_update_source/Dockerfile | 4 ++++ easypackages/pypi/watch_update_source/src/update-pypi.yaml | 1 + 3 files changed, 6 insertions(+) diff --git a/easypackages/pypi/top_package_transfer_rpm/job-pypi.yaml b/easypackages/pypi/top_package_transfer_rpm/job-pypi.yaml index dae520f..fb1e402 100644 --- a/easypackages/pypi/top_package_transfer_rpm/job-pypi.yaml +++ b/easypackages/pypi/top_package_transfer_rpm/job-pypi.yaml @@ -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 \ No newline at end of file diff --git a/easypackages/pypi/watch_update_source/Dockerfile b/easypackages/pypi/watch_update_source/Dockerfile index 7f0284f..4f24c20 100644 --- a/easypackages/pypi/watch_update_source/Dockerfile +++ b/easypackages/pypi/watch_update_source/Dockerfile @@ -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 \ + && 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 diff --git a/easypackages/pypi/watch_update_source/src/update-pypi.yaml b/easypackages/pypi/watch_update_source/src/update-pypi.yaml index a97ab80..3b51439 100644 --- a/easypackages/pypi/watch_update_source/src/update-pypi.yaml +++ b/easypackages/pypi/watch_update_source/src/update-pypi.yaml @@ -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