Spaces:
Sleeping
Sleeping
wip
Browse filesFiles changed (3)
6 unmodified lines78910101211121314156 unmodified lines import Message from "./InferencePlaygroundMessage.svelte"; import IconPlus from "../Icons/IconPlus.svelte";
export let loading; export let conversation: Conversation; export let viewCode; export let loading: boolean; export let viewCode: boolean;
const dispatch = createEventDispatcher<{ addMessage: void;10 unmodified lines1112131415141516171810 unmodified lines const dispatch = createEventDispatcher<{ close: void }>();
function handleKeydown(event: KeyboardEvent) { // close on ESC if (event.key === "Escape") { const { key } = event; if (key === "Escape") { event.preventDefault(); dispatch("close"); }12 unmodified lines13141516161718192012 unmodified lines const dispatch = createEventDispatcher<{ modelSelected: string; close: void }>();
function handleKeydown(event: KeyboardEvent) { const { key } = event; if (event.key === "Escape") { if (key === "Escape") { event.preventDefault(); dispatch("close"); }src/lib/components/InferencePlayground/InferencePlaygroundConversation.svelte+2-2
src/lib/components/InferencePlayground/InferencePlaygroundHFTokenModal.svelte+2-2
src/lib/components/InferencePlayground/InferencePlaygroundModelSelectorModal.svelte+2-1