sliccy 5.67.1 → 5.67.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/account-store-BIF64n8-.js +94 -0
- package/dist/ui/assets/{account-store-D7kMPjMl.js → account-store-CovklOkk.js} +1 -1
- package/dist/ui/assets/adobe-17vWB0a6.js +1 -0
- package/dist/ui/assets/adobe-TXieKYY5.js +2 -0
- package/dist/ui/assets/amazon-bedrock-Cg62P8pR.json +1 -0
- package/dist/ui/assets/anthropic-4_qTN2Mu.json +1 -0
- package/dist/ui/assets/anthropic-messages-6XWFkWWy.js +39 -0
- package/dist/ui/assets/anthropic-messages-D42B1WVl.js +39 -0
- package/dist/ui/assets/{apps-BoOkGG9c.js → apps-BIcLdFeM.js} +1 -1
- package/dist/ui/assets/azure-openai-C1W6dEpq.js +1 -0
- package/dist/ui/assets/azure-openai-DWOa9B_t.js +1 -0
- package/dist/ui/assets/azure-openai-responses-BvEv9lZE.js +1 -0
- package/dist/ui/assets/azure-openai-responses-DE9sINqp.json +1 -0
- package/dist/ui/assets/azure-openai-responses-DRSA640t.js +1 -0
- package/dist/ui/assets/bedrock-camp-BuUxtnu3.js +1 -0
- package/dist/ui/assets/bedrock-camp-Dn7pj03H.js +1 -0
- package/dist/ui/assets/cerebras-CztfMhyd.js +1 -0
- package/dist/ui/assets/cerebras-QbxVz39_.js +1 -0
- package/dist/ui/assets/cloudflare-ai-gateway-DDb7hKDm.json +1 -0
- package/dist/ui/assets/cloudflare-workers-ai-hYVOS3es.json +1 -0
- package/dist/ui/assets/compat-D-WVLG85.js +2 -0
- package/dist/ui/assets/{connect-surface-C-7W435s.js → connect-surface-CHYTf_sk.js} +1 -1
- package/dist/ui/assets/{context-compaction-dcYYajWb.js → context-compaction-2cZIhnSb.js} +1 -1
- package/dist/ui/assets/deferred-tools-C1IEsG5C.js +1 -0
- package/dist/ui/assets/deferred-tools-DNuoafg8.js +1 -0
- package/dist/ui/assets/diagnostics-BsVbaNHR.js +1 -0
- package/dist/ui/assets/event-stream-qbAZIAKV.js +1 -0
- package/dist/ui/assets/fireworks-B7kEGNCU.json +1 -0
- package/dist/ui/assets/{fs-D_yANcgX.js → fs-CanwjxXu.js} +2 -2
- package/dist/ui/assets/{fs-D5H4qV90.js → fs-DXkVA9oH.js} +1 -1
- package/dist/ui/assets/{github-BpqJV3zd.js → github-BuNlwy6Z.js} +1 -1
- package/dist/ui/assets/{github-O8AoJ7u2.js → github-Dr94t9Ca.js} +2 -2
- package/dist/ui/assets/github-copilot-DRg525a9.js +1 -0
- package/dist/ui/assets/github-copilot-K9C_HNHm.json +1 -0
- package/dist/ui/assets/github-copilot-WImjMwBU.js +2 -0
- package/dist/ui/assets/google-F4XgvJ1y.json +1 -0
- package/dist/ui/assets/google-generative-ai-BqEHWDKc.js +1 -0
- package/dist/ui/assets/google-generative-ai-DOAY2Bef.js +1 -0
- package/dist/ui/assets/{google-shared-CCJkdw81.js → google-shared-2WQG4pNx.js} +1 -1
- package/dist/ui/assets/{google-shared-p5XdfI6c.js → google-shared-CGD-JGZx.js} +1 -1
- package/dist/ui/assets/google-vertex-C-dQj0iH.js +1 -0
- package/dist/ui/assets/google-vertex-CiTExP0E.js +1 -0
- package/dist/ui/assets/huggingface-BjNadu0v.json +1 -0
- package/dist/ui/assets/{kernel-worker-uWACBBhV.js → kernel-worker-0dC64i4h.js} +592 -588
- package/dist/ui/assets/{legacy-api-aliases-BEwZmDvB.js → legacy-api-aliases-CI-iGRFs.js} +1 -1
- package/dist/ui/assets/{legacy-api-aliases-BQSsmFIS.js → legacy-api-aliases-CaOObRpi.js} +1 -1
- package/dist/ui/assets/{lick-ws-bridge-TTCR56gq.js → lick-ws-bridge-CZk5y_uS.js} +1 -1
- package/dist/ui/assets/{local-llm-DuSay7Zm.js → local-llm-CvlXyUsR.js} +1 -1
- package/dist/ui/assets/{local-llm-DtdiuuN-.js → local-llm-Dz9k2lTQ.js} +2 -2
- package/dist/ui/assets/{main-DXAgi47H.js → main-Nb-8QjGQ.js} +3 -3
- package/dist/ui/assets/mistral-CLEcIOtP.json +1 -0
- package/dist/ui/assets/{mistral-conversations-DbKikZnf.js → mistral-conversations-BIHTMTfL.js} +1 -1
- package/dist/ui/assets/{mistral-conversations-CLDzxp2F.js → mistral-conversations-CFKNSaPt.js} +2 -2
- package/dist/ui/assets/models-Bnh9VDA1.js +1 -0
- package/dist/ui/assets/moonshotai-8QShYhhE.json +1 -0
- package/dist/ui/assets/moonshotai-cn-7hHZff5z.json +1 -0
- package/dist/ui/assets/{mount-C5cBuZIQ.js → mount-ClX16Vqy.js} +1 -1
- package/dist/ui/assets/{mount-B6AQ9wuU.js → mount-DvJJTEk6.js} +2 -2
- package/dist/ui/assets/{mount-recovery-DUunzxUB.js → mount-recovery-_mFoJDg1.js} +1 -1
- package/dist/ui/assets/new-session-D0IePVky.js +2 -0
- package/dist/ui/assets/nvidia-dA6GzUPm.json +1 -0
- package/dist/ui/assets/oauth-bootstrap-zfn3CvH_.js +2 -0
- package/dist/ui/assets/openai-BehvdaXx.json +1 -0
- package/dist/ui/assets/openai-codex-Dmvgi9kk.js +1 -0
- package/dist/ui/assets/openai-codex-qgJYbHcs.js +1 -0
- package/dist/ui/assets/openai-codex-responses-B7cFMjWk.js +7 -0
- package/dist/ui/assets/openai-codex-responses-DqxoDEwc.js +7 -0
- package/dist/ui/assets/openai-completions-Z1aRkqWe.js +5 -0
- package/dist/ui/assets/openai-completions-o78dOizF.js +5 -0
- package/dist/ui/assets/openai-responses-SPfzkTJm.js +1 -0
- package/dist/ui/assets/openai-responses-shared-BHsJFKuB.js +10 -0
- package/dist/ui/assets/openai-responses-shared-Dg5Ojqlw.js +10 -0
- package/dist/ui/assets/openai-responses-xSdsW9lw.js +1 -0
- package/dist/ui/assets/opencode-4chvZrBR.json +1 -0
- package/dist/ui/assets/opencode-go-Chp1OOUx.json +1 -0
- package/dist/ui/assets/openrouter-ZLTwKIjA.json +1 -0
- package/dist/ui/assets/{panel-rpc-handlers-C7cI_wpd.js → panel-rpc-handlers-L5pGVFBu.js} +2 -2
- package/dist/ui/assets/pi-messages-DRdk3sMN.js +7 -0
- package/dist/ui/assets/pi-messages-fKU_b1SK.js +7 -0
- package/dist/ui/assets/{provider-B_beyvZ1.js → provider-DAA4g3_k.js} +1 -1
- package/dist/ui/assets/{provider-mNJ81Nmf.js → provider-m1X4CbVe.js} +2 -2
- package/dist/ui/assets/{provider-settings-Bynyth1-.js → provider-settings-Cf7eXAWa.js} +1 -1
- package/dist/ui/assets/{provider-settings-Br12uT6y.js → provider-settings-Cuugd-fj.js} +1 -1
- package/dist/ui/assets/{provider-store-access-DPdIt2P7.js → provider-store-access-CgDL1cUd.js} +2 -2
- package/dist/ui/assets/provider-store-access-D9WNmF0Z.js +1 -0
- package/dist/ui/assets/providers-BuWMF3xT.js +2 -0
- package/dist/ui/assets/providers-Lwh3Mkv2.js +1 -0
- package/dist/ui/assets/{quick-llm-DAjUwXji.js → quick-llm-CmF1euCZ.js} +1 -1
- package/dist/ui/assets/qwen-token-plan-BpxmzamU.json +1 -0
- package/dist/ui/assets/qwen-token-plan-cn-CPhDR0u_.json +1 -0
- package/dist/ui/assets/{session-freezer-ByN74MO5.js → session-freezer-CvrIXOah.js} +3 -3
- package/dist/ui/assets/setup-sudo-C9KnyJVv.js +2 -0
- package/dist/ui/assets/{skills-BMDzPReO.js → skills-3PZmUeNA.js} +1 -1
- package/dist/ui/assets/{store-Bo-VXhKX.js → store-DdPbOMzR.js} +1 -1
- package/dist/ui/assets/{sudo-CIRZ-EUo.js → sudo--Rx9zaD2.js} +1 -1
- package/dist/ui/assets/together-CYZ-lBBF.json +1 -0
- package/dist/ui/assets/transform-messages-Bp94o3FD.js +1 -0
- package/dist/ui/assets/transform-messages-wECJwtH0.js +1 -0
- package/dist/ui/assets/{upgrade-detection-BGS7lBbj.js → upgrade-detection-Dy4tXX0j.js} +1 -1
- package/dist/ui/assets/vercel-ai-gateway-ZtkcQH_C.json +1 -0
- package/dist/ui/assets/{wc-extension-BS1GKkBY.js → wc-extension-RKYMPCAR.js} +2 -2
- package/dist/ui/assets/wc-follower-Bmun4Cco.js +17 -0
- package/dist/ui/assets/{wc-live-BU8bhGYQ.js → wc-live-huAxuC_m.js} +3 -3
- package/dist/ui/assets/wc-nav-C6eP4gqM.js +2 -0
- package/dist/ui/assets/{wc-onboarding-oXM_3rWS.js → wc-onboarding-sj3cY89G.js} +2 -2
- package/dist/ui/assets/wc-placeholder-CfRJDlgb.js +4 -0
- package/dist/ui/assets/{wc-settings-CwYBG83C.js → wc-settings-BmoBEcXH.js} +2 -2
- package/dist/ui/assets/{wc-shell-APVSI6kq.js → wc-shell-BpzhLQbu.js} +2 -2
- package/dist/ui/assets/{wc-sprinkles-XTLYtBLP.js → wc-sprinkles-COGCgdJj.js} +2 -2
- package/dist/ui/assets/wc-tray-Cx2T5bzX.js +2 -0
- package/dist/ui/assets/xai-grok-B5OVP1_6.js +1 -0
- package/dist/ui/assets/xai-grok-D7tkzbHx.js +1 -0
- package/dist/ui/index.html +11 -10
- package/dist/ui/packages/webapp/index.html +11 -10
- package/package.json +3 -2
- package/dist/ui/assets/account-store-DpZitlUY.js +0 -98
- package/dist/ui/assets/adobe-Bmh-_khT.js +0 -2
- package/dist/ui/assets/adobe-DyH_9qJK.js +0 -1
- package/dist/ui/assets/anthropic-messages-CIsUSIzG.js +0 -39
- package/dist/ui/assets/anthropic-messages-_fPAePlR.js +0 -39
- package/dist/ui/assets/azure-openai-Dm2kMacy.js +0 -1
- package/dist/ui/assets/azure-openai-rcs4Z0Nm.js +0 -1
- package/dist/ui/assets/azure-openai-responses-DhzbC_tL.js +0 -1
- package/dist/ui/assets/azure-openai-responses-bHfWNMbx.js +0 -1
- package/dist/ui/assets/bedrock-camp-BqDUcxBp.js +0 -1
- package/dist/ui/assets/bedrock-camp-DdoLg8ey.js +0 -1
- package/dist/ui/assets/cerebras-Bb96dS8U.js +0 -1
- package/dist/ui/assets/cerebras-Ih70UTEx.js +0 -1
- package/dist/ui/assets/compat-DyT25qXb.js +0 -2
- package/dist/ui/assets/github-copilot-Bf-iW8mK.js +0 -2
- package/dist/ui/assets/github-copilot-C_R0Ma0E.js +0 -1
- package/dist/ui/assets/google-generative-ai-CyS9qbzb.js +0 -1
- package/dist/ui/assets/google-generative-ai-DkRyuoBH.js +0 -1
- package/dist/ui/assets/google-vertex-Cp9ldPyE.js +0 -1
- package/dist/ui/assets/google-vertex-D7VRnbrL.js +0 -1
- package/dist/ui/assets/models-CzSI8IsT.js +0 -1
- package/dist/ui/assets/new-session-CgnPWa_k.js +0 -2
- package/dist/ui/assets/oauth-bootstrap-CmurjaMI.js +0 -2
- package/dist/ui/assets/openai-codex-D-gmV2fj.js +0 -1
- package/dist/ui/assets/openai-codex-Dv3Zo1Dx.js +0 -1
- package/dist/ui/assets/openai-codex-responses-B_k2rCqO.js +0 -7
- package/dist/ui/assets/openai-codex-responses-RviMslSH.js +0 -7
- package/dist/ui/assets/openai-completions-CGLtJfv2.js +0 -5
- package/dist/ui/assets/openai-completions-COYKlBqA.js +0 -5
- package/dist/ui/assets/openai-responses-C4mUX6jK.js +0 -1
- package/dist/ui/assets/openai-responses-D02gU0ey.js +0 -1
- package/dist/ui/assets/openai-responses-shared-CCTyKL6A.js +0 -10
- package/dist/ui/assets/openai-responses-shared-bVKJbQt9.js +0 -10
- package/dist/ui/assets/provider-store-access-CeFzxjQ9.js +0 -1
- package/dist/ui/assets/providers-DiQPQy2w.js +0 -2
- package/dist/ui/assets/providers-t50k54fw.js +0 -1
- package/dist/ui/assets/setup-sudo-PBmKBl1V.js +0 -2
- package/dist/ui/assets/transform-messages-CVIV-EgO.js +0 -1
- package/dist/ui/assets/transform-messages-fFaW-DLG.js +0 -1
- package/dist/ui/assets/wc-follower-BWvESj7q.js +0 -17
- package/dist/ui/assets/wc-nav-CPVp8Fk2.js +0 -2
- package/dist/ui/assets/wc-placeholder-BvLEsaiK.js +0 -4
- package/dist/ui/assets/wc-tray-CUbKbp0U.js +0 -2
- package/dist/ui/assets/xai-grok-B5CWbUwl.js +0 -1
- package/dist/ui/assets/xai-grok-models-B0Tf--xf.js +0 -1
- package/dist/ui/assets/xai-grok-models-CeEBaUMC.js +0 -1
- package/dist/ui/assets/xai-grok-qyS7ZUXU.js +0 -1
- package/dist/ui/assets/xai-grok-sanitize-CR2JoOJd.js +0 -5
- package/dist/ui/assets/xai-grok-sanitize-CV6qvaEF.js +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as e,t}from"./rolldown-runtime-aKtaBQYM.js";import{t as n}from"./transform-messages-
|
|
1
|
+
import{i as e,t}from"./rolldown-runtime-aKtaBQYM.js";import{t as n}from"./transform-messages-Bp94o3FD.js";import{t as r}from"./sanitize-unicode-DmIE6hZJ.js";var i=t(((e,t)=>{function n(e,t){typeof t==`boolean`&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}t.exports=n,n.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},n.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},n.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(Error(`RetryOperation timeout occurred`)),!1;this._errors.push(e);var n=this._timeouts.shift();if(n===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),n=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},n),this._options.unref&&this._timer.unref(),!0},n.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var n=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){n._operationTimeoutCb()},n._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},n.prototype.try=function(e){console.log(`Using RetryOperation.try() is deprecated`),this.attempt(e)},n.prototype.start=function(e){console.log(`Using RetryOperation.start() is deprecated`),this.attempt(e)},n.prototype.start=n.prototype.try,n.prototype.errors=function(){return this._errors},n.prototype.attempts=function(){return this._attempts},n.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,n=0,r=0;r<this._errors.length;r++){var i=this._errors[r],a=i.message,o=(e[a]||0)+1;e[a]=o,o>=n&&(t=i,n=o)}return t}})),a=t((e=>{var t=i();e.operation=function(n){return new t(e.timeouts(n),{forever:n&&(n.forever||n.retries===1/0),unref:n&&n.unref,maxRetryTime:n&&n.maxRetryTime})},e.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var n in e)t[n]=e[n];if(t.minTimeout>t.maxTimeout)throw Error(`minTimeout is greater than maxTimeout`);for(var r=[],i=0;i<t.retries;i++)r.push(this.createTimeout(i,t));return e&&e.forever&&!r.length&&r.push(this.createTimeout(i,t)),r.sort(function(e,t){return e-t}),r},e.createTimeout=function(e,t){var n=t.randomize?Math.random()+1:1,r=Math.round(n*Math.max(t.minTimeout,1)*t.factor**+e);return r=Math.min(r,t.maxTimeout),r},e.wrap=function(t,n,r){if(n instanceof Array&&(r=n,n=null),!r)for(var i in r=[],t)typeof t[i]==`function`&&r.push(i);for(var a=0;a<r.length;a++){var o=r[a],s=t[o];t[o]=function(r){var i=e.operation(n),a=Array.prototype.slice.call(arguments,1),o=a.pop();a.push(function(e){i.retry(e)||(e&&(arguments[0]=i.mainError()),o.apply(this,arguments))}),i.attempt(function(){r.apply(t,a)})}.bind(t,s),t[o].options=n}}})),o=t(((e,t)=>{t.exports=a()})),s=e(t(((e,t)=>{let n=o(),r=[`Failed to fetch`,`NetworkError when attempting to fetch resource.`,`The Internet connection appears to be offline.`,`Network request failed`];var i=class extends Error{constructor(e){super(),e instanceof Error?(this.originalError=e,{message:e}=e):(this.originalError=Error(e),this.originalError.stack=this.stack),this.name=`AbortError`,this.message=e}};let a=(e,t,n)=>{let r=n.retries-(t-1);return e.attemptNumber=t,e.retriesLeft=r,e},s=e=>r.includes(e),c=(e,t)=>new Promise((r,o)=>{t={onFailedAttempt:()=>{},retries:10,...t};let c=n.operation(t);c.attempt(async n=>{try{r(await e(n))}catch(e){if(!(e instanceof Error)){o(TypeError(`Non-error was thrown: "${e}". You should only throw errors.`));return}if(e instanceof i)c.stop(),o(e.originalError);else if(e instanceof TypeError&&!s(e.message))c.stop(),o(e);else{a(e,n,t);try{await t.onFailedAttempt(e)}catch(e){o(e);return}c.retry(e)||o(c.mainError())}}})});t.exports=c,t.exports.default=c,t.exports.AbortError=i}))(),1)
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2025 Google LLC
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./event-stream-qbAZIAKV.js";import{o as t,r as n,s as r}from"./transform-messages-Bp94o3FD.js";import{t as i}from"./provider-env-DwY8YuMk.js";import{n as a}from"./headers-CbDaTl3c.js";import{t as o}from"./sanitize-unicode-DmIE6hZJ.js";import{n as s,t as c}from"./error-body-C0EnfbdK.js";import{a as l,c as u,i as d,l as f,n as p,o as m,r as h,s as g,t as _}from"./google-shared-CGD-JGZx.js";const v={THINKING_LEVEL_UNSPECIFIED:f.THINKING_LEVEL_UNSPECIFIED,MINIMAL:f.MINIMAL,LOW:f.LOW,MEDIUM:f.MEDIUM,HIGH:f.HIGH};let y=0;const b=(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=O(i),s=o?C(n,o,i?.headers):S(n,A(i),j(i),i?.headers,i?.env),c=M(n,r,i),l=await i?.onPayload?.(c,n);l!==void 0&&(c=l);let u=await s.models.generateContentStream(c);a.push({type:`start`,partial:e});let f=null,p=e.content,g=()=>p.length-1;for await(let r of u){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=h(t);(!f||n&&f.type!==`thinking`||!n&&f.type!==`text`)&&(f&&(f.type===`text`?a.push({type:`text_end`,contentIndex:p.length-1,content:f.text,partial:e}):a.push({type:`thinking_end`,contentIndex:g(),content:f.thinking,partial:e})),n?(f={type:`thinking`,thinking:``,thinkingSignature:void 0},e.content.push(f),a.push({type:`thinking_start`,contentIndex:g(),partial:e})):(f={type:`text`,text:``},e.content.push(f),a.push({type:`text_start`,contentIndex:g(),partial:e}))),f.type===`thinking`?(f.thinking+=t.text,f.thinkingSignature=m(f.thinkingSignature,t.thoughtSignature),a.push({type:`thinking_delta`,contentIndex:g(),delta:t.text,partial:e})):(f.text+=t.text,f.textSignature=m(f.textSignature,t.thoughtSignature),a.push({type:`text_delta`,contentIndex:g(),delta:t.text,partial:e}))}if(t.functionCall){f&&=(f.type===`text`?a.push({type:`text_end`,contentIndex:g(),content:f.text,partial:e}):a.push({type:`thinking_end`,contentIndex:g(),content:f.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()}_${++y}`: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=d(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,reasoning:r.usageMetadata.thoughtsTokenCount||0,totalTokens:r.usageMetadata.totalTokenCount||0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}},t(n,e.usage))}if(f&&(f.type===`text`?a.push({type:`text_end`,contentIndex:g(),content:f.text,partial:e}):a.push({type:`thinking_end`,contentIndex:g(),content:f.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=c(s(t)),a.push({type:`error`,reason:e.stopReason,error:e}),a.end()}})(),a},x=(e,t,i)=>{let a=n(e,t,i,void 0);if(!i?.reasoning)return b(e,t,{...a,thinking:{enabled:!1}});let o=r(e,i.reasoning),s=o===`off`?`high`:o,c=e;return N(c)||P(c)?b(e,t,{...a,thinking:{enabled:!0,level:I(s,c)}}):b(e,t,{...a,thinking:{enabled:!0,budgetTokens:L(c,s,i.thinkingBudgets)}})};function S(e,t,n,r,i){let a=D(i);return new g({vertexai:!0,project:t,location:n,apiVersion:`v1`,...a?{googleAuthOptions:a}:{},httpOptions:w(e,r)})}function C(e,t,n){return new g({vertexai:!0,apiKey:t,apiVersion:`v1`,httpOptions:w(e,n)})}function w(e,t){let n={},r=T(e.baseUrl);r&&(n.baseUrl=r,n.baseUrlResourceScope=u.COLLECTION,E(r)&&(n.apiVersion=``));let i=a({...e.headers,...t});return i&&(n.headers=i),Object.keys(n).length>0?n:void 0}function T(e){let t=e.trim();if(!(!t||t.includes(`{location}`)))return t}function E(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 D(e){let t=i(`GOOGLE_APPLICATION_CREDENTIALS`,e);return t?{keyFilename:t}:void 0}function O(e){let t=e?.apiKey?.trim();if(!(!t||t===`gcp-vertex-credentials`||k(t)))return t}function k(e){return/^<[^>]+>$/.test(e)}function A(e){let t=e?.project||i(`GOOGLE_CLOUD_PROJECT`,e?.env)||i(`GCLOUD_PROJECT`,e?.env);if(!t)throw Error(`Vertex AI requires a project ID. Set GOOGLE_CLOUD_PROJECT/GCLOUD_PROJECT or pass project in options.`);return t}function j(e){let t=e?.location||i(`GOOGLE_CLOUD_LOCATION`,e?.env);if(!t)throw Error(`Vertex AI requires a location. Set GOOGLE_CLOUD_LOCATION or pass location in options.`);return t}function M(e,t,n={}){let r=_(e,t),i={};n.temperature!==void 0&&(i.temperature=n.temperature),n.maxTokens!==void 0&&(i.maxOutputTokens=n.maxTokens);let a={...Object.keys(i).length>0&&i,...t.systemPrompt&&{systemInstruction:o(t.systemPrompt)},...t.tools&&t.tools.length>0&&{tools:p(t.tools)}};if(t.tools&&t.tools.length>0&&n.toolChoice?a.toolConfig={functionCallingConfig:{mode:l(n.toolChoice)}}:a.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=v[n.thinking.level],a.thinkingConfig=e}else e.reasoning&&n.thinking&&!n.thinking.enabled&&(a.thinkingConfig=F(e));if(n.signal){if(n.signal.aborted)throw Error(`Request aborted`);a.abortSignal=n.signal}return{model:e.id,contents:r,config:a}}function N(e){return/gemini-3(?:\.\d+)?-pro/.test(e.id.toLowerCase())}function P(e){let t=e.id.toLowerCase();return/gemini-3(?:\.\d+)?-flash/.test(t)||t===`gemini-flash-latest`||t===`gemini-flash-lite-latest`}function F(e){let t=e;return N(t)?{thinkingLevel:f.LOW}:P(t)?{thinkingLevel:f.MINIMAL}:{thinkingBudget:0}}function I(e,t){if(N(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 L(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{b as stream,x as streamSimple};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./event-stream-qbAZIAKV.js";import{n as t,t as n}from"./models-Bnh9VDA1.js";import{t as r}from"./provider-env-D37PhSJu.js";import{r as i}from"./transform-messages-wECJwtH0.js";import{n as a}from"./headers-CbDaTl3c.js";import{t as o}from"./sanitize-unicode-DmIE6hZJ.js";import{n as s,t as c}from"./error-body-C0EnfbdK.js";import{a as l,c as u,i as d,l as f,n as p,o as m,r as h,s as g,t as _}from"./google-shared-2WQG4pNx.js";var v=`v1`,y=`gcp-vertex-credentials`,b={THINKING_LEVEL_UNSPECIFIED:f.THINKING_LEVEL_UNSPECIFIED,MINIMAL:f.MINIMAL,LOW:f.LOW,MEDIUM:f.MEDIUM,HIGH:f.HIGH},x=0,S=(t,r,i)=>{let a=new e;return(async()=>{let e={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=A(i),s=o?T(t,o,i?.headers):w(t,M(i),N(i),i?.headers,i?.env),c=P(t,r,i),l=await i?.onPayload?.(c,t);l!==void 0&&(c=l);let u=await s.models.generateContentStream(c);a.push({type:`start`,partial:e});let f=null,p=e.content,g=()=>p.length-1;for await(let r of u){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=h(t);(!f||n&&f.type!==`thinking`||!n&&f.type!==`text`)&&(f&&(f.type===`text`?a.push({type:`text_end`,contentIndex:p.length-1,content:f.text,partial:e}):a.push({type:`thinking_end`,contentIndex:g(),content:f.thinking,partial:e})),n?(f={type:`thinking`,thinking:``,thinkingSignature:void 0},e.content.push(f),a.push({type:`thinking_start`,contentIndex:g(),partial:e})):(f={type:`text`,text:``},e.content.push(f),a.push({type:`text_start`,contentIndex:g(),partial:e}))),f.type===`thinking`?(f.thinking+=t.text,f.thinkingSignature=m(f.thinkingSignature,t.thoughtSignature),a.push({type:`thinking_delta`,contentIndex:g(),delta:t.text,partial:e})):(f.text+=t.text,f.textSignature=m(f.textSignature,t.thoughtSignature),a.push({type:`text_delta`,contentIndex:g(),delta:t.text,partial:e}))}if(t.functionCall){f&&=(f.type===`text`?a.push({type:`text_end`,contentIndex:g(),content:f.text,partial:e}):a.push({type:`thinking_end`,contentIndex:g(),content:f.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()}_${++x}`: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=d(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,reasoning:r.usageMetadata.thoughtsTokenCount||0,totalTokens:r.usageMetadata.totalTokenCount||0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}},n(t,e.usage))}if(f&&(f.type===`text`?a.push({type:`text_end`,contentIndex:g(),content:f.text,partial:e}):a.push({type:`thinking_end`,contentIndex:g(),content:f.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=c(s(t)),a.push({type:`error`,reason:e.stopReason,error:e}),a.end()}})(),a},C=(e,n,r)=>{let a=i(e,n,r,void 0);if(!r?.reasoning)return S(e,n,{...a,thinking:{enabled:!1}});let o=t(e,r.reasoning),s=o===`off`?`high`:o,c=e;return F(c)||I(c)?S(e,n,{...a,thinking:{enabled:!0,level:R(s,c)}}):S(e,n,{...a,thinking:{enabled:!0,budgetTokens:z(c,s,r.thinkingBudgets)}})};function w(e,t,n,r,i){let a=k(i);return new g({vertexai:!0,project:t,location:n,apiVersion:v,...a?{googleAuthOptions:a}:{},httpOptions:E(e,r)})}function T(e,t,n){return new g({vertexai:!0,apiKey:t,apiVersion:v,httpOptions:E(e,n)})}function E(e,t){let n={},r=D(e.baseUrl);r&&(n.baseUrl=r,n.baseUrlResourceScope=u.COLLECTION,O(r)&&(n.apiVersion=``));let i=a({...e.headers,...t});return i&&(n.headers=i),Object.keys(n).length>0?n:void 0}function D(e){let t=e.trim();if(!(!t||t.includes(`{location}`)))return t}function O(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 k(e){let t=r(`GOOGLE_APPLICATION_CREDENTIALS`,e);return t?{keyFilename:t}:void 0}function A(e){let t=e?.apiKey?.trim();if(!(!t||t===y||j(t)))return t}function j(e){return/^<[^>]+>$/.test(e)}function M(e){let t=e?.project||r(`GOOGLE_CLOUD_PROJECT`,e?.env)||r(`GCLOUD_PROJECT`,e?.env);if(!t)throw Error(`Vertex AI requires a project ID. Set GOOGLE_CLOUD_PROJECT/GCLOUD_PROJECT or pass project in options.`);return t}function N(e){let t=e?.location||r(`GOOGLE_CLOUD_LOCATION`,e?.env);if(!t)throw Error(`Vertex AI requires a location. Set GOOGLE_CLOUD_LOCATION or pass location in options.`);return t}function P(e,t,n={}){let r=_(e,t),i={};n.temperature!==void 0&&(i.temperature=n.temperature),n.maxTokens!==void 0&&(i.maxOutputTokens=n.maxTokens);let a={...Object.keys(i).length>0&&i,...t.systemPrompt&&{systemInstruction:o(t.systemPrompt)},...t.tools&&t.tools.length>0&&{tools:p(t.tools)}};if(t.tools&&t.tools.length>0&&n.toolChoice?a.toolConfig={functionCallingConfig:{mode:l(n.toolChoice)}}:a.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=b[n.thinking.level],a.thinkingConfig=e}else e.reasoning&&n.thinking&&!n.thinking.enabled&&(a.thinkingConfig=L(e));if(n.signal){if(n.signal.aborted)throw Error(`Request aborted`);a.abortSignal=n.signal}return{model:e.id,contents:r,config:a}}function F(e){return/gemini-3(?:\.\d+)?-pro/.test(e.id.toLowerCase())}function I(e){let t=e.id.toLowerCase();return/gemini-3(?:\.\d+)?-flash/.test(t)||t===`gemini-flash-latest`||t===`gemini-flash-lite-latest`}function L(e){let t=e;return F(t)?{thinkingLevel:f.LOW}:I(t)?{thinkingLevel:f.MINIMAL}:{thinkingBudget:0}}function R(e,t){if(F(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 z(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{S as stream,C as streamSimple};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"MiniMaxAI/MiniMax-M2":{"id":"MiniMaxAI/MiniMax-M2","name":"MiniMax-M2","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text"],"cost":{"input":0.3,"output":1.2,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":204800,"maxTokens":128000},"MiniMaxAI/MiniMax-M2.1":{"id":"MiniMaxAI/MiniMax-M2.1","name":"MiniMax-M2.1","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text"],"cost":{"input":0.3,"output":1.2,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":204800,"maxTokens":131072},"MiniMaxAI/MiniMax-M2.5":{"id":"MiniMaxAI/MiniMax-M2.5","name":"MiniMax-M2.5","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text"],"cost":{"input":0.3,"output":1.2,"cacheRead":0.03,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":204800,"maxTokens":131072},"MiniMaxAI/MiniMax-M2.7":{"id":"MiniMaxAI/MiniMax-M2.7","name":"MiniMax-M2.7","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text"],"cost":{"input":0.3,"output":1.2,"cacheRead":0.06,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":204800,"maxTokens":131072},"MiniMaxAI/MiniMax-M3":{"id":"MiniMaxAI/MiniMax-M3","name":"MiniMax-M3","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.3,"output":1.2,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":524288,"maxTokens":128000},"Qwen/Qwen3-235B-A22B":{"id":"Qwen/Qwen3-235B-A22B","name":"Qwen3 235B-A22B","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text"],"cost":{"input":0.2,"output":0.8,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":40960,"maxTokens":16384},"Qwen/Qwen3-235B-A22B-Thinking-2507":{"id":"Qwen/Qwen3-235B-A22B-Thinking-2507","name":"Qwen3-235B-A22B-Thinking-2507","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text"],"cost":{"input":0.3,"output":3,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":262144,"maxTokens":131072},"Qwen/Qwen3-32B":{"id":"Qwen/Qwen3-32B","name":"Qwen3 32B","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text"],"cost":{"input":0.29,"output":0.59,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":131072,"maxTokens":16384},"Qwen/Qwen3-Coder-30B-A3B-Instruct":{"id":"Qwen/Qwen3-Coder-30B-A3B-Instruct","name":"Qwen3-Coder 30B-A3B Instruct","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":false,"input":["text"],"cost":{"input":0.07,"output":0.26,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":262144,"maxTokens":65536},"Qwen/Qwen3-Coder-480B-A35B-Instruct":{"id":"Qwen/Qwen3-Coder-480B-A35B-Instruct","name":"Qwen3-Coder-480B-A35B-Instruct","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":false,"input":["text"],"cost":{"input":2,"output":2,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":262144,"maxTokens":66536},"Qwen/Qwen3-Coder-Next":{"id":"Qwen/Qwen3-Coder-Next","name":"Qwen3-Coder-Next","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":false,"input":["text"],"cost":{"input":0.2,"output":1.5,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":262144,"maxTokens":65536},"Qwen/Qwen3-Next-80B-A3B-Instruct":{"id":"Qwen/Qwen3-Next-80B-A3B-Instruct","name":"Qwen3-Next-80B-A3B-Instruct","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":false,"input":["text"],"cost":{"input":0.25,"output":1,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":262144,"maxTokens":66536},"Qwen/Qwen3-Next-80B-A3B-Thinking":{"id":"Qwen/Qwen3-Next-80B-A3B-Thinking","name":"Qwen3-Next-80B-A3B-Thinking","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":false,"input":["text"],"cost":{"input":0.3,"output":2,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":262144,"maxTokens":131072},"Qwen/Qwen3.5-122B-A10B":{"id":"Qwen/Qwen3.5-122B-A10B","name":"Qwen3.5 122B-A10B","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.4,"output":3.2,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":262144,"maxTokens":65536},"Qwen/Qwen3.5-27B":{"id":"Qwen/Qwen3.5-27B","name":"Qwen3.5 27B","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.3,"output":2.4,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":262144,"maxTokens":65536},"Qwen/Qwen3.5-35B-A3B":{"id":"Qwen/Qwen3.5-35B-A3B","name":"Qwen3.5 35B-A3B","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.25,"output":2,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":262144,"maxTokens":65536},"Qwen/Qwen3.5-397B-A17B":{"id":"Qwen/Qwen3.5-397B-A17B","name":"Qwen3.5-397B-A17B","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.6,"output":3.6,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":262144,"maxTokens":32768},"Qwen/Qwen3.5-9B":{"id":"Qwen/Qwen3.5-9B","name":"Qwen3.5 9B","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.17,"output":0.25,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":262144,"maxTokens":65536},"Qwen/Qwen3.6-27B":{"id":"Qwen/Qwen3.6-27B","name":"Qwen3.6 27B","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.47,"output":3.19,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":262144,"maxTokens":65536},"Qwen/Qwen3.6-35B-A3B":{"id":"Qwen/Qwen3.6-35B-A3B","name":"Qwen3.6 35B-A3B","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.15,"output":0.95,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":262144,"maxTokens":65536},"XiaomiMiMo/MiMo-V2-Flash":{"id":"XiaomiMiMo/MiMo-V2-Flash","name":"MiMo-V2-Flash","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text"],"cost":{"input":0.1,"output":0.3,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":262144,"maxTokens":4096},"XiaomiMiMo/MiMo-V2.5-Pro":{"id":"XiaomiMiMo/MiMo-V2.5-Pro","name":"MiMo-V2.5-Pro","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text"],"cost":{"input":1,"output":3,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":1048576,"maxTokens":131072},"deepseek-ai/DeepSeek-R1":{"id":"deepseek-ai/DeepSeek-R1","name":"DeepSeek-R1","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text"],"cost":{"input":0.7,"output":2.5,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":64000,"maxTokens":32768},"deepseek-ai/DeepSeek-R1-0528":{"id":"deepseek-ai/DeepSeek-R1-0528","name":"DeepSeek-R1-0528","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text"],"cost":{"input":3,"output":5,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":163840,"maxTokens":163840},"deepseek-ai/DeepSeek-V3.2":{"id":"deepseek-ai/DeepSeek-V3.2","name":"DeepSeek-V3.2","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text"],"cost":{"input":0.28,"output":0.4,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":163840,"maxTokens":65536},"deepseek-ai/DeepSeek-V4-Flash":{"id":"deepseek-ai/DeepSeek-V4-Flash","name":"DeepSeek V4 Flash","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text"],"cost":{"input":0.14,"output":0.28,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":1048576,"maxTokens":384000},"deepseek-ai/DeepSeek-V4-Pro":{"id":"deepseek-ai/DeepSeek-V4-Pro","name":"DeepSeek V4 Pro","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text"],"cost":{"input":0.435,"output":0.87,"cacheRead":0.003625,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":1048576,"maxTokens":393216},"google/gemma-4-26B-A4B-it":{"id":"google/gemma-4-26B-A4B-it","name":"Gemma 4 26B A4B IT","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.13,"output":0.4,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":262144,"maxTokens":32768},"google/gemma-4-31B-it":{"id":"google/gemma-4-31B-it","name":"Gemma 4 31B IT","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.14,"output":0.4,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":262144,"maxTokens":32768},"meta-llama/Llama-3.3-70B-Instruct":{"id":"meta-llama/Llama-3.3-70B-Instruct","name":"Llama-3.3-70B-Instruct","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":false,"input":["text"],"cost":{"input":0.59,"output":0.79,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":131072,"maxTokens":4096},"moonshotai/Kimi-K2-Instruct":{"id":"moonshotai/Kimi-K2-Instruct","name":"Kimi-K2-Instruct","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":false,"input":["text"],"cost":{"input":1,"output":3,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":131072,"maxTokens":16384},"moonshotai/Kimi-K2-Instruct-0905":{"id":"moonshotai/Kimi-K2-Instruct-0905","name":"Kimi-K2-Instruct-0905","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":false,"input":["text"],"cost":{"input":1,"output":3,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":262144,"maxTokens":16384},"moonshotai/Kimi-K2-Thinking":{"id":"moonshotai/Kimi-K2-Thinking","name":"Kimi-K2-Thinking","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text"],"cost":{"input":0.6,"output":2.5,"cacheRead":0.15,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":262144,"maxTokens":262144},"moonshotai/Kimi-K2.5":{"id":"moonshotai/Kimi-K2.5","name":"Kimi-K2.5","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.6,"output":3,"cacheRead":0.1,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":262144,"maxTokens":262144},"moonshotai/Kimi-K2.6":{"id":"moonshotai/Kimi-K2.6","name":"Kimi-K2.6","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.95,"output":4,"cacheRead":0.16,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":262144,"maxTokens":262144},"moonshotai/Kimi-K2.7-Code":{"id":"moonshotai/Kimi-K2.7-Code","name":"Kimi K2.7 Code","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.95,"output":4,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":262144,"maxTokens":262144},"openai/gpt-oss-120b":{"id":"openai/gpt-oss-120b","name":"GPT OSS 120B","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text"],"cost":{"input":0.25,"output":0.69,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":131072,"maxTokens":32768},"openai/gpt-oss-20b":{"id":"openai/gpt-oss-20b","name":"GPT OSS 20B","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text"],"cost":{"input":0.1,"output":0.5,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":131072,"maxTokens":32768},"stepfun-ai/Step-3.5-Flash":{"id":"stepfun-ai/Step-3.5-Flash","name":"Step 3.5 Flash","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text"],"cost":{"input":0.1,"output":0.3,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":262144,"maxTokens":256000},"stepfun-ai/Step-3.7-Flash":{"id":"stepfun-ai/Step-3.7-Flash","name":"Step 3.7 Flash","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.2,"output":1.15,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":262144,"maxTokens":256000},"zai-org/GLM-4.5":{"id":"zai-org/GLM-4.5","name":"GLM-4.5","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text"],"cost":{"input":0.6,"output":2.2,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":131072,"maxTokens":98304},"zai-org/GLM-4.5-Air":{"id":"zai-org/GLM-4.5-Air","name":"GLM-4.5-Air","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text"],"cost":{"input":0.13,"output":0.85,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":131072,"maxTokens":98304},"zai-org/GLM-4.5V":{"id":"zai-org/GLM-4.5V","name":"GLM-4.5V","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text","image"],"cost":{"input":0.6,"output":1.8,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":65536,"maxTokens":16384},"zai-org/GLM-4.6":{"id":"zai-org/GLM-4.6","name":"GLM-4.6","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text"],"cost":{"input":0.55,"output":2.2,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":204800,"maxTokens":131072},"zai-org/GLM-4.7":{"id":"zai-org/GLM-4.7","name":"GLM-4.7","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text"],"cost":{"input":0.6,"output":2.2,"cacheRead":0.11,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":204800,"maxTokens":131072},"zai-org/GLM-4.7-Flash":{"id":"zai-org/GLM-4.7-Flash","name":"GLM-4.7-Flash","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text"],"cost":{"input":0,"output":0,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":200000,"maxTokens":128000},"zai-org/GLM-5":{"id":"zai-org/GLM-5","name":"GLM-5","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text"],"cost":{"input":1,"output":3.2,"cacheRead":0.2,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":202752,"maxTokens":131072},"zai-org/GLM-5.1":{"id":"zai-org/GLM-5.1","name":"GLM-5.1","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text"],"cost":{"input":1,"output":3.2,"cacheRead":0.2,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":202752,"maxTokens":131072},"zai-org/GLM-5.2":{"id":"zai-org/GLM-5.2","name":"GLM-5.2","api":"openai-completions","provider":"huggingface","baseUrl":"https://router.huggingface.co/v1","reasoning":true,"input":["text"],"cost":{"input":1.4,"output":4.4,"cacheRead":0,"cacheWrite":0},"compat":{"supportsDeveloperRole":false},"contextWindow":262144,"maxTokens":131072}}
|