Skip to content

Commit 3c17b74

Browse files
authored
Merge pull request #72 from rishikanthc/feature/handle-thinking-field
Feature: Handle thinking field support and fix markdown rendering
2 parents cba7e16 + 7350a47 commit 3c17b74

File tree

330 files changed

+39348
-38545
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

330 files changed

+39348
-38545
lines changed

.dockerignore

Lines changed: 50 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,50 @@
1-
.dockerdata
2-
docker-compose.ollama.yaml
3-
Dockerfile
4-
Dockerfile-cuda128
5-
install_audiowaveform.sh
6-
samples
7-
scriberr_files
8-
scriberr
9-
install_aw.sh
10-
.prettier*
11-
venv
12-
node_modules
13-
*.env
1+
# Exclude version control files
2+
.git
3+
.gitignore
4+
.gitattributes
5+
6+
# Docker-related files
7+
.dockerdata
8+
docker-compose*.yml
9+
docker-compose*.yaml
10+
Dockerfile*
11+
install_audiowaveform.sh
12+
install_aw.sh
13+
14+
# Runtime data directories
15+
samples
16+
scriberr_files
17+
scriberr
18+
uploads
19+
temp
20+
.downloads
21+
22+
# Development and build artifacts
23+
.prettier*
24+
venv
25+
.venv
26+
node_modules
27+
build
28+
dist
29+
.svelte-kit
30+
.eslintcache
31+
.npm
32+
npm-debug.log*
33+
34+
# Environment variables and secrets
35+
*.env
36+
.env
37+
.env.*
38+
.ENV
39+
.env.local
40+
.env.development
41+
.env.test
42+
.env.production
43+
44+
# IDE specific files
45+
.idea
46+
.vscode
47+
*.swp
48+
*.swo
49+
*.sublime-workspace
50+
*.sublime-project

.env

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
1-
# .env file
2-
# Docker image configuration
3-
IMAGE_TAG=main # Docker image tag to use for building the Docker image
4-
PORT=3000 # Port to use for running the web interface
5-
6-
# Database configuration
7-
POSTGRES_PORT=5432 # Port to use for PostgreSQL database
8-
POSTGRES_USER=root # Username for PostgreSQL database
9-
POSTGRES_PASSWORD=mysecretpassword # Password for PostgreSQL database
10-
POSTGRES_DB=local # Database name
11-
DATABASE_URL=postgres://root:mysecretpassword@db:5432/local # Database URL for connection to PostgreSQL database with credentials from above
12-
13-
# Application configuration
14-
ADMIN_USERNAME=admin # Username for admin user in web interface
15-
ADMIN_PASSWORD=password # Password for admin user in web interface
16-
17-
# AI configuration
18-
# Default Model to use for transcription, can be set to any OpenAI model or Ollama model
19-
# For ollama connections, enter the model name and version number. EG: llama3.2:latest
20-
AI_MODEL="gpt-3.5-turbo"
21-
22-
# Leave blank to use default (OpenAI API), otherwise set to the base URL of your OpenAI API compatible server
23-
# For ollama connections, enter the IP of the Ollama server, and then the port it is running on.
24-
# Include the /v1/ or /api/v1/ path if needed (OpenWeb UI uses /api/ and ollama uses /v1/
25-
# Example: http://192.168.1.5:11434 or http://host.docker.internal:11434
26-
# NOTE: host.docker.internal is only available on Windows and MacOS, use the IP address of the host machine on Linux
27-
# NOTE: localhost and 127.0.0.1 will not work, as they refer to the container itself, not the host machine
28-
OLLAMA_BASE_URL=""
29-
30-
# API Keys
31-
# NOTE:
32-
# If using Ollama, you can leave these blank or set to a dummy value
33-
# If using OpenAI, you must set these to your API keys
34-
# If using a custom API compatible server, you must set these to your API keys
35-
OPENAI_API_KEY="" # Needed for retrieving models from OpenAI, for Ollama connections, this can be left blank or set to a dummy value
36-
HF_API_KEY="" # Needed for retrieving models from HuggingFace for Diarization
37-
38-
# Diarization configuration
39-
# Default Model to use for Diarization, can be set to any HuggingFace model that supports diarization
40-
# NOTE: This model will be downloaded automatically if it is not already present in the models directory
41-
# NOTE: You can use any model that supports diarization, but the default model is pyannote/speaker-diarization
42-
# NOTE: You can find a list of models that support diarization here: https://huggingface.co/models?other=speaker-diarization
43-
DIARIZATION_MODEL=pyannote/speaker-diarization
44-
45-
MODELS_DIR=/scriberr/models
46-
WORK_DIR=/scriberr/temp
47-
AUDIO_DIR=/scriberr/uploads
48-
49-
# Server configuration
50-
BODY_SIZE_LIMIT=1G
51-
HARDWARE_ACCEL=cpu # Set to 'gpu' if you have a Nvidia GPU
1+
# .env file
2+
# Docker image configuration
3+
IMAGE_TAG=main # Docker image tag to use for building the Docker image
4+
PORT=3000 # Port to use for running the web interface
5+
6+
# Database configuration
7+
POSTGRES_PORT=5432 # Port to use for PostgreSQL database
8+
POSTGRES_USER=root # Username for PostgreSQL database
9+
POSTGRES_PASSWORD=mysecretpassword # Password for PostgreSQL database
10+
POSTGRES_DB=local # Database name
11+
DATABASE_URL=postgres://root:mysecretpassword@db:5432/local # Database URL for connection to PostgreSQL database with credentials from above
12+
13+
# Application configuration
14+
ADMIN_USERNAME=admin # Username for admin user in web interface
15+
ADMIN_PASSWORD=password # Password for admin user in web interface
16+
17+
# AI configuration
18+
# Default Model to use for transcription, can be set to any OpenAI model or Ollama model
19+
# For ollama connections, enter the model name and version number. EG: llama3.2:latest
20+
AI_MODEL="deepseek-r1:8b"
21+
22+
# Leave blank to use default (OpenAI API), otherwise set to the base URL of your OpenAI API compatible server
23+
# For ollama connections, enter the IP of the Ollama server, and then the port it is running on.
24+
# Include the /v1/ or /api/v1/ path if needed (OpenWeb UI uses /api/ and ollama uses /v1/
25+
# Example: http://192.168.1.5:11434 or http://host.docker.internal:11434
26+
# NOTE: host.docker.internal is only available on Windows and MacOS, use the IP address of the host machine on Linux
27+
# NOTE: localhost and 127.0.0.1 will not work, as they refer to the container itself, not the host machine
28+
OLLAMA_BASE_URL="http://192.168.50.5:11434/v1"
29+
30+
# API Keys
31+
# NOTE:
32+
# If using Ollama, you can leave these blank or set to a dummy value
33+
# If using OpenAI, you must set these to your API keys
34+
# If using a custom API compatible server, you must set these to your API keys
35+
OPENAI_API_KEY="" # Needed for retrieving models from OpenAI, leave blank when using Ollama
36+
HF_API_KEY="" # Needed for retrieving models from HuggingFace for Diarization
37+
38+
# Diarization configuration
39+
# Default Model to use for Diarization, can be set to any HuggingFace model that supports diarization
40+
# NOTE: This model will be downloaded automatically if it is not already present in the models directory
41+
# NOTE: You can use any model that supports diarization, but the default model is pyannote/speaker-diarization
42+
# NOTE: You can find a list of models that support diarization here: https://huggingface.co/models?other=speaker-diarization
43+
DIARIZATION_MODEL=pyannote/speaker-diarization
44+
45+
MODELS_DIR=/scriberr/models
46+
WORK_DIR=/scriberr/temp
47+
AUDIO_DIR=/scriberr/uploads
48+
49+
# Server configuration
50+
BODY_SIZE_LIMIT=1G
51+
HARDWARE_ACCEL=cpu # Set to 'gpu' if you have a Nvidia GPU
Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
1-
name: Main CUDA Docker Build
2-
3-
on:
4-
push:
5-
branches:
6-
- main # Only trigger on pushes to the main branch
7-
8-
jobs:
9-
docker:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- name: Delete huge unnecessary tools folder
13-
run: rm -rf /opt/hostedtoolcache
14-
15-
- name: Set up QEMU
16-
uses: docker/setup-qemu-action@v3
17-
18-
- name: Set up Docker Buildx
19-
uses: docker/setup-buildx-action@v3
20-
21-
- name: Login to GHCR
22-
uses: docker/login-action@v3
23-
with:
24-
registry: ghcr.io
25-
username: ${{ github.repository_owner }}
26-
password: ${{ secrets.GITHUB_TOKEN }}
27-
28-
- name: Build and push scriberr:main-gpu Docker image
29-
uses: docker/build-push-action@v6
30-
with:
31-
platforms: linux/amd64,linux/arm64
32-
push: true
33-
file: ./Dockerfile-cuda128
34-
tags: |
35-
ghcr.io/rishikanthc/scriberr:main-cuda128
36-
37-
38-
- name: Verify multi-platform image for scriberr:main-gpu
39-
run: |
1+
name: Main CUDA Docker Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Only trigger on pushes to the main branch
7+
8+
jobs:
9+
docker:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Delete huge unnecessary tools folder
13+
run: rm -rf /opt/hostedtoolcache
14+
15+
- name: Set up QEMU
16+
uses: docker/setup-qemu-action@v3
17+
18+
- name: Set up Docker Buildx
19+
uses: docker/setup-buildx-action@v3
20+
21+
- name: Login to GHCR
22+
uses: docker/login-action@v3
23+
with:
24+
registry: ghcr.io
25+
username: ${{ github.repository_owner }}
26+
password: ${{ secrets.GITHUB_TOKEN }}
27+
28+
- name: Build and push scriberr:main-gpu Docker image
29+
uses: docker/build-push-action@v6
30+
with:
31+
platforms: linux/amd64,linux/arm64
32+
push: true
33+
file: ./Dockerfile-cuda128
34+
tags: |
35+
ghcr.io/rishikanthc/scriberr:main-cuda128
36+
37+
38+
- name: Verify multi-platform image for scriberr:main-gpu
39+
run: |
4040
docker buildx imagetools inspect ghcr.io/rishikanthc/scriberr:main-cuda128
Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
1-
name: Main Docker Build
2-
3-
on:
4-
push:
5-
branches:
6-
- main # Only trigger on pushes to the main branch
7-
8-
jobs:
9-
docker:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- name: Delete huge unnecessary tools folder
13-
run: rm -rf /opt/hostedtoolcache
14-
15-
- name: Set up QEMU
16-
uses: docker/setup-qemu-action@v3
17-
18-
- name: Set up Docker Buildx
19-
uses: docker/setup-buildx-action@v3
20-
21-
- name: Login to GHCR
22-
uses: docker/login-action@v3
23-
with:
24-
registry: ghcr.io
25-
username: ${{ github.repository_owner }}
26-
password: ${{ secrets.GITHUB_TOKEN }}
27-
28-
- name: Build and push scriberr:main Docker image
29-
uses: docker/build-push-action@v6
30-
with:
31-
platforms: linux/amd64,linux/arm64
32-
push: true
33-
file: ./Dockerfile
34-
tags: |
35-
ghcr.io/rishikanthc/scriberr:main
36-
37-
38-
- name: Verify multi-platform image for scriberr:main
39-
run: |
40-
docker buildx imagetools inspect ghcr.io/rishikanthc/scriberr:latest
1+
name: Main Docker Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Only trigger on pushes to the main branch
7+
8+
jobs:
9+
docker:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Delete huge unnecessary tools folder
13+
run: rm -rf /opt/hostedtoolcache
14+
15+
- name: Set up QEMU
16+
uses: docker/setup-qemu-action@v3
17+
18+
- name: Set up Docker Buildx
19+
uses: docker/setup-buildx-action@v3
20+
21+
- name: Login to GHCR
22+
uses: docker/login-action@v3
23+
with:
24+
registry: ghcr.io
25+
username: ${{ github.repository_owner }}
26+
password: ${{ secrets.GITHUB_TOKEN }}
27+
28+
- name: Build and push scriberr:main Docker image
29+
uses: docker/build-push-action@v6
30+
with:
31+
platforms: linux/amd64,linux/arm64
32+
push: true
33+
file: ./Dockerfile
34+
tags: |
35+
ghcr.io/rishikanthc/scriberr:main
36+
37+
38+
- name: Verify multi-platform image for scriberr:main
39+
run: |
40+
docker buildx imagetools inspect ghcr.io/rishikanthc/scriberr:latest

0 commit comments

Comments
 (0)