This build was committed by a bot.

This commit is contained in:
github-actions[bot]
2026-01-28 17:15:25 +00:00
parent 7bcaf0928f
commit 721f51f7a3
3 changed files with 22 additions and 9 deletions

View File

@@ -86,13 +86,26 @@ const HTTP_BASE = "https://orp.aww.4ev.link/ws";
const buildBody = () => {
const { USER: USER2, SUNE: SUNE2, state: state2, payloadWithSampling: payloadWithSampling2 } = window;
const msgs = [];
if (USER2.masterPrompt && !SUNE2.ignore_master_prompt) msgs.push({ role: "system", content: [{ type: "text", text: USER2.masterPrompt }] });
if (SUNE2.system_prompt) msgs.push({ role: "system", content: [{ type: "text", text: SUNE2.system_prompt }] });
msgs.push(...state2.messages.filter((m) => m.role !== "system").map((m) => ({
role: m.role,
content: m.content,
...m.images ? { images: m.images } : {}
})));
const mPrompt = (USER2.masterPrompt || "").trim();
if (mPrompt && !SUNE2.ignore_master_prompt) {
msgs.push({ role: "system", content: mPrompt });
}
const sPrompt = (SUNE2.system_prompt || "").trim();
if (sPrompt) {
msgs.push({ role: "system", content: sPrompt });
}
state2.messages.filter((m) => m.role !== "system").forEach((m) => {
let content = Array.isArray(m.content) ? [...m.content] : [{ type: "text", text: String(m.content || "") }];
content = content.filter((p) => p.type !== "text" || p.text && p.text.trim().length > 0);
if (content.length === 0 || !content.some((p) => p.type === "text")) {
content.push({ type: "text", text: "." });
}
msgs.push({
role: m.role,
content,
...m.images?.length ? { images: m.images } : {}
});
});
const b = payloadWithSampling2({ model: SUNE2.model.replace(/^(or:|oai:|g:|cla:|cf:)/, ""), messages: msgs, stream: true });
if (SUNE2.json_output) {
let s;

2
dist/index.html vendored
View File

@@ -12,7 +12,7 @@
<script defer src="https://cdn.jsdelivr.net/npm/cash-dom/dist/cash.min.js"></script>
<script defer src="//unpkg.com/alpinejs"></script>
<script type="module" crossorigin src="/assets/index-Bt4ejZdu.js"></script>
<script type="module" crossorigin src="/assets/index-SK-1NzFu.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-JLEDB1oP.css">
<link rel="manifest" href="/manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="/registerSW.js"></script></head>
<body class="bg-white text-gray-900 selection:bg-black/10" x-data @click.window="if($event.target.closest('button')) haptic(); if(!document.getElementById('threadPopover').contains($event.target)&&!$event.target.closest('[data-thread-menu]')) hideThreadPopover(); if(!document.getElementById('sunePopover').contains($event.target)&&!$event.target.closest('[data-sune-menu]')) hideSunePopover(); if(!document.getElementById('userMenu').contains($event.target)&&!document.getElementById('userMenuBtn').contains($event.target)) document.getElementById('userMenu').classList.add('hidden')">

2
dist/sw.js vendored
View File

@@ -1 +1 @@
if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise(s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()}).then(()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didnt register its module`);return e}));self.define=(n,t)=>{const r=e||("document"in self?document.currentScript.src:"")||location.href;if(s[r])return;let o={};const d=e=>i(e,r),c={module:{uri:r},exports:o,require:d};s[r]=Promise.all(n.map(e=>c[e]||d(e))).then(e=>(t(...e),o))}}define(["./workbox-8c29f6e4"],function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"index.html",revision:"bc2513d7b6157dd922c1287721be9d6e"},{url:"assets/index-JLEDB1oP.css",revision:null},{url:"assets/index-Bt4ejZdu.js",revision:null},{url:"manifest.webmanifest",revision:"7a6c5c6ab9cb5d3605d21df44c6b17a2"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))});
if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise(s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()}).then(()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didnt register its module`);return e}));self.define=(n,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(s[t])return;let o={};const c=e=>i(e,t),d={module:{uri:t},exports:o,require:c};s[t]=Promise.all(n.map(e=>d[e]||c(e))).then(e=>(r(...e),o))}}define(["./workbox-8c29f6e4"],function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"index.html",revision:"91d04148b0c980edccac09d459615e2f"},{url:"assets/index-SK-1NzFu.js",revision:null},{url:"assets/index-JLEDB1oP.css",revision:null},{url:"manifest.webmanifest",revision:"7a6c5c6ab9cb5d3605d21df44c6b17a2"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))});