20738f3623
Replace the legacy React UI with the new Svelte-based one. Introduce a Playground in the UI to quickly test out text, image, text to speech and speech to text models behind llama-swap.
Key Changes
New Svelte UI (ui-svelte/)
- Multi-tab Playground with Chat, Image Generation, Audio Transcription, and Speech interfaces
- Chat: message editing/regeneration, markdown rendering with LaTeX math support, image attachments, code syntax highlighting
- Image: size selector, download/fullscreen viewing
- Audio: transcription with peer support
- Speech: voice caching with manual refresh, download button
- Responsive mobile layout with collapsible navigation
- XSS fixes and accessibility improvements
Proxy Improvements
- Add gzip/brotli compression for UI static assets (proxy/ui_compress.go)
- Add GET /v1/audio/voices?model={model} endpoint for voice listing
- Add peer support for /v1/audio/transcriptions
50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
name: Windows CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
|
|
# Allows manual triggering of the workflow
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
|
|
run-tests:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version: '1.23'
|
|
|
|
# cache simple-responder to save the build time
|
|
- name: Restore Simple Responder
|
|
id: restore-simple-responder
|
|
uses: actions/cache/restore@v4
|
|
with:
|
|
path: ./build
|
|
key: ${{ runner.os }}-simple-responder-${{ hashFiles('cmd/simple-responder/simple-responder.go') }}
|
|
|
|
# necessary for testing proxy/Process swapping
|
|
- name: Create simple-responder
|
|
if: steps.restore-simple-responder.outputs.cache-hit != 'true'
|
|
shell: bash
|
|
run: make simple-responder-windows
|
|
|
|
- name: Save Simple Responder
|
|
# nothing new to save ... skip this step
|
|
if: steps.restore-simple-responder.outputs.cache-hit != 'true'
|
|
id: save-simple-responder
|
|
uses: actions/cache/save@v4
|
|
with:
|
|
path: ./build
|
|
key: ${{ runner.os }}-simple-responder-${{ hashFiles('cmd/simple-responder/simple-responder.go') }}
|
|
|
|
- name: Test all
|
|
shell: bash
|
|
run: make test-all |