-
Notifications
You must be signed in to change notification settings - Fork 20
Open webui dev #118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
igotstatik
wants to merge
21
commits into
Super-Protocol:main
Choose a base branch
from
igotstatik:open-webui_dev
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Open webui dev #118
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
ef6aa93
feat: Add Dia TTS Server Super Protocol integration
c202194
feat: Add Dia TTS Server Super Protocol integration (main files)
98d05ef
feat: Add Dia-TTS-Server source code (without models)
eeb1184
chore: Remove compiled JS files from src, update .gitignore
5e041f3
chore: Remove compiled .js files from repository
b875558
fix(dia-tts): Tunnel client integration
marchuk-vlad c81df59
fix: Convert dia-tts-server to proper git submodule
igotstatik c7a2049
Merge pull request #1 from igotstatik/fix/dia-tts-solution
igotstatik 8ea2d2a
Add Dia_tts submodule
igotstatik 0722211
Add Dia_tts submodule
igotstatik 01dabf8
Merge branch 'fix/dia-tts-solution'
igotstatik 70160b8
Rename submodule to dia-tts-server
igotstatik cf645a7
Replace regular folder with submodule
igotstatik 32677a5
fix: correct config.json error, fix Dockerfile env issue, add submodule
8078544
update Dockerfile
igotstatik 3f38fc7
Docker compose added
d92546a
fix(docker-compose): update tunnel-client-certs input path from input…
36e1be8
added logic with adding model from sp/inputs/
igotstatik 29f1b2f
feat(dia-tts): Setup model_cache to input-0001
marchuk-vlad 1015102
final edits
igotstatik ccbf0e0
Adding an open_webui implementation with Superprotocol without the ab…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -110,3 +110,5 @@ sp-secrets | |
| sp-inputs | ||
| sp-configurations | ||
| sp-certs | ||
|
|
||
| CLAUDE.md | ||
This file contains hidden or 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
This file contains hidden or 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 @@ | ||
| node_modules | ||
| dist | ||
| .git | ||
| .gitignore | ||
| *.md | ||
| !.env.example | ||
| test-*.pem | ||
| test-*.crt | ||
| *.log | ||
| .vscode | ||
| .idea |
This file contains hidden or 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,4 @@ | ||
| LOG_LEVEL=trace | ||
| BLOCKCHAIN_URL=http://127.0.0.1:8545 | ||
| BLOCKCHAIN_CONTRACT_ADDRESS=0x9fE46736679d2D9a65F0992F2272dE9f3c7fa6e0 | ||
|
|
This file contains hidden or 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,28 @@ | ||
| # Исключаем тяжелые файлы из dia-tts-server | ||
| dia-tts-server/model_cache/ | ||
| dia-tts-server/outputs/ | ||
| dia-tts-server/reference_audio/ | ||
| dia-tts-server/voices/ | ||
| dia-tts-server/__pycache__/ | ||
| dia-tts-server/*.pth | ||
| dia-tts-server/*.pt | ||
| dia-tts-server/*.bin | ||
| dia-tts-server/*.safetensors | ||
| dia-tts-server/venv/ | ||
| certs/* | ||
| tunnel-client-certs/* | ||
| # Большие бинарники | ||
| spctl | ||
| model/ | ||
|
|
||
| # Локальные тесты | ||
| test-*.pem | ||
| test-*.crt | ||
| .env | ||
| error.log | ||
|
|
||
| # TypeScript build artifacts | ||
| src/*.js | ||
| src/*.js.map | ||
| dist/ | ||
| node_modules/ |
This file contains hidden or 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,43 @@ | ||
| # Node.js build stage | ||
| FROM node:20-bookworm AS builder | ||
| WORKDIR /app | ||
| COPY package*.json tsconfig*.json ./ | ||
| RUN npm ci | ||
| COPY src ./src | ||
| COPY .env.example .env | ||
| RUN npm run build && npm ci --omit=dev | ||
|
|
||
| # Final image with PyTorch and Node.js | ||
| FROM pytorch/pytorch:2.5.1-cuda12.4-cudnn9-runtime | ||
|
|
||
| ENV DEBIAN_FRONTEND=noninteractive \ | ||
| PIP_PREFER_BINARY=1 \ | ||
| PIP_ROOT_USER_ACTION=ignore \ | ||
| PYTHONUNBUFFERED=1 \ | ||
| LOG_LEVEL=info \ | ||
| INPUT_DATA_FOLDER=/sp/inputs | ||
|
|
||
| # Install Node.js 20 from official repository | ||
| RUN apt-get update && apt-get install -y curl \ | ||
| && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ | ||
| && apt-get install -y nodejs git git-lfs build-essential libgl1-mesa-glx libsndfile1 ffmpeg \ | ||
| && apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| WORKDIR /opt/app | ||
|
|
||
| # Copy built Node.js application from builder | ||
| COPY --from=builder /app/dist ./dist | ||
| COPY --from=builder /app/node_modules ./node_modules | ||
| COPY --from=builder /app/package.json ./package.json | ||
| COPY --from=builder /app/.env ./.env | ||
|
|
||
| # Copy and install Python dependencies | ||
| COPY dia-tts-server ./dia-tts-server | ||
| RUN pip install --no-cache-dir torch torchaudio --index-url https://download.pytorch.org/whl/cu124 \ | ||
| && pip install --no-cache-dir -r dia-tts-server/requirements.txt | ||
|
|
||
| # Create necessary directories | ||
| RUN mkdir -p /sp/inputs /sp/outputs /sp/secrets | ||
|
|
||
| ENTRYPOINT ["node", "dist/index.js"] | ||
|
|
Submodule dia-tts-server
added at
3e428f
This file contains hidden or 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,17 @@ | ||
| services: | ||
|
|
||
| dia-tts-server: | ||
| build: | ||
| context: . | ||
| dockerfile: Dockerfile | ||
| platform: linux/amd64 | ||
| volumes: | ||
| - ./certs:/sp/certs | ||
| - ./tunnel-client-certs:/sp/inputs/input-0002 | ||
| # Mount standard model_cache and create separate model folder | ||
| - ./dia-tts-server/model_cache:/sp/inputs/input-0001 | ||
| environment: | ||
| # Standard settings | ||
| - DIA_MODEL_REPO_ID=ttj/dia-1.6b-safetensors | ||
| - DIA_MODEL_CONFIG_FILENAME=config.json | ||
| - DIA_MODEL_WEIGHTS_FILENAME=dia-v0_1_bf16.safetensors |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Submodule paths with spaces are brittle – rename or quote consistently.
Dia TTS Server/dia-tts-servercontains spaces, which can break tooling (CI scripts, Docker COPY, Makefiles) unless every reference is properly quoted. Consider switching to a hyphenated path, or—at minimum—verify all scripts handle it correctly.Would you confirm whether any existing scripts already assume a no-space path? If so, renaming now will prevent silent breakage later.
🏁 Script executed:
Length of output: 1003
Rename submodule directory to a hyphenated path (no spaces)
We found several unquoted references that will break if the on-disk path contains spaces:
• Dockerfile (Dia TTS Server/Dockerfile):
COPY dia-tts-server ./dia-tts-server
• docker-compose.yml (Dia TTS Server/docker-compose.yml):
volumes:
- ./dia-tts-server/model_cache:/sp/inputs/input-0001
• server-config.ts (Dia TTS Server/src/server-config.ts):
diaServerPath: path.join(__dirname, '../dia-tts-server')
Please update your
.gitmodulesentry and corresponding directory name:Then rename the folder on disk (and in any CI/Makefiles) to
Dia-TTS-Serveror flatten todia-tts-server, and adjust all relative paths accordingly.📝 Committable suggestion
🤖 Prompt for AI Agents