sliccy 3.2.1 → 3.2.2
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-nI2lXFZS.js → adobe-DGj_N6Ph.js} +2 -2
- package/dist/ui/assets/adobe-DfC9St9t.js +1 -0
- package/dist/ui/assets/{agent-bridge-BOSnTfFR.js → agent-bridge-Bdq2-2U1.js} +1 -1
- package/dist/ui/assets/{agent-message-to-chat-DWcpzWsT.js → agent-message-to-chat-BS-F6Kys.js} +1 -1
- package/dist/ui/assets/{anthropic-DSZwm6Il.js → anthropic-CQvaGzGE.js} +2 -2
- package/dist/ui/assets/{anthropic-Dr7XjLnI.js → anthropic-DVNZ8qG5.js} +1 -1
- package/dist/ui/assets/{azure-openai-B0c3bdmX.js → azure-openai-CCxl16TI.js} +1 -1
- package/dist/ui/assets/{azure-openai-Sl6IRfiF.js → azure-openai-jHB0GOKF.js} +1 -1
- package/dist/ui/assets/{azure-openai-responses-CyInI5pN.js → azure-openai-responses-D1kP2P1p.js} +1 -1
- package/dist/ui/assets/{azure-openai-responses-DlELGil5.js → azure-openai-responses-Dk9Ck6Xc.js} +1 -1
- package/dist/ui/assets/{bsh-watchdog-COpOvHJO.js → bsh-watchdog-CZAwPH4w.js} +1 -1
- package/dist/ui/assets/{cdp-aFMV5D5H.js → cdp-BKjD3XOY.js} +3 -3
- package/dist/ui/assets/cost-command-iK50mE_g.js +1 -0
- package/dist/ui/assets/{es-Fg9CJu2a.js → es-Bryowind.js} +5 -5
- package/dist/ui/assets/{follower-sprinkle-bridge-DhazpaQ4.js → follower-sprinkle-bridge-iSN0vvoB.js} +1 -1
- package/dist/ui/assets/{github-B6QNU-3A.js → github-C0osV4N8.js} +2 -2
- package/dist/ui/assets/{github-sM7l0VoL.js → github-CRehqIIW.js} +1 -1
- package/dist/ui/assets/{google-CnlnlpZP.js → google-7x8xKlx2.js} +1 -1
- package/dist/ui/assets/{google-D6c_sIut.js → google-DPwJ0_zt.js} +1 -1
- package/dist/ui/assets/{google-shared-DhHenZn9.js → google-shared-BZhajpyg.js} +1 -1
- package/dist/ui/assets/{google-shared-BulFztPz.js → google-shared-Bod64cSa.js} +1 -1
- package/dist/ui/assets/{google-vertex-B1MO0HYD.js → google-vertex-BviU1WHg.js} +1 -1
- package/dist/ui/assets/{google-vertex-Bagm5hdl.js → google-vertex-DP7tKeq8.js} +1 -1
- package/dist/ui/assets/{index-CVQ53vhp.js → index-BIdwfz5-.js} +8 -8
- package/dist/ui/assets/intercepted-oauth-CmWsZX8-.js +1 -0
- package/dist/ui/assets/{kernel-worker-DXnVtalJ.js → kernel-worker-Bl6OZE87.js} +922 -918
- package/dist/ui/assets/lick-manager-proxy-BnnMFbgv.js +1 -0
- package/dist/ui/assets/lick-ws-bridge-UrdkKCPE.js +1 -0
- package/dist/ui/assets/{local-llm-D75Fgjs0.js → local-llm-CbIlJ_hJ.js} +1 -1
- package/dist/ui/assets/{magick-wasm-2lkhWhgt.js → magick-wasm-CJYXvh6Z.js} +1 -1
- package/dist/ui/assets/{mistral-BlIxxwbs.js → mistral-CDXLf-8l.js} +2 -2
- package/dist/ui/assets/{mistral-BRR29uMI.js → mistral-CcCrpa5I.js} +1 -1
- package/dist/ui/assets/{nuke-command-DTqz_Ptx.js → nuke-command-DSE36toD.js} +1 -1
- package/dist/ui/assets/{oauth-bootstrap-BVwa_nfZ.js → oauth-bootstrap-CP5av5Sf.js} +1 -1
- package/dist/ui/assets/{oauth-service-DqXJQYDI.js → oauth-service-BSHvVtaT.js} +1 -1
- package/dist/ui/assets/{oauth-service-DPEJn1wm.js → oauth-service-CJNnq__v.js} +1 -1
- package/dist/ui/assets/{offscreen-client-CRpw9tqj.js → offscreen-client-XjYVJfge.js} +1 -1
- package/dist/ui/assets/{onboarding-orchestrator-lQP1nZ0U.js → onboarding-orchestrator-fspEBIm9.js} +1 -1
- package/dist/ui/assets/{openai-codex-responses-Dc1_JfHA.js → openai-codex-responses-DdmqR5VR.js} +1 -1
- package/dist/ui/assets/{openai-codex-responses-_IImRqdn.js → openai-codex-responses-U27KpP2m.js} +5 -5
- package/dist/ui/assets/{openai-completions-Btrw7eXb.js → openai-completions-mDDvcykd.js} +1 -1
- package/dist/ui/assets/openai-responses-B7k2BblB.js +1 -0
- package/dist/ui/assets/{openai-responses-JZsTLlZ6.js → openai-responses-BwL7SGhG.js} +1 -1
- package/dist/ui/assets/{openai-responses-shared-C6-6OmQ7.js → openai-responses-shared-CSwTyU92.js} +1 -1
- package/dist/ui/assets/{openai-responses-shared-QJEgheLX.js → openai-responses-shared-DkVlRCfP.js} +4 -4
- package/dist/ui/assets/{panel-rpc-handlers-Daa9NEEL.js → panel-rpc-handlers-C98BBFid.js} +1 -1
- package/dist/ui/assets/{pyodide-C5AaR78M.js → pyodide-B_2TGnVF.js} +2 -2
- package/dist/ui/assets/{remote-terminal-view-C7kjPBGc.js → remote-terminal-view-CAzfTA66.js} +3 -3
- package/dist/ui/assets/{secret-env-BREbgKZt.js → secret-env-oYtTEehz.js} +1 -1
- package/dist/ui/assets/{slicc-editor-D8qyzAmK.js → slicc-editor-o-Xf1-4T.js} +1 -1
- package/dist/ui/assets/{spawn-DDHiq6QX.js → spawn-Dmd08kQD.js} +1 -1
- package/dist/ui/assets/{sql-wasm-C4rwSbnn.js → sql-wasm-DPYz7X3X.js} +2 -2
- package/dist/ui/assets/{upgrade-detection-ARQ7pi6W.js → upgrade-detection-DErrQ71v.js} +1 -1
- package/dist/ui/assets/{xai-grok-dQuvw1db.js → xai-grok-auylJlBX.js} +1 -1
- package/dist/ui/assets/{xai-grok-CJqWJw1A.js → xai-grok-vx1h0G95.js} +1 -1
- 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-CIhJaB8m.js +0 -1
- package/dist/ui/assets/cost-command-CAuxDd3O.js +0 -1
- package/dist/ui/assets/intercepted-oauth-CLysites.js +0 -1
- package/dist/ui/assets/lick-manager-proxy-DfectiMI.js +0 -1
- package/dist/ui/assets/openai-responses-C_hKR-4u.js +0 -1
- /package/dist/ui/assets/{sprinkle-bridge-channel-BBxRgvga.js → sprinkle-bridge-channel-DojIojh7.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{I as e,L as t,P as n,b as r,o as i}from"./kernel-worker-Bl6OZE87.js";import{a,c as o,i as s,l as c,n as l,o as u,r as d,s as f,t as p}from"./google-shared-BZhajpyg.js";const m={THINKING_LEVEL_UNSPECIFIED:c.THINKING_LEVEL_UNSPECIFIED,MINIMAL:c.MINIMAL,LOW:c.LOW,MEDIUM:c.MEDIUM,HIGH:c.HIGH};let h=0;const g=(t,r,i)=>{let a=new n;return(async()=>{let n={role:`assistant`,content:[],api:`google-vertex`,provider:t.provider,model:t.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 o=C(i),c=o?y(t,o,i?.headers):v(t,T(i),E(i),i?.headers),l=D(t,r,i),f=await i?.onPayload?.(l,t);f!==void 0&&(l=f);let p=await c.models.generateContentStream(l);a.push({type:`start`,partial:n});let m=null,g=n.content,_=()=>g.length-1;for await(let r of p){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=d(e);(!m||t&&m.type!==`thinking`||!t&&m.type!==`text`)&&(m&&(m.type===`text`?a.push({type:`text_end`,contentIndex:g.length-1,content:m.text,partial:n}):a.push({type:`thinking_end`,contentIndex:_(),content:m.thinking,partial:n})),t?(m={type:`thinking`,thinking:``,thinkingSignature:void 0},n.content.push(m),a.push({type:`thinking_start`,contentIndex:_(),partial:n})):(m={type:`text`,text:``},n.content.push(m),a.push({type:`text_start`,contentIndex:_(),partial:n}))),m.type===`thinking`?(m.thinking+=e.text,m.thinkingSignature=u(m.thinkingSignature,e.thoughtSignature),a.push({type:`thinking_delta`,contentIndex:_(),delta:e.text,partial:n})):(m.text+=e.text,m.textSignature=u(m.textSignature,e.thoughtSignature),a.push({type:`text_delta`,contentIndex:_(),delta:e.text,partial:n}))}if(e.functionCall){m&&=(m.type===`text`?a.push({type:`text_end`,contentIndex:_(),content:m.text,partial:n}):a.push({type:`thinking_end`,contentIndex:_(),content:m.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()}_${++h}`:t,name:e.functionCall.name||``,arguments:e.functionCall.args??{},...e.thoughtSignature&&{thoughtSignature:e.thoughtSignature}};n.content.push(r),a.push({type:`toolcall_start`,contentIndex:_(),partial:n}),a.push({type:`toolcall_delta`,contentIndex:_(),delta:JSON.stringify(r.arguments),partial:n}),a.push({type:`toolcall_end`,contentIndex:_(),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}},e(t,n.usage))}if(m&&(m.type===`text`?a.push({type:`text_end`,contentIndex:_(),content:m.text,partial:n}):a.push({type:`thinking_end`,contentIndex:_(),content:m.thinking,partial:n})),i?.signal?.aborted)throw Error(`Request was aborted`);if(n.stopReason===`aborted`||n.stopReason===`error`)throw Error(`An unknown error occurred`);a.push({type:`done`,reason:n.stopReason,message:n}),a.end()}catch(e){for(let e of n.content)`index`in e&&delete e.index;n.stopReason=i?.signal?.aborted?`aborted`:`error`,n.errorMessage=e instanceof Error?e.message:JSON.stringify(e),a.push({type:`error`,reason:n.stopReason,error:n}),a.end()}})(),a},_=(e,n,i)=>{let a=r(e,i,void 0);if(!i?.reasoning)return g(e,n,{...a,thinking:{enabled:!1}});let o=t(e,i.reasoning),s=o===`off`?`high`:o,c=e;return O(c)||k(c)?g(e,n,{...a,thinking:{enabled:!0,level:j(s,c)}}):g(e,n,{...a,thinking:{enabled:!0,budgetTokens:M(c,s,i.thinkingBudgets)}})};function v(e,t,n,r){return new f({vertexai:!0,project:t,location:n,apiVersion:`v1`,httpOptions:b(e,r)})}function y(e,t,n){return new f({vertexai:!0,apiKey:t,apiVersion:`v1`,httpOptions:b(e,n)})}function b(e,t){let n={},r=x(e.baseUrl);return r&&(n.baseUrl=r,n.baseUrlResourceScope=o.COLLECTION,S(r)&&(n.apiVersion=``)),(e.headers||t)&&(n.headers={...e.headers,...t}),Object.keys(n).length>0?n:void 0}function x(e){let t=e.trim();if(!(!t||t.includes(`{location}`)))return t}function S(e){try{return new URL(e).pathname.split(`/`).some(e=>/^v\d+(?:beta\d*)?$/.test(e))}catch{return/(?:^|\/)v\d+(?:beta\d*)?(?:\/|$)/.test(e)}}function C(e){let t=e?.apiKey?.trim()||{}.GOOGLE_CLOUD_API_KEY?.trim();if(!(!t||t===`gcp-vertex-credentials`||w(t)))return t}function w(e){return/^<[^>]+>$/.test(e)}function T(e){let t=e?.project||{}.GOOGLE_CLOUD_PROJECT||{}.GCLOUD_PROJECT;if(!t)throw Error(`Vertex AI requires a project ID. Set GOOGLE_CLOUD_PROJECT/GCLOUD_PROJECT or pass project in options.`);return t}function E(e){let t=e?.location||{}.GOOGLE_CLOUD_LOCATION;if(!t)throw Error(`Vertex AI requires a location. Set GOOGLE_CLOUD_LOCATION or pass location in options.`);return t}function D(e,t,n={}){let r=p(e,t),o={};n.temperature!==void 0&&(o.temperature=n.temperature),n.maxTokens!==void 0&&(o.maxOutputTokens=n.maxTokens);let s={...Object.keys(o).length>0&&o,...t.systemPrompt&&{systemInstruction:i(t.systemPrompt)},...t.tools&&t.tools.length>0&&{tools:l(t.tools)}};if(t.tools&&t.tools.length>0&&n.toolChoice?s.toolConfig={functionCallingConfig:{mode:a(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=m[n.thinking.level],s.thinkingConfig=e}else e.reasoning&&n.thinking&&!n.thinking.enabled&&(s.thinkingConfig=A(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 O(e){return/gemini-3(?:\.\d+)?-pro/.test(e.id.toLowerCase())}function k(e){return/gemini-3(?:\.\d+)?-flash/.test(e.id.toLowerCase())}function A(e){let t=e;return O(t)?{thinkingLevel:c.LOW}:k(t)?{thinkingLevel:c.MINIMAL}:{thinkingBudget:0}}function j(e,t){if(O(t))switch(e){case`minimal`:case`low`:return`LOW`;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 M(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`)?{minimal:128,low:2048,medium:8192,high:24576}[t]:-1:n[t]}export{g as streamGoogleVertex,_ as streamSimpleGoogleVertex};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{F as e,L as t,R as n,_ as r}from"./index-
|
|
1
|
+
import{F as e,L as t,R as n,_ as r}from"./index-BIdwfz5-.js";import{t as i}from"./sanitize-unicode-h0KEBmEw.js";import{a,c as o,i as s,l as c,n as l,o as u,r as d,s as f,t as p}from"./google-shared-Bod64cSa.js";var m=`v1`,h=`gcp-vertex-credentials`,g={THINKING_LEVEL_UNSPECIFIED:c.THINKING_LEVEL_UNSPECIFIED,MINIMAL:c.MINIMAL,LOW:c.LOW,MEDIUM:c.MEDIUM,HIGH:c.HIGH},_=0,v=(n,r,i)=>{let a=new e;return(async()=>{let e={role:`assistant`,content:[],api:`google-vertex`,provider:n.provider,model:n.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 o=T(i),c=o?x(n,o,i?.headers):b(n,D(i),O(i),i?.headers),l=k(n,r,i),f=await i?.onPayload?.(l,n);f!==void 0&&(l=f);let p=await c.models.generateContentStream(l);a.push({type:`start`,partial:e});let m=null,h=e.content,g=()=>h.length-1;for await(let r of p){e.responseId||=r.responseId;let i=r.candidates?.[0];if(i?.content?.parts)for(let t of i.content.parts){if(t.text!==void 0){let n=d(t);(!m||n&&m.type!==`thinking`||!n&&m.type!==`text`)&&(m&&(m.type===`text`?a.push({type:`text_end`,contentIndex:h.length-1,content:m.text,partial:e}):a.push({type:`thinking_end`,contentIndex:g(),content:m.thinking,partial:e})),n?(m={type:`thinking`,thinking:``,thinkingSignature:void 0},e.content.push(m),a.push({type:`thinking_start`,contentIndex:g(),partial:e})):(m={type:`text`,text:``},e.content.push(m),a.push({type:`text_start`,contentIndex:g(),partial:e}))),m.type===`thinking`?(m.thinking+=t.text,m.thinkingSignature=u(m.thinkingSignature,t.thoughtSignature),a.push({type:`thinking_delta`,contentIndex:g(),delta:t.text,partial:e})):(m.text+=t.text,m.textSignature=u(m.textSignature,t.thoughtSignature),a.push({type:`text_delta`,contentIndex:g(),delta:t.text,partial:e}))}if(t.functionCall){m&&=(m.type===`text`?a.push({type:`text_end`,contentIndex:g(),content:m.text,partial:e}):a.push({type:`thinking_end`,contentIndex:g(),content:m.thinking,partial:e}),null);let n=t.functionCall.id,r={type:`toolCall`,id:!n||e.content.some(e=>e.type===`toolCall`&&e.id===n)?`${t.functionCall.name}_${Date.now()}_${++_}`:n,name:t.functionCall.name||``,arguments:t.functionCall.args??{},...t.thoughtSignature&&{thoughtSignature:t.thoughtSignature}};e.content.push(r),a.push({type:`toolcall_start`,contentIndex:g(),partial:e}),a.push({type:`toolcall_delta`,contentIndex:g(),delta:JSON.stringify(r.arguments),partial:e}),a.push({type:`toolcall_end`,contentIndex:g(),toolCall:r,partial:e})}}i?.finishReason&&(e.stopReason=s(i.finishReason),e.content.some(e=>e.type===`toolCall`)&&(e.stopReason=`toolUse`)),r.usageMetadata&&(e.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(n,e.usage))}if(m&&(m.type===`text`?a.push({type:`text_end`,contentIndex:g(),content:m.text,partial:e}):a.push({type:`thinking_end`,contentIndex:g(),content:m.thinking,partial:e})),i?.signal?.aborted)throw Error(`Request was aborted`);if(e.stopReason===`aborted`||e.stopReason===`error`)throw Error(`An unknown error occurred`);a.push({type:`done`,reason:e.stopReason,message:e}),a.end()}catch(t){for(let t of e.content)`index`in t&&delete t.index;e.stopReason=i?.signal?.aborted?`aborted`:`error`,e.errorMessage=t instanceof Error?t.message:JSON.stringify(t),a.push({type:`error`,reason:e.stopReason,error:e}),a.end()}})(),a},y=(e,t,i)=>{let a=r(e,i,void 0);if(!i?.reasoning)return v(e,t,{...a,thinking:{enabled:!1}});let o=n(e,i.reasoning),s=o===`off`?`high`:o,c=e;return A(c)||j(c)?v(e,t,{...a,thinking:{enabled:!0,level:N(s,c)}}):v(e,t,{...a,thinking:{enabled:!0,budgetTokens:P(c,s,i.thinkingBudgets)}})};function b(e,t,n,r){return new f({vertexai:!0,project:t,location:n,apiVersion:m,httpOptions:S(e,r)})}function x(e,t,n){return new f({vertexai:!0,apiKey:t,apiVersion:m,httpOptions:S(e,n)})}function S(e,t){let n={},r=C(e.baseUrl);return r&&(n.baseUrl=r,n.baseUrlResourceScope=o.COLLECTION,w(r)&&(n.apiVersion=``)),(e.headers||t)&&(n.headers={...e.headers,...t}),Object.keys(n).length>0?n:void 0}function C(e){let t=e.trim();if(!(!t||t.includes(`{location}`)))return t}function w(e){try{return new URL(e).pathname.split(`/`).some(e=>/^v\d+(?:beta\d*)?$/.test(e))}catch{return/(?:^|\/)v\d+(?:beta\d*)?(?:\/|$)/.test(e)}}function T(e){let t=e?.apiKey?.trim()||{}.GOOGLE_CLOUD_API_KEY?.trim();if(!(!t||t===h||E(t)))return t}function E(e){return/^<[^>]+>$/.test(e)}function D(e){let t=e?.project||{}.GOOGLE_CLOUD_PROJECT||{}.GCLOUD_PROJECT;if(!t)throw Error(`Vertex AI requires a project ID. Set GOOGLE_CLOUD_PROJECT/GCLOUD_PROJECT or pass project in options.`);return t}function O(e){let t=e?.location||{}.GOOGLE_CLOUD_LOCATION;if(!t)throw Error(`Vertex AI requires a location. Set GOOGLE_CLOUD_LOCATION or pass location in options.`);return t}function k(e,t,n={}){let r=p(e,t),o={};n.temperature!==void 0&&(o.temperature=n.temperature),n.maxTokens!==void 0&&(o.maxOutputTokens=n.maxTokens);let s={...Object.keys(o).length>0&&o,...t.systemPrompt&&{systemInstruction:i(t.systemPrompt)},...t.tools&&t.tools.length>0&&{tools:l(t.tools)}};if(t.tools&&t.tools.length>0&&n.toolChoice?s.toolConfig={functionCallingConfig:{mode:a(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=g[n.thinking.level],s.thinkingConfig=e}else e.reasoning&&n.thinking&&!n.thinking.enabled&&(s.thinkingConfig=M(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 A(e){return/gemini-3(?:\.\d+)?-pro/.test(e.id.toLowerCase())}function j(e){return/gemini-3(?:\.\d+)?-flash/.test(e.id.toLowerCase())}function M(e){let t=e;return A(t)?{thinkingLevel:c.LOW}:j(t)?{thinkingLevel:c.MINIMAL}:{thinkingBudget:0}}function N(e,t){if(A(t))switch(e){case`minimal`:case`low`:return`LOW`;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 P(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`)?{minimal:128,low:2048,medium:8192,high:24576}[t]:-1:n[t]}export{v as streamGoogleVertex,y as streamSimpleGoogleVertex};
|