From 3a459d8234665b35a031d842817132b58edb7696 Mon Sep 17 00:00:00 2001 From: Asankhaya Sharma Date: Thu, 2 Jan 2025 22:03:53 +0800 Subject: [PATCH 1/3] Update publish.yml - Multi platform build --- .github/workflows/publish.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d8a50b5..7d748f4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -38,6 +38,9 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -63,5 +66,8 @@ jobs: with: context: . push: true + platforms: linux/amd64,linux/arm64 tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + cache-from: type=gha + cache-to: type=gha,mode=max From d2f4475d3bf64c3993cc7b0fd1eca7c3e0c262dd Mon Sep 17 00:00:00 2001 From: Asankhaya Sharma Date: Thu, 2 Jan 2025 22:04:40 +0800 Subject: [PATCH 2/3] Update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 40a19e9..c2693f6 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name="optillm", - version="0.0.18", + version="0.0.19", packages=find_packages(), py_modules=['optillm'], package_data={ From 4ecf109a7c1097ad633705edf681e1a5769f0228 Mon Sep 17 00:00:00 2001 From: Asankhaya Sharma Date: Thu, 2 Jan 2025 22:05:06 +0800 Subject: [PATCH 3/3] Update readurls_plugin.py --- optillm/plugins/readurls_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/optillm/plugins/readurls_plugin.py b/optillm/plugins/readurls_plugin.py index 6fa4475..8d6e9d1 100644 --- a/optillm/plugins/readurls_plugin.py +++ b/optillm/plugins/readurls_plugin.py @@ -25,7 +25,7 @@ def extract_urls(text: str) -> List[str]: def fetch_webpage_content(url: str, max_length: int = 100000) -> str: try: headers = { - 'User-Agent': 'optillm/0.0.18 (https://github.com/codelion/optillm)' + 'User-Agent': 'optillm/0.0.19 (https://github.com/codelion/optillm)' } response = requests.get(url, headers=headers, timeout=10)