refac
Some checks are pending
Deploy to HuggingFace Spaces / check-secret (push) Waiting to run
Deploy to HuggingFace Spaces / deploy (push) Blocked by required conditions
Create and publish Docker images with specific build args / build-main-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-main-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-cuda-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / build-ollama-image (linux/amd64) (push) Waiting to run
Create and publish Docker images with specific build args / build-ollama-image (linux/arm64) (push) Waiting to run
Create and publish Docker images with specific build args / merge-main-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-cuda-images (push) Blocked by required conditions
Create and publish Docker images with specific build args / merge-ollama-images (push) Blocked by required conditions
Python CI / Format Backend (3.11) (push) Waiting to run
Frontend Build / Format & Build Frontend (push) Waiting to run
Frontend Build / Frontend Unit Tests (push) Waiting to run
Integration Test / Run Cypress Integration Tests (push) Waiting to run
Integration Test / Run Migration Tests (push) Waiting to run

This commit is contained in:
Timothy Jaeryang Baek 2025-01-11 20:23:26 -08:00
parent 5d3f778b2a
commit b1bcca90b5
2 changed files with 5 additions and 4 deletions

View File

@ -971,7 +971,7 @@ async def process_chat_response(
continue continue
# Remove the prefix # Remove the prefix
data = data[len("data: ") :] data = data[len("data:") :].strip()
try: try:
data = json.loads(data) data = json.loads(data)

View File

@ -12,6 +12,7 @@
export let touch = true; export let touch = true;
export let className = 'flex'; export let className = 'flex';
export let theme = ''; export let theme = '';
export let offset = [0, 4];
export let allowHTML = true; export let allowHTML = true;
export let tippyOptions = {}; export let tippyOptions = {};
@ -29,7 +30,7 @@
touch: touch, touch: touch,
...(theme !== '' ? { theme } : { theme: 'dark' }), ...(theme !== '' ? { theme } : { theme: 'dark' }),
arrow: false, arrow: false,
offset: [0, 4], offset: offset,
...tippyOptions ...tippyOptions
}); });
} }