-
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
0 parents
commit e551acd
Showing
402 changed files
with
93,913 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.github | ||
.DS_Store | ||
docs | ||
kubernetes | ||
node_modules | ||
/.svelte-kit | ||
/package | ||
.env | ||
.env.* | ||
vite.config.js.timestamp-* | ||
vite.config.ts.timestamp-* | ||
__pycache__ | ||
.env | ||
_old | ||
uploads | ||
.ipynb_checkpoints | ||
**/*.db | ||
_test |
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,13 @@ | ||
# Ollama URL for the backend to connect | ||
# The path '/ollama' will be redirected to the specified backend URL | ||
OLLAMA_BASE_URL='http://localhost:11434' | ||
|
||
OPENAI_API_BASE_URL='' | ||
OPENAI_API_KEY='' | ||
|
||
# AUTOMATIC1111_BASE_URL="http://localhost:7860" | ||
|
||
# DO NOT TRACK | ||
SCARF_NO_ANALYTICS=true | ||
DO_NOT_TRACK=true | ||
ANONYMIZED_TELEMETRY=false |
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,13 @@ | ||
.DS_Store | ||
node_modules | ||
/build | ||
/.svelte-kit | ||
/package | ||
.env | ||
.env.* | ||
!.env.example | ||
|
||
# Ignore files for PNPM, NPM and YARN | ||
pnpm-lock.yaml | ||
package-lock.json | ||
yarn.lock |
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,31 @@ | ||
module.exports = { | ||
root: true, | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:svelte/recommended', | ||
'plugin:cypress/recommended', | ||
'prettier' | ||
], | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['@typescript-eslint'], | ||
parserOptions: { | ||
sourceType: 'module', | ||
ecmaVersion: 2020, | ||
extraFileExtensions: ['.svelte'] | ||
}, | ||
env: { | ||
browser: true, | ||
es2017: true, | ||
node: true | ||
}, | ||
overrides: [ | ||
{ | ||
files: ['*.svelte'], | ||
parser: 'svelte-eslint-parser', | ||
parserOptions: { | ||
parser: '@typescript-eslint/parser' | ||
} | ||
} | ||
] | ||
}; |
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 @@ | ||
*.sh text eol=lf |
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 @@ | ||
github: tjbck |
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,63 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
--- | ||
|
||
# Bug Report | ||
|
||
## Description | ||
|
||
**Bug Summary:** | ||
[Provide a brief but clear summary of the bug] | ||
|
||
**Steps to Reproduce:** | ||
[Outline the steps to reproduce the bug. Be as detailed as possible.] | ||
|
||
**Expected Behavior:** | ||
[Describe what you expected to happen.] | ||
|
||
**Actual Behavior:** | ||
[Describe what actually happened.] | ||
|
||
## Environment | ||
|
||
- **Open WebUI Version:** [e.g., 0.1.120] | ||
- **Ollama (if applicable):** [e.g., 0.1.30, 0.1.32-rc1] | ||
|
||
- **Operating System:** [e.g., Windows 10, macOS Big Sur, Ubuntu 20.04] | ||
- **Browser (if applicable):** [e.g., Chrome 100.0, Firefox 98.0] | ||
|
||
## Reproduction Details | ||
|
||
**Confirmation:** | ||
|
||
- [ ] I have read and followed all the instructions provided in the README.md. | ||
- [ ] I am on the latest version of both Open WebUI and Ollama. | ||
- [ ] I have included the browser console logs. | ||
- [ ] I have included the Docker container logs. | ||
|
||
## Logs and Screenshots | ||
|
||
**Browser Console Logs:** | ||
[Include relevant browser console logs, if applicable] | ||
|
||
**Docker Container Logs:** | ||
[Include relevant Docker container logs, if applicable] | ||
|
||
**Screenshots (if applicable):** | ||
[Attach any relevant screenshots to help illustrate the issue] | ||
|
||
## Installation Method | ||
|
||
[Describe the method you used to install the project, e.g., manual installation, Docker, package manager, etc.] | ||
|
||
## Additional Information | ||
|
||
[Include any additional details that may help in understanding and reproducing the issue. This could include specific configurations, error messages, or anything else relevant to the bug.] | ||
|
||
## Note | ||
|
||
If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you! |
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,19 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
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,11 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: pip | ||
directory: '/backend' | ||
schedule: | ||
interval: weekly | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
schedule: | ||
# Check for updates to GitHub Actions every week | ||
interval: 'weekly' |
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,72 @@ | ||
# Pull Request Checklist | ||
|
||
### Note to first-time contributors: Please open a discussion post in [Discussions](https://github.com/open-webui/open-webui/discussions) and describe your changes before submitting a pull request. | ||
|
||
**Before submitting, make sure you've checked the following:** | ||
|
||
- [ ] **Target branch:** Please verify that the pull request targets the `dev` branch. | ||
- [ ] **Description:** Provide a concise description of the changes made in this pull request. | ||
- [ ] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. | ||
- [ ] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources? | ||
- [ ] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? | ||
- [ ] **Testing:** Have you written and run sufficient tests for validating the changes? | ||
- [ ] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards? | ||
- [ ] **Prefix:** To cleary categorize this pull request, prefix the pull request title, using one of the following: | ||
- **BREAKING CHANGE**: Significant changes that may affect compatibility | ||
- **build**: Changes that affect the build system or external dependencies | ||
- **ci**: Changes to our continuous integration processes or workflows | ||
- **chore**: Refactor, cleanup, or other non-functional code changes | ||
- **docs**: Documentation update or addition | ||
- **feat**: Introduces a new feature or enhancement to the codebase | ||
- **fix**: Bug fix or error correction | ||
- **i18n**: Internationalization or localization changes | ||
- **perf**: Performance improvement | ||
- **refactor**: Code restructuring for better maintainability, readability, or scalability | ||
- **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.) | ||
- **test**: Adding missing tests or correcting existing tests | ||
- **WIP**: Work in progress, a temporary label for incomplete or ongoing work | ||
|
||
# Changelog Entry | ||
|
||
### Description | ||
|
||
- [Concisely describe the changes made in this pull request, including any relevant motivation and impact (e.g., fixing a bug, adding a feature, or improving performance)] | ||
|
||
### Added | ||
|
||
- [List any new features, functionalities, or additions] | ||
|
||
### Changed | ||
|
||
- [List any changes, updates, refactorings, or optimizations] | ||
|
||
### Deprecated | ||
|
||
- [List any deprecated functionality or features that have been removed] | ||
|
||
### Removed | ||
|
||
- [List any removed features, files, or functionalities] | ||
|
||
### Fixed | ||
|
||
- [List any fixes, corrections, or bug fixes] | ||
|
||
### Security | ||
|
||
- [List any new or updated security-related changes, including vulnerability fixes] | ||
|
||
### Breaking Changes | ||
|
||
- **BREAKING CHANGE**: [List any breaking changes affecting compatibility or functionality] | ||
|
||
--- | ||
|
||
### Additional Information | ||
|
||
- [Insert any additional context, notes, or explanations for the changes] | ||
- [Reference any related issues, commits, or other relevant information] | ||
|
||
### Screenshots or Videos | ||
|
||
- [Attach any relevant screenshots or videos demonstrating the changes] |
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,70 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main # or whatever branch you want to use | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Check for changes in package.json | ||
run: | | ||
git diff --cached --diff-filter=d package.json || { | ||
echo "No changes to package.json" | ||
exit 1 | ||
} | ||
- name: Get version number from package.json | ||
id: get_version | ||
run: | | ||
VERSION=$(jq -r '.version' package.json) | ||
echo "::set-output name=version::$VERSION" | ||
- name: Extract latest CHANGELOG entry | ||
id: changelog | ||
run: | | ||
CHANGELOG_CONTENT=$(awk 'BEGIN {print_section=0;} /^## \[/ {if (print_section == 0) {print_section=1;} else {exit;}} print_section {print;}' CHANGELOG.md) | ||
CHANGELOG_ESCAPED=$(echo "$CHANGELOG_CONTENT" | sed ':a;N;$!ba;s/\n/%0A/g') | ||
echo "Extracted latest release notes from CHANGELOG.md:" | ||
echo -e "$CHANGELOG_CONTENT" | ||
echo "::set-output name=content::$CHANGELOG_ESCAPED" | ||
- name: Create GitHub release | ||
uses: actions/github-script@v7 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
const changelog = `${{ steps.changelog.outputs.content }}`; | ||
const release = await github.rest.repos.createRelease({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
tag_name: `v${{ steps.get_version.outputs.version }}`, | ||
name: `v${{ steps.get_version.outputs.version }}`, | ||
body: changelog, | ||
}) | ||
console.log(`Created release ${release.data.html_url}`) | ||
- name: Upload package to GitHub release | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: package | ||
path: . | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Trigger Docker build workflow | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
github.rest.actions.createWorkflowDispatch({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
workflow_id: 'docker-build.yaml', | ||
ref: 'v${{ steps.get_version.outputs.version }}', | ||
}) |
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,59 @@ | ||
name: Deploy to HuggingFace Spaces | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
check-secret: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
token-set: ${{ steps.check-key.outputs.defined }} | ||
steps: | ||
- id: check-key | ||
env: | ||
HF_TOKEN: ${{ secrets.HF_TOKEN }} | ||
if: "${{ env.HF_TOKEN != '' }}" | ||
run: echo "defined=true" >> $GITHUB_OUTPUT | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
needs: [check-secret] | ||
if: needs.check-secret.outputs.token-set == 'true' | ||
env: | ||
HF_TOKEN: ${{ secrets.HF_TOKEN }} | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Remove git history | ||
run: rm -rf .git | ||
|
||
- name: Prepend YAML front matter to README.md | ||
run: | | ||
echo "---" > temp_readme.md | ||
echo "title: Open WebUI" >> temp_readme.md | ||
echo "emoji: 🐳" >> temp_readme.md | ||
echo "colorFrom: purple" >> temp_readme.md | ||
echo "colorTo: gray" >> temp_readme.md | ||
echo "sdk: docker" >> temp_readme.md | ||
echo "app_port: 8080" >> temp_readme.md | ||
echo "---" >> temp_readme.md | ||
cat README.md >> temp_readme.md | ||
mv temp_readme.md README.md | ||
- name: Configure git | ||
run: | | ||
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git config --global user.name "github-actions[bot]" | ||
- name: Set up Git and push to Space | ||
run: | | ||
git init --initial-branch=main | ||
git lfs track "*.ttf" | ||
rm demo.gif | ||
git add . | ||
git commit -m "GitHub deploy: ${{ github.sha }}" | ||
git push --force https://open-webui:${HF_TOKEN}@huggingface.co/spaces/open-webui/open-webui main |
Oops, something went wrong.