Skip to content

Commit 56b15be

Browse files
committed
Merge branch 'main' into fix-setup.py-entrypoint
2 parents 4682976 + 407e967 commit 56b15be

File tree

3 files changed

+37
-7
lines changed

3 files changed

+37
-7
lines changed

.github/workflows/publish.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Upload Python Package to PyPI when a Release is Created
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
pypi-publish:
9+
name: Publish release to PyPI
10+
runs-on: ubuntu-latest
11+
environment:
12+
name: pypi
13+
url: https://pypi.org/p/optillm
14+
permissions:
15+
id-token: write
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Set up Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: "3.x"
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install setuptools wheel
26+
- name: Build package
27+
run: |
28+
python setup.py sdist bdist_wheel # Could also be python -m build
29+
- name: Publish package distributions to PyPI
30+
uses: pypa/gh-action-pypi-publish@release/v1

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ doesn't have an OpenAI API compatible endpoint (like Google or Anthropic) you ca
137137

138138
The following sequence diagram illustrates how the request and responses go through optillm.
139139

140-
![Sequance diagram showing optillm in use](./optillm-sequence-diagram.png)
140+
![Sequance diagram showing optillm in use](https://raw.githubusercontent.com/codelion/optillm/main/optillm-sequence-diagram.png)
141141

142142
In the diagram:
143143
- `A` is an existing tool (like [oobabooga](https://github.com/oobabooga/text-generation-webui/)), framework (like [patchwork](https://github.com/patched-codes/patchwork))
@@ -198,7 +198,7 @@ When using Docker, these can be set as environment variables prefixed with `OPTI
198198

199199
## Running with Docker
200200

201-
optillm can optionally be built and run using Docker and the provided [Dockerfile](./Dockerfile).
201+
optillm can optionally be built and run using Docker and the provided [Dockerfile](https://github.com/codelion/optillm/blob/main/Dockerfile).
202202

203203
### Using Docker Compose
204204

@@ -263,14 +263,14 @@ Authorization: Bearer your_secret_api_key
263263

264264
### moa-gpt-4o-mini on Arena-Hard-Auto (Aug 2024)
265265

266-
![Results showing Mixture of Agents approach using gpt-4o-mini on Arena Hard Auto Benchmark](./moa-results.png)
266+
![Results showing Mixture of Agents approach using gpt-4o-mini on Arena Hard Auto Benchmark](https://raw.githubusercontent.com/codelion/optillm/main/moa-results.png)
267267

268268
### optillm with Patchwork (July 2024)
269269

270270
Since optillm is a drop-in replacement for OpenAI API you can easily integrate it with existing tools and frameworks using the OpenAI client. We used optillm with [patchwork](https://github.com/patched-codes/patchwork) which is an open-source framework that automates development gruntwork like PR reviews, bug fixing, security patching using workflows
271271
called patchflows. We saw huge performance gains across all the supported patchflows as shown below when using the mixutre of agents approach (moa).
272272

273-
![Results showing optillm mixture of agents approach used with patchflows](./moa-patchwork-results.png)
273+
![Results showing optillm mixture of agents approach used with patchflows](https://raw.githubusercontent.com/codelion/optillm/main/moa-patchwork-results.png)
274274

275275
## References
276276

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name="optillm",
5-
version="0.0.1",
5+
version="0.0.2",
66
packages=find_packages(),
77
py_modules=['optillm'],
88
install_requires=[
@@ -41,8 +41,8 @@
4141
url="https://github.com/codelion/optillm",
4242
classifiers=[
4343
"Programming Language :: Python :: 3",
44-
"License :: OSI Approved :: Apache-2.0 license",
44+
"License :: OSI Approved :: Apache Software License",
4545
"Operating System :: OS Independent",
4646
],
4747
python_requires=">=3.10",
48-
)
48+
)

0 commit comments

Comments
 (0)