-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af8766b
commit db47edd
Showing
10 changed files
with
77 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ on: | |
- v* | ||
|
||
jobs: | ||
push_to_registry: | ||
push_openwebui: | ||
name: Push Docker image to Docker Hub | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -39,8 +39,46 @@ jobs: | |
uses: docker/[email protected] | ||
with: | ||
platforms: linux/amd64,linux/arm64 | ||
context: . | ||
context: open_webui | ||
file: ./Dockerfile | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
|
||
push_litellm: | ||
name: Push Docker image to Docker Hub | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v4 | ||
with: | ||
lfs: true | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Log in to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/[email protected] | ||
with: | ||
images: cmidair/doc-bot-litellm | ||
|
||
- name: Build and push Docker image | ||
uses: docker/[email protected] | ||
with: | ||
platforms: linux/amd64,linux/arm64 | ||
context: litellm | ||
file: ./Dockerfile | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.env | ||
.venv | ||
.pytst_cache | ||
local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
services: | ||
litellm: | ||
build: | ||
context: litellm | ||
dockerfile: Dockerfile | ||
ports: | ||
- 4000:4000 | ||
env_file: | ||
- .env | ||
volumes: | ||
- ./litellm/config.yaml:/app/config.yaml | ||
command: --config /app/config.yaml --detailed_debug | ||
|
||
open_webui: | ||
build: | ||
context: open_webui | ||
dockerfile: Dockerfile | ||
ports: | ||
- 3000:8080 | ||
env_file: | ||
- .env | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM ghcr.io/berriai/litellm:main-latest | ||
|
||
COPY config.yaml /app/config.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
model_list: | ||
- model_name: cohere-embed-english-v3 | ||
litellm_params: | ||
model: bedrock/cohere.embed-english-v3 | ||
aws_access_key_id: os.environ/AWS_ACCESS_KEY | ||
aws_secret_access_key: os.environ/AWS_SECRET_ACCESS_KEY | ||
aws_region_name: os.environ/AWS_REGION_NAME | ||
|
||
general_settings: | ||
master_key: os.environ/LITELLM_KEY |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.