sliccy 3.28.0 → 3.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui/assets/{adobe-CMOt6RBV.js → adobe-0DL_QrVB.js} +2 -2
- package/dist/ui/assets/adobe-BMa8CC1x.js +1 -0
- package/dist/ui/assets/{agent-bridge-hW415QAE.js → agent-bridge-CF8zaEbY.js} +1 -1
- package/dist/ui/assets/{agent-message-to-chat-DxvgRMh2.js → agent-message-to-chat-PKft-eYY.js} +1 -1
- package/dist/ui/assets/{anthropic-BC6K6cdY.js → anthropic-BTRQyf6B.js} +1 -1
- package/dist/ui/assets/anthropic-pKd3D2zS.js +39 -0
- package/dist/ui/assets/{apps-Dr9FIzjl.js → apps-C7FlF6L0.js} +1 -1
- package/dist/ui/assets/azure-openai-CxbeALYC.js +1 -0
- package/dist/ui/assets/{azure-openai-BMUF5f0d.js → azure-openai-qCOoVvmM.js} +1 -1
- package/dist/ui/assets/{azure-openai-responses-DJv1qDQU.js → azure-openai-responses-CEAVF1lj.js} +1 -1
- package/dist/ui/assets/{azure-openai-responses-CG2x6ghy.js → azure-openai-responses-CxQ0lJmc.js} +1 -1
- package/dist/ui/assets/{biome_wasm-BzCoRiez.js → biome_wasm-CVAA5En1.js} +1 -1
- package/dist/ui/assets/{bsh-watchdog-BhyyrsLG.js → bsh-watchdog-CDVDNitI.js} +1 -1
- package/dist/ui/assets/{cdp-CVhzXRUr.js → cdp-BTFCJ4gY.js} +3 -3
- package/dist/ui/assets/{cdp-ws-page-bridge-DIQyPbnc.js → cdp-ws-page-bridge-DR1kYZHJ.js} +1 -1
- package/dist/ui/assets/{common-CuKB31Bx.js → common-DyfVHWXQ.js} +1 -1
- package/dist/ui/assets/{connect-surface-CCGvblVO.js → connect-surface-DzZU53dz.js} +1 -1
- package/dist/ui/assets/cost-command-8WnEL3cL.js +1 -0
- package/dist/ui/assets/{es-Cv6f-0s7.js → es-CXpVg21H.js} +1 -1
- package/dist/ui/assets/{follower-sprinkle-bridge-DEAKinMn.js → follower-sprinkle-bridge-CXvabG4g.js} +1 -1
- package/dist/ui/assets/{github-IUCTxlu3.js → github-BPZtD87k.js} +2 -2
- package/dist/ui/assets/{github-8u3THsb9.js → github-DdBi875v.js} +1 -1
- package/dist/ui/assets/{github-copilot-BpjWdMXh.js → github-copilot-BZ5w9aB0.js} +2 -2
- package/dist/ui/assets/github-copilot-D7O-qgTD.js +1 -0
- package/dist/ui/assets/{google-fooyUc87.js → google-D8dxt3AS.js} +1 -1
- package/dist/ui/assets/{google-CE3pVXMY.js → google-DDvB5rx3.js} +1 -1
- package/dist/ui/assets/{google-shared-CvX1HGJK.js → google-shared-BywGe3l0.js} +1 -1
- package/dist/ui/assets/{google-shared-C_9EKNrW.js → google-shared-DZg5kEPk.js} +1 -1
- package/dist/ui/assets/{google-vertex-FAi9wG7t.js → google-vertex-CM_hh5nq.js} +1 -1
- package/dist/ui/assets/{google-vertex-Wf1pkd9h.js → google-vertex-sRdz1OrO.js} +1 -1
- package/dist/ui/assets/{intercepted-oauth-onIAQjXH.js → intercepted-oauth-WEGSCGED.js} +1 -1
- package/dist/ui/assets/{kernel-worker-DrqmmlLF.js → kernel-worker-C3Hif24s.js} +1096 -1096
- package/dist/ui/assets/{lick-ws-bridge-DEwdAGsC.js → lick-ws-bridge-BRdWkawz.js} +1 -1
- package/dist/ui/assets/{local-llm-Q03t5xci.js → local-llm-BUfXxYDH.js} +1 -1
- package/dist/ui/assets/{magick-wasm-BA_z-_am.js → magick-wasm-CvlcnTGF.js} +1 -1
- package/dist/ui/assets/{main-BlxLnse7.js → main-DA7Tsa5o.js} +187 -187
- package/dist/ui/assets/{main-cherry-D44F4Vlh.js → main-cherry-D5LbYnQM.js} +1 -1
- package/dist/ui/assets/{mistral-DEjW9qqh.js → mistral-C3UPc3pc.js} +1 -1
- package/dist/ui/assets/{mistral-yWGuKrq4.js → mistral-DtpDyoKC.js} +2 -2
- package/dist/ui/assets/{nodejs-CfVKCb8p.js → nodejs-iJD6Vom-.js} +1 -1
- package/dist/ui/assets/{nuke-command-BHFb7iYV.js → nuke-command-5CAjNSPY.js} +1 -1
- package/dist/ui/assets/{oauth-bootstrap-DdTo_8kc.js → oauth-bootstrap-CU1_BPOE.js} +2 -2
- package/dist/ui/assets/{oauth-service-Ct9lZUcR.js → oauth-service-BA5VfD_k.js} +1 -1
- package/dist/ui/assets/{oauth-service-CGlrsCXI.js → oauth-service-ClntiHol.js} +1 -1
- package/dist/ui/assets/{oauth-DaANiDrq.js → oauth-zqvBtm1i.js} +1 -1
- package/dist/ui/assets/offscreen-client-C-B0E8tZ.js +1 -0
- package/dist/ui/assets/{onboarding-orchestrator-BN98n0DZ.js → onboarding-orchestrator-BszyKebR.js} +1 -1
- package/dist/ui/assets/{openai-codex-H4Rpya6U.js → openai-codex-CMGWLIPR.js} +1 -1
- package/dist/ui/assets/openai-codex-qnvXd0bn.js +1 -0
- package/dist/ui/assets/{openai-codex-responses-BOKYXvIU.js → openai-codex-responses-DyxOYCpe.js} +1 -1
- package/dist/ui/assets/{openai-codex-responses-D8oxdjNx.js → openai-codex-responses-E1b4_gkr.js} +5 -5
- package/dist/ui/assets/{openai-completions-zAlP8W8O.js → openai-completions-C-9b_G2v.js} +1 -1
- package/dist/ui/assets/openai-responses-CjiGTqZG.js +1 -0
- package/dist/ui/assets/{openai-responses-1AuAFhF4.js → openai-responses-D2f7aYTk.js} +1 -1
- package/dist/ui/assets/openai-responses-shared-CAPAtr-M.js +12 -0
- package/dist/ui/assets/{openai-responses-shared-DtjQSz4-.js → openai-responses-shared-CiZiNVFm.js} +1 -1
- package/dist/ui/assets/{openrouter-BjNEb_vt.js → openrouter-CRenj3bK.js} +1 -1
- package/dist/ui/assets/{openrouter-Cy7d-Hse.js → openrouter-CupkpTNl.js} +1 -1
- package/dist/ui/assets/{panel-rpc-handlers-BIBd7qwX.js → panel-rpc-handlers-BHwvwNMk.js} +1 -1
- package/dist/ui/assets/{provider-B4kcdYSm.js → provider-Bt84bW9J.js} +2 -2
- package/dist/ui/assets/{provider-D62HUJ72.js → provider-DLwRCgX3.js} +1 -1
- package/dist/ui/assets/provider-store-access-C82rrCXm.js +1 -0
- package/dist/ui/assets/provider-store-access-DgTwKMbZ.js +1 -0
- package/dist/ui/assets/{proxied-fetch-Ku3mKDDw.js → proxied-fetch-B1PyBXZb.js} +1 -1
- package/dist/ui/assets/{pyodide-BzzXGKXZ.js → pyodide-DFK6dHiz.js} +2 -2
- package/dist/ui/assets/{remote-terminal-view-Aip8SZl4.js → remote-terminal-view-DhTnLET6.js} +1 -1
- package/dist/ui/assets/{secret-env-BXrNc3Yc.js → secret-env-BcNtTPVS.js} +1 -1
- package/dist/ui/assets/{slicc-editor-DxNnkMN4.js → slicc-editor-BQysrPCR.js} +1 -1
- package/dist/ui/assets/{spawn-NJPpLzuU.js → spawn-D5qi9Bol.js} +1 -1
- package/dist/ui/assets/{sql-wasm-BatnsmsR.js → sql-wasm-CaMhlfeZ.js} +1 -1
- package/dist/ui/assets/store-D5qtf1zc.js +1 -0
- package/dist/ui/assets/{tray-leave-runtime-B3OyxolX.js → tray-leave-runtime-F1cecuzn.js} +1 -1
- package/dist/ui/assets/{typescript-DAY1Zzuh.js → typescript-HnN5As_G.js} +1 -1
- package/dist/ui/assets/upgrade-detection-BQ4XPZ7f.js +1 -0
- package/dist/ui/assets/{web-CJrS_pPN.js → web-CdFH5Tqz.js} +1 -1
- package/dist/ui/assets/{ws-subscribers-B8hdAhNQ.js → ws-subscribers-DK196oPZ.js} +1 -1
- package/dist/ui/assets/xai-grok-387Rvp2K.js +1 -0
- package/dist/ui/assets/{xai-grok-CKHIBDys.js → xai-grok-DKBbpIz3.js} +1 -1
- package/dist/ui/electron-overlay-entry.js +10 -10
- package/dist/ui/index.html +1 -1
- package/dist/ui/packages/webapp/index.html +1 -1
- package/package.json +2 -2
- package/dist/ui/assets/adobe-BsI2QHM-.js +0 -1
- package/dist/ui/assets/anthropic-6xJJ2YZO.js +0 -39
- package/dist/ui/assets/azure-openai-BaAPMfG9.js +0 -1
- package/dist/ui/assets/cost-command-7TPmiftF.js +0 -1
- package/dist/ui/assets/github-copilot-DgFjN6KZ.js +0 -1
- package/dist/ui/assets/offscreen-client-DQeDUS4X.js +0 -1
- package/dist/ui/assets/openai-codex-DCZS82Tv.js +0 -1
- package/dist/ui/assets/openai-responses-Bm1d6S7j.js +0 -1
- package/dist/ui/assets/openai-responses-shared-CyGENinm.js +0 -12
- package/dist/ui/assets/provider-store-access-DUMZRNG6.js +0 -1
- package/dist/ui/assets/provider-store-access-XwHcqQAV.js +0 -1
- package/dist/ui/assets/store-Cu-dZ-Qd.js +0 -1
- package/dist/ui/assets/upgrade-detection-BSSXcDy5.js +0 -1
- package/dist/ui/assets/xai-grok-Cil1zzx5.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{K as e,W as t,Z as n,k as r,l as i,q as a}from"./kernel-worker-C3Hif24s.js";import{a as o,i as s,n as c,o as l,r as u,s as d,t as f}from"./google-shared-DZg5kEPk.js";let p=0;const m=(r,i,a)=>{let o=new t;return(async()=>{let t={role:`assistant`,content:[],api:`google-generative-ai`,provider:r.provider,model:r.id,usage:{input:0,output:0,cacheRead:0,cacheWrite:0,totalTokens:0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}},stopReason:`stop`,timestamp:Date.now()};try{let c=g(r,a?.apiKey||n(r.provider)||``,a?.headers),d=_(r,i,a),f=await a?.onPayload?.(d,r);f!==void 0&&(d=f);let m=await c.models.generateContentStream(d);o.push({type:`start`,partial:t});let h=null,v=t.content,y=()=>v.length-1;for await(let n of m){t.responseId||=n.responseId;let i=n.candidates?.[0];if(i?.content?.parts)for(let e of i.content.parts){if(e.text!==void 0){let n=u(e);(!h||n&&h.type!==`thinking`||!n&&h.type!==`text`)&&(h&&(h.type===`text`?o.push({type:`text_end`,contentIndex:v.length-1,content:h.text,partial:t}):o.push({type:`thinking_end`,contentIndex:y(),content:h.thinking,partial:t})),n?(h={type:`thinking`,thinking:``,thinkingSignature:void 0},t.content.push(h),o.push({type:`thinking_start`,contentIndex:y(),partial:t})):(h={type:`text`,text:``},t.content.push(h),o.push({type:`text_start`,contentIndex:y(),partial:t}))),h.type===`thinking`?(h.thinking+=e.text,h.thinkingSignature=l(h.thinkingSignature,e.thoughtSignature),o.push({type:`thinking_delta`,contentIndex:y(),delta:e.text,partial:t})):(h.text+=e.text,h.textSignature=l(h.textSignature,e.thoughtSignature),o.push({type:`text_delta`,contentIndex:y(),delta:e.text,partial:t}))}if(e.functionCall){h&&=(h.type===`text`?o.push({type:`text_end`,contentIndex:y(),content:h.text,partial:t}):o.push({type:`thinking_end`,contentIndex:y(),content:h.thinking,partial:t}),null);let n=e.functionCall.id,r={type:`toolCall`,id:!n||t.content.some(e=>e.type===`toolCall`&&e.id===n)?`${e.functionCall.name}_${Date.now()}_${++p}`:n,name:e.functionCall.name||``,arguments:e.functionCall.args??{},...e.thoughtSignature&&{thoughtSignature:e.thoughtSignature}};t.content.push(r),o.push({type:`toolcall_start`,contentIndex:y(),partial:t}),o.push({type:`toolcall_delta`,contentIndex:y(),delta:JSON.stringify(r.arguments),partial:t}),o.push({type:`toolcall_end`,contentIndex:y(),toolCall:r,partial:t})}}i?.finishReason&&(t.stopReason=s(i.finishReason),t.content.some(e=>e.type===`toolCall`)&&(t.stopReason=`toolUse`)),n.usageMetadata&&(t.usage={input:(n.usageMetadata.promptTokenCount||0)-(n.usageMetadata.cachedContentTokenCount||0),output:(n.usageMetadata.candidatesTokenCount||0)+(n.usageMetadata.thoughtsTokenCount||0),cacheRead:n.usageMetadata.cachedContentTokenCount||0,cacheWrite:0,totalTokens:n.usageMetadata.totalTokenCount||0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}},e(r,t.usage))}if(h&&(h.type===`text`?o.push({type:`text_end`,contentIndex:y(),content:h.text,partial:t}):o.push({type:`thinking_end`,contentIndex:y(),content:h.thinking,partial:t})),a?.signal?.aborted)throw Error(`Request was aborted`);if(t.stopReason===`aborted`||t.stopReason===`error`)throw Error(`An unknown error occurred`);o.push({type:`done`,reason:t.stopReason,message:t}),o.end()}catch(e){for(let e of t.content)`index`in e&&delete e.index;t.stopReason=a?.signal?.aborted?`aborted`:`error`,t.errorMessage=e instanceof Error?e.message:JSON.stringify(e),o.push({type:`error`,reason:t.stopReason,error:t}),o.end()}})(),o},h=(e,t,i)=>{let o=i?.apiKey||n(e.provider);if(!o)throw Error(`No API key for provider: ${e.provider}`);let s=r(e,i,o);if(!i?.reasoning)return m(e,t,{...s,thinking:{enabled:!1}});let c=a(e,i.reasoning),l=c===`off`?`high`:c,u=e;return y(u)||b(u)||v(u)?m(e,t,{...s,thinking:{enabled:!0,level:S(l,u)}}):m(e,t,{...s,thinking:{enabled:!0,budgetTokens:C(u,l,i.thinkingBudgets)}})};function g(e,t,n){let r={};return e.baseUrl&&(r.baseUrl=e.baseUrl,r.apiVersion=``),(e.headers||n)&&(r.headers={...e.headers,...n}),new d({apiKey:t,httpOptions:Object.keys(r).length>0?r:void 0})}function _(e,t,n={}){let r=f(e,t),a={};n.temperature!==void 0&&(a.temperature=n.temperature),n.maxTokens!==void 0&&(a.maxOutputTokens=n.maxTokens);let s={...Object.keys(a).length>0&&a,...t.systemPrompt&&{systemInstruction:i(t.systemPrompt)},...t.tools&&t.tools.length>0&&{tools:c(t.tools)}};if(t.tools&&t.tools.length>0&&n.toolChoice?s.toolConfig={functionCallingConfig:{mode:o(n.toolChoice)}}:s.toolConfig=void 0,n.thinking?.enabled&&e.reasoning){let e={includeThoughts:!0};n.thinking.level===void 0?n.thinking.budgetTokens!==void 0&&(e.thinkingBudget=n.thinking.budgetTokens):e.thinkingLevel=n.thinking.level,s.thinkingConfig=e}else e.reasoning&&n.thinking&&!n.thinking.enabled&&(s.thinkingConfig=x(e));if(n.signal){if(n.signal.aborted)throw Error(`Request aborted`);s.abortSignal=n.signal}return{model:e.id,contents:r,config:s}}function v(e){return/gemma-?4/.test(e.id.toLowerCase())}function y(e){return/gemini-3(?:\.\d+)?-pro/.test(e.id.toLowerCase())}function b(e){return/gemini-3(?:\.\d+)?-flash/.test(e.id.toLowerCase())}function x(e){return y(e)?{thinkingLevel:`LOW`}:b(e)||v(e)?{thinkingLevel:`MINIMAL`}:{thinkingBudget:0}}function S(e,t){if(y(t))switch(e){case`minimal`:case`low`:return`LOW`;case`medium`:case`high`:return`HIGH`}if(v(t))switch(e){case`minimal`:case`low`:return`MINIMAL`;case`medium`:case`high`:return`HIGH`}switch(e){case`minimal`:return`MINIMAL`;case`low`:return`LOW`;case`medium`:return`MEDIUM`;case`high`:return`HIGH`}}function C(e,t,n){return n?.[t]===void 0?e.id.includes(`2.5-pro`)?{minimal:128,low:2048,medium:8192,high:32768}[t]:e.id.includes(`2.5-flash-lite`)?{minimal:512,low:2048,medium:8192,high:24576}[t]:e.id.includes(`2.5-flash`)?{minimal:128,low:2048,medium:8192,high:24576}[t]:-1:n[t]}export{m as streamGoogle,h as streamSimpleGoogle};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,Q as t,X as n,rt as r,v as i}from"./main-
|
|
1
|
+
import{$ as e,Q as t,X as n,rt as r,v as i}from"./main-DA7Tsa5o.js";import{t as a}from"./sanitize-unicode-DmIE6hZJ.js";import{a as o,i as s,n as c,o as l,r as u,s as d,t as f}from"./google-shared-BywGe3l0.js";var p=0,m=(e,i,a)=>{let o=new n;return(async()=>{let n={role:`assistant`,content:[],api:`google-generative-ai`,provider:e.provider,model:e.id,usage:{input:0,output:0,cacheRead:0,cacheWrite:0,totalTokens:0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}},stopReason:`stop`,timestamp:Date.now()};try{let c=g(e,a?.apiKey||r(e.provider)||``,a?.headers),d=_(e,i,a),f=await a?.onPayload?.(d,e);f!==void 0&&(d=f);let m=await c.models.generateContentStream(d);o.push({type:`start`,partial:n});let h=null,v=n.content,y=()=>v.length-1;for await(let r of m){n.responseId||=r.responseId;let i=r.candidates?.[0];if(i?.content?.parts)for(let e of i.content.parts){if(e.text!==void 0){let t=u(e);(!h||t&&h.type!==`thinking`||!t&&h.type!==`text`)&&(h&&(h.type===`text`?o.push({type:`text_end`,contentIndex:v.length-1,content:h.text,partial:n}):o.push({type:`thinking_end`,contentIndex:y(),content:h.thinking,partial:n})),t?(h={type:`thinking`,thinking:``,thinkingSignature:void 0},n.content.push(h),o.push({type:`thinking_start`,contentIndex:y(),partial:n})):(h={type:`text`,text:``},n.content.push(h),o.push({type:`text_start`,contentIndex:y(),partial:n}))),h.type===`thinking`?(h.thinking+=e.text,h.thinkingSignature=l(h.thinkingSignature,e.thoughtSignature),o.push({type:`thinking_delta`,contentIndex:y(),delta:e.text,partial:n})):(h.text+=e.text,h.textSignature=l(h.textSignature,e.thoughtSignature),o.push({type:`text_delta`,contentIndex:y(),delta:e.text,partial:n}))}if(e.functionCall){h&&=(h.type===`text`?o.push({type:`text_end`,contentIndex:y(),content:h.text,partial:n}):o.push({type:`thinking_end`,contentIndex:y(),content:h.thinking,partial:n}),null);let t=e.functionCall.id,r={type:`toolCall`,id:!t||n.content.some(e=>e.type===`toolCall`&&e.id===t)?`${e.functionCall.name}_${Date.now()}_${++p}`:t,name:e.functionCall.name||``,arguments:e.functionCall.args??{},...e.thoughtSignature&&{thoughtSignature:e.thoughtSignature}};n.content.push(r),o.push({type:`toolcall_start`,contentIndex:y(),partial:n}),o.push({type:`toolcall_delta`,contentIndex:y(),delta:JSON.stringify(r.arguments),partial:n}),o.push({type:`toolcall_end`,contentIndex:y(),toolCall:r,partial:n})}}i?.finishReason&&(n.stopReason=s(i.finishReason),n.content.some(e=>e.type===`toolCall`)&&(n.stopReason=`toolUse`)),r.usageMetadata&&(n.usage={input:(r.usageMetadata.promptTokenCount||0)-(r.usageMetadata.cachedContentTokenCount||0),output:(r.usageMetadata.candidatesTokenCount||0)+(r.usageMetadata.thoughtsTokenCount||0),cacheRead:r.usageMetadata.cachedContentTokenCount||0,cacheWrite:0,totalTokens:r.usageMetadata.totalTokenCount||0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}},t(e,n.usage))}if(h&&(h.type===`text`?o.push({type:`text_end`,contentIndex:y(),content:h.text,partial:n}):o.push({type:`thinking_end`,contentIndex:y(),content:h.thinking,partial:n})),a?.signal?.aborted)throw Error(`Request was aborted`);if(n.stopReason===`aborted`||n.stopReason===`error`)throw Error(`An unknown error occurred`);o.push({type:`done`,reason:n.stopReason,message:n}),o.end()}catch(e){for(let e of n.content)`index`in e&&delete e.index;n.stopReason=a?.signal?.aborted?`aborted`:`error`,n.errorMessage=e instanceof Error?e.message:JSON.stringify(e),o.push({type:`error`,reason:n.stopReason,error:n}),o.end()}})(),o},h=(t,n,a)=>{let o=a?.apiKey||r(t.provider);if(!o)throw Error(`No API key for provider: ${t.provider}`);let s=i(t,a,o);if(!a?.reasoning)return m(t,n,{...s,thinking:{enabled:!1}});let c=e(t,a.reasoning),l=c===`off`?`high`:c,u=t;return y(u)||b(u)||v(u)?m(t,n,{...s,thinking:{enabled:!0,level:S(l,u)}}):m(t,n,{...s,thinking:{enabled:!0,budgetTokens:C(u,l,a.thinkingBudgets)}})};function g(e,t,n){let r={};return e.baseUrl&&(r.baseUrl=e.baseUrl,r.apiVersion=``),(e.headers||n)&&(r.headers={...e.headers,...n}),new d({apiKey:t,httpOptions:Object.keys(r).length>0?r:void 0})}function _(e,t,n={}){let r=f(e,t),i={};n.temperature!==void 0&&(i.temperature=n.temperature),n.maxTokens!==void 0&&(i.maxOutputTokens=n.maxTokens);let s={...Object.keys(i).length>0&&i,...t.systemPrompt&&{systemInstruction:a(t.systemPrompt)},...t.tools&&t.tools.length>0&&{tools:c(t.tools)}};if(t.tools&&t.tools.length>0&&n.toolChoice?s.toolConfig={functionCallingConfig:{mode:o(n.toolChoice)}}:s.toolConfig=void 0,n.thinking?.enabled&&e.reasoning){let e={includeThoughts:!0};n.thinking.level===void 0?n.thinking.budgetTokens!==void 0&&(e.thinkingBudget=n.thinking.budgetTokens):e.thinkingLevel=n.thinking.level,s.thinkingConfig=e}else e.reasoning&&n.thinking&&!n.thinking.enabled&&(s.thinkingConfig=x(e));if(n.signal){if(n.signal.aborted)throw Error(`Request aborted`);s.abortSignal=n.signal}return{model:e.id,contents:r,config:s}}function v(e){return/gemma-?4/.test(e.id.toLowerCase())}function y(e){return/gemini-3(?:\.\d+)?-pro/.test(e.id.toLowerCase())}function b(e){return/gemini-3(?:\.\d+)?-flash/.test(e.id.toLowerCase())}function x(e){return y(e)?{thinkingLevel:`LOW`}:b(e)||v(e)?{thinkingLevel:`MINIMAL`}:{thinkingBudget:0}}function S(e,t){if(y(t))switch(e){case`minimal`:case`low`:return`LOW`;case`medium`:case`high`:return`HIGH`}if(v(t))switch(e){case`minimal`:case`low`:return`MINIMAL`;case`medium`:case`high`:return`HIGH`}switch(e){case`minimal`:return`MINIMAL`;case`low`:return`LOW`;case`medium`:return`MEDIUM`;case`high`:return`HIGH`}}function C(e,t,n){return n?.[t]===void 0?e.id.includes(`2.5-pro`)?{minimal:128,low:2048,medium:8192,high:32768}[t]:e.id.includes(`2.5-flash-lite`)?{minimal:512,low:2048,medium:8192,high:24576}[t]:e.id.includes(`2.5-flash`)?{minimal:128,low:2048,medium:8192,high:24576}[t]:-1:n[t]}export{m as streamGoogle,h as streamSimpleGoogle};
|