PageSourceSearch

https://www.volumn.ai/_next/static/chunks/27402.62ef2c4b782b3b66.js

js volumn.ai collected 2026-10-01 16:18:34 UTC 3,716 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[27402],{27402:(e,s,t)=>{t.r(s),t.d(s,{TabOss:()=>d,default:()=>c});var n=t(53757);t(24361);var a=t(40256),i=t(79428),r=t(17671);function d(e){let{accessToken:s,activeTab:t,allowed:d,authError:c,authReady:l,disabled:o,input:x,items:b,label:u,loadAdminModels:m,medium:z,modelsLoading:p,ossPromptBaseUrl:h,ossPromptMessage:k,ossPromptModel:g,ossPromptSaving:f,ossPromptSystem:j,prompt:N,rows:v,saveOssPrompt:w,setOssPromptBaseUrl:y,setOssPromptModel:C,setOssPromptSystem:A,system:_,text:S,type:E,value:M}=e;return(0,n.jsxs)("section",{className:"rounded-xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-800 dark:bg-zinc-900",children:[(0,n.jsxs)("div",{className:"mb-4 flex items-center justify-between gap-3",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(a.A,{className:"h-4 w-4 text-zinc-500"}),(0,n.jsx)("h2",{className:"text-sm font-semibold",children:"OSS-prompt"})]}),(0,n.jsx)("button",{type:"button",onClick:()=>void m(),disabled:p||f,className:"text-xs text-zinc-500 underline-offset-2 hover:underline disabled:cursor-not-allowed disabled:opacity-60 dark:text-zinc-400",children:"刷新"})]}),(0,n.jsxs)("div",{className:"space-y-3",children:[(0,n.jsxs)("div",{className:"grid gap-3 sm:grid-cols-2",children:[(0,n.jsxs)("div",{className:"space-y-1",children:[(0,n.jsx)("label",{className:"text-xs font-medium text-zinc-700 dark:text-zinc-300",children:"Model"}),(0,n.jsx)("input",{value:g,onChange:e=>C(e.target.value),placeholder:"例如 openai/gpt-oss-20b",className:"w-full rounded-md border border-zinc-200 bg-white px-3 py-2 text-xs text-zinc-900 outline-none focus:border-zinc-900 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-50 dark:focus:border-zinc-200"})]}),(0,n.jsxs)("div",{className:"space-y-1",children:[(0,n.jsx)("label",{className:"text-xs font-medium text-zinc-700 dark:text-zinc-300",children:"Base URL"}),(0,n.jsx)("input",{value:h,onChange:e=>y(e.target.value),placeholder:"例如 https://openrouter.ai/api/v1/chat/completions",className:"w-full rounded-md border border-zinc-200 bg-white px-3 py-2 text-xs text-zinc-900 outline-none focus:border-zinc-900 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-50 dark:focus:border-zinc-200"})]})]}),(0,n.jsxs)("div",{className:"space-y-1",children:[(0,n.jsx)("label",{className:"text-xs font-medium text-zinc-700 dark:text-zinc-300",children:"System Prompt"}),(0,n.jsx)("textarea",{value:j,onChange:e=>A(e.target.value),rows:6,placeholder:"用于 persona 创建页的 inline autocomplete(system 消息)",className:"w-full resize-none rounded-md border border-zinc-200 bg-white px-3 py-2 text-xs text-zinc-900 outline-none focus:border-zinc-900 focus:ring-1 focus:ring-zinc-900 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-50 dark:focus:border-zinc-200 dark:focus:ring-zinc-200"})]}),(0,n.jsx)("div",{className:"flex items-center justify-end",children:(0,n.jsxs)("button",{type:"button",onClick:()=>void w(),disabled:f||!l||!s,className:"inline-flex items-center gap-2 rounded-md bg-zinc-900 px-3 py-1.5 text-xs font-medium text-white hover:bg-zinc-800 disabled:cursor-not-allowed disabled:opacity-60 dark:bg-zinc-100 dark:text-zinc-900 dark:hover:bg-zinc-200",children:[f?(0,n.jsx)(i.A,{className:"h-3.5 w-3.5 animate-spin"}):(0,n.jsx)(r.A,{className:"h-3.5 w-3.5"}),(0,n.jsx)("span",{children:"保存"})]})}),k&&(0,n.jsx)("div",{className:"rounded-md bg-zinc-50 px-3 py-2 text-xs text-zinc-800 dark:bg-zinc-900/60 dark:text-zinc-100",children:k})]})]})}let c=d},79428:(e,s,t)=>{t.d(s,{A:()=>n});let n=(0,t(56059).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.