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 2024-11-29 13:24:37 -08:00
parent 9f981db0b9
commit 33e54a9d3b
2 changed files with 8 additions and 2 deletions

View File

@ -32,7 +32,11 @@
<div <div
contenteditable="true" contenteditable="true"
bind:this={textareaElement} bind:this={textareaElement}
class="{className} whitespace-pre-wrap relative {!value.trim() ? 'placeholder' : ''}" class="{className} whitespace-pre-wrap relative {value
? !value.trim()
? 'placeholder'
: ''
: 'placeholder'}"
style="field-sizing: content; -moz-user-select: text !important;" style="field-sizing: content; -moz-user-select: text !important;"
on:input={() => { on:input={() => {
const text = textareaElement.innerText; const text = textareaElement.innerText;

View File

@ -68,7 +68,9 @@
} }
}; };
let params = {}; let params = {
system: ''
};
let capabilities = { let capabilities = {
vision: true, vision: true,
usage: undefined, usage: undefined,