This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="pt-br"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Editor Markdown Avançado</title> | |
<!-- CSS Essencial do Editor (para ser distribuído com o editor) --> | |
<style id="editor-core-styles"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="pt-BR"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>SimpleCanvasLLM with History - Chat Style</title> | |
<link rel="stylesheet" href="https://uicdn.toast.com/editor/latest/toastui-editor.min.css" /> | |
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap" rel="stylesheet"> | |
<style> | |
html, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(async function() { | |
// 1) URL do seu servidor | |
const ENDPOINT = "http://localhost:8081/v1/chat/completions"; | |
// 2) Nome exato do modelo (case‐sensitive) | |
const MODEL = "seu-modelo-aqui"; | |
// 3) Texto que o usuário pediu | |
const PROMPT_DO_USUARIO = "escreva uma redação sobre a vida"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(async () => { | |
// 1) Ajuste para o URL do seu servidor | |
const ENDPOINT = "http://localhost:8081/v1/chat/completions"; | |
// 2) Use exatamente o mesmo nome de modelo que funcionou no Python | |
const MODEL = "seu-modelo-aqui"; | |
// 3) Prompt de teste (igual ao Python: "Who won the world series in 2020") | |
const PROMPT = "Who won the world series in 2020"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="pt-BR" data-bs-theme="light"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Leitor & Editor de Planilhas XLSX + AI</title> | |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"> | |
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" rel="stylesheet"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
REM ========================================================== | |
REM start_llama_server.bat – Escolhe modelo .gguf por número | |
REM + opção mmproj/offload | |
REM ========================================================== | |
setlocal EnableDelayedExpansion | |
cd /d "%~dp0" | |
echo. | |
echo ========================================================== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="pt-BR"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Autocomplete @mentions com Lazy-Load</title> | |
<!-- CSS do Tribute.js --> | |
<link | |
rel="stylesheet" | |
href="https://cdnjs.cloudflare.com/ajax/libs/tributejs/5.1.3/tribute.css" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="pt-BR"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Exemplo Tribute.js Autocomplete @mentions</title> | |
<!-- Tribute.js CSS --> | |
<link | |
rel="stylesheet" | |
href="https://cdnjs.cloudflare.com/ajax/libs/tributejs/5.1.3/tribute.css" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Plugin, ButtonView, ContextualBalloon, clickOutsideHandler, View } from 'ckeditor5'; | |
export class HelloWorldView extends View { | |
constructor( locale ) { | |
super( locale ); | |
// Cria o template com textarea e botão | |
this.setTemplate( { | |
tag: 'div', | |
attributes: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2025-05-02 23:30:03] INFO: 127.0.0.1:52812 - "POST /v1/chat/completions HTTP/1.1" 500 Internal Server Error | |
[2025-05-02 23:30:03] ERROR: Exception in ASGI application | |
Traceback (most recent call last): | |
File "/home/celso/.local/lib/python3.12/site-packages/uvicorn/protocols/http/httptools_impl.py", line 409, in run_asgi | |
result = await app( # type: ignore[func-returns-value] | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/home/celso/.local/lib/python3.12/site-packages/uvicorn/middleware/proxy_headers.py", line 60, in __call__ | |
return await self.app(scope, receive, send) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/home/celso/.local/lib/python3.12/site-packages/fastapi/applications.py", line 1054, in __call__ |
NewerOlder