promptfoo 0.121.1 → 0.121.3
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/README.md +2 -0
- package/dist/src/{accounts-xrUGFA6n.js → accounts-B2XmGjty.js} +5 -5
- package/dist/src/{accounts-Bx-x3bmW.cjs → accounts-BPyfpSeU.cjs} +5 -5
- package/dist/src/{accounts-CMqkzrVf.js → accounts-CFLK3mnD.js} +6 -6
- package/dist/src/{accounts-BgNJDBE6.js → accounts-Xatc0RYb.js} +5 -5
- package/dist/src/{agentic-utils-BKIN5PKu.js → agentic-utils-36epdqwB.js} +3 -3
- package/dist/src/{cometapi-DkXrKi5z.js → agentic-utils-D8yXo5Lm.js} +4 -61
- package/dist/src/{cometapi-vY6aDZgo.cjs → agentic-utils-DAVsChuB.cjs} +24 -62
- package/dist/src/agentic-utils-DIYAAYE7.js +153 -0
- package/dist/src/{agents-C-dDThPK.js → agents-BBVJCIYr.js} +226 -13
- package/dist/src/{agents-CErsqg5U.cjs → agents-BBWxKSM0.cjs} +7 -7
- package/dist/src/{agents-Dy2YpZpa.js → agents-Bqgfdokm.js} +227 -14
- package/dist/src/{agents-B0f4HICh.cjs → agents-CAYbM7qD.cjs} +226 -13
- package/dist/src/{agents-CVIn-Utx.js → agents-CLQ-P15P.js} +7 -7
- package/dist/src/{agents-DeH4Gu94.js → agents-CgBniSlI.js} +8 -8
- package/dist/src/{agents-CXknwsFX.js → agents-DSSTV4bv.js} +226 -13
- package/dist/src/{agents-aF4-T121.js → agents-wg3ohknq.js} +7 -7
- package/dist/src/{aimlapi-tg0Gkcvr.cjs → aimlapi-Bv8Fmc-b.cjs} +14 -14
- package/dist/src/{aimlapi-BNfTBexL.js → aimlapi-BwGC1TtS.js} +13 -13
- package/dist/src/{aimlapi-BAGZDo5G.js → aimlapi-DaC3qZ-o.js} +14 -14
- package/dist/src/{aimlapi-DHRKlBEA.js → aimlapi-MgSLdvy7.js} +13 -13
- package/dist/src/app/assets/index-B6l9CVVb.js +439 -0
- package/dist/src/app/assets/index-DyZ0Ep37.css +1 -0
- package/dist/src/app/assets/sync-CStkzc6u.js +4 -0
- package/dist/src/app/assets/vendor-charts-BnDWwBlI.js +36 -0
- package/dist/src/app/assets/vendor-markdown-Bz7N-ca6.js +29 -0
- package/dist/src/app/index.html +4 -4
- package/dist/src/{audio-tf_NBjlC.js → audio-Bn44pQxv.js} +4 -4
- package/dist/src/{audio-CHQ4r-RV.js → audio-DDA5WHdx.js} +4 -4
- package/dist/src/{audio-BWeaWovU.cjs → audio-DVFjQ67_.cjs} +4 -4
- package/dist/src/{audio-BRODU0UK.js → audio-DjU9GswO.js} +5 -5
- package/dist/src/{base-DBtwl2FR.cjs → base-BboXIF_0.cjs} +3 -3
- package/dist/src/{base-B4QJRyFS.js → base-CKjwebIH.js} +3 -3
- package/dist/src/{base-B0tcrnq_.js → base-CqzQ4K8j.js} +3 -3
- package/dist/src/{base-fEDN28WM.js → base-Cz2ZC_iA.js} +3 -3
- package/dist/src/{blobs-BAU-dXan.js → blobs-B1JriOyi.js} +3 -3
- package/dist/src/{blobs-qTYm-1PY.js → blobs-BUWmKWzo.js} +3 -3
- package/dist/src/{blobs-DvS-O6be.cjs → blobs-C6j0bvFz.cjs} +3 -3
- package/dist/src/{blobs-Bpg5rH6i.js → blobs-DXTl6J3H.js} +3 -3
- package/dist/src/{cache-COish3-W.cjs → cache-C5yFZ4gC.cjs} +75 -58
- package/dist/src/{cache-8XhNqPKW.js → cache-CaT5tPgo.js} +75 -58
- package/dist/src/cache-CyCanoMu.js +6 -0
- package/dist/src/{cache-CG0SlR1d.js → cache-DSqR6ezl.js} +75 -58
- package/dist/src/cache-Df_QFDNu.cjs +5 -0
- package/dist/src/{cache-D3eqDYGU.js → cache-HP0NP4k3.js} +75 -58
- package/dist/src/{chat-DHMH-N64.js → chat-B-52XYI1.js} +12 -12
- package/dist/src/{chat-BKm79wib.js → chat-B0iaWhoh.js} +16 -14
- package/dist/src/{chat-DxysjBvt.js → chat-BE0qTA8e.js} +13 -13
- package/dist/src/{chat-CRWNNq73.js → chat-BEwdgGEg.js} +16 -14
- package/dist/src/{chat-2K608PeQ.cjs → chat-BtIKkLKx.cjs} +13 -13
- package/dist/src/{chat-DaqekjFr.cjs → chat-CM8qWR3_.cjs} +17 -15
- package/dist/src/{chat-CM_kyI8B.js → chat-DK1U-eZ-.js} +12 -12
- package/dist/src/{chat-CznLWr_D.js → chat-pxmiVpWe.js} +16 -14
- package/dist/src/{chatkit-65VXf5SR.js → chatkit-BYGQlHlV.js} +4 -4
- package/dist/src/{chatkit-DKyPi1Gs.cjs → chatkit-Cx174XI3.cjs} +4 -4
- package/dist/src/{chatkit-BxFvW8KY.js → chatkit-_8eJqKcD.js} +4 -4
- package/dist/src/{chatkit-Be-Q-a9F.js → chatkit-a2D6mY6s.js} +4 -4
- package/dist/src/{claude-agent-sdk-CJH22shf.cjs → claude-agent-sdk-8ddRp1L2.cjs} +35 -17
- package/dist/src/{claude-agent-sdk-Dy5lT-Tx.js → claude-agent-sdk-Bq5EArsX.js} +33 -15
- package/dist/src/{claude-agent-sdk-BLTu0WBO.js → claude-agent-sdk-CMjh4LFH.js} +33 -15
- package/dist/src/{claude-agent-sdk-D6_k9FKA.js → claude-agent-sdk-HgbFioFw.js} +33 -15
- package/dist/src/cloud-DE3t1-ZI.js +4 -0
- package/dist/src/{cloud-Bc9526yV.js → cloud-z8KZpUoa.js} +3 -3
- package/dist/src/{cloudflare-ai-CWWJCRim.js → cloudflare-ai-BGyXlpXJ.js} +13 -13
- package/dist/src/{cloudflare-ai-C9r2sRhw.js → cloudflare-ai-Bbp26N0L.js} +13 -13
- package/dist/src/{cloudflare-ai-ClWSdor4.cjs → cloudflare-ai-C62x6MQG.cjs} +14 -14
- package/dist/src/{cloudflare-ai-ICsOuD-z.js → cloudflare-ai-DdKP9TKT.js} +14 -14
- package/dist/src/{cloudflare-gateway-D6xFc5pa.js → cloudflare-gateway-BwAaUgeW.js} +14 -14
- package/dist/src/{cloudflare-gateway-D6O7AlYb.js → cloudflare-gateway-D-e9i1Sn.js} +15 -15
- package/dist/src/{cloudflare-gateway-pXGHxJ47.js → cloudflare-gateway-DXhtXDRb.js} +15 -163
- package/dist/src/{cloudflare-gateway-C2_-KG5o.cjs → cloudflare-gateway-Dx36ftqF.cjs} +15 -15
- package/dist/src/{codex-sdk-DUwKWezN.js → codex-sdk-BQEw16R_.js} +180 -11
- package/dist/src/{codex-sdk-C6UMlxwV.js → codex-sdk-C_07GuVS.js} +180 -11
- package/dist/src/{codex-sdk-GGAw0qbD.js → codex-sdk-DE5G18dx.js} +180 -11
- package/dist/src/{codex-sdk-fAO0c3yA.cjs → codex-sdk-ZLKfDjqP.cjs} +181 -12
- package/dist/src/cometapi-BDyV-NNm.js +62 -0
- package/dist/src/cometapi-C3hOlM7-.cjs +62 -0
- package/dist/src/{cometapi-Bbjp5V4x.js → cometapi-hhL4TAh3.js} +14 -14
- package/dist/src/{cometapi-BasUi7-_.js → cometapi-sp7sJpBD.js} +15 -15
- package/dist/src/{completion-C_P3ypkJ.js → completion-BCimtq-h.js} +6 -6
- package/dist/src/{completion-6Mx_iXxK.js → completion-DCjv7RZ3.js} +6 -6
- package/dist/src/{completion-CDOouNzq.cjs → completion-DlXUhj5c.cjs} +6 -6
- package/dist/src/{completion-C5rtR_9P.js → completion-DoYy49ti.js} +6 -6
- package/dist/src/{createHash-CfZSc0b4.cjs → createHash-BYwImsYv.cjs} +2 -2
- package/dist/src/{docker-BwsKwxFs.cjs → docker-Cqj2-QVi.cjs} +14 -14
- package/dist/src/{docker-CZnqU1XV.js → docker-CxCkwMzc.js} +13 -13
- package/dist/src/{docker-DzxyDPIj.js → docker-DpguQj-w.js} +14 -14
- package/dist/src/{docker-5KcG-_86.js → docker-FeBni2dw.js} +13 -13
- package/dist/src/{esm-C03C-mv3.js → esm-7UIl0pPM.js} +2 -2
- package/dist/src/{esm-Cd1AjG1D.js → esm-CKWP3u_P.js} +3 -3
- package/dist/src/{esm-CnNt7sI4.cjs → esm-CipptfDu.cjs} +2 -2
- package/dist/src/{esm-CaIwzWR5.js → esm-SUNIX1x3.js} +3 -3
- package/dist/src/eval-7aEqoMs3.js +15 -0
- package/dist/src/{eval-DmFyWU7i.js → eval-BTqTn7lb.js} +10 -10
- package/dist/src/{evalResult-CDQiuUuf.js → evalResult-BkIhRdTe.js} +7 -7
- package/dist/src/evalResult-CYNHkk5A.js +12 -0
- package/dist/src/evalResult-CuvJeNiM.js +10 -0
- package/dist/src/{evalResult-CTG2AHOS.js → evalResult-DUDShQrm.js} +7 -7
- package/dist/src/{evalResult-Dap2CekP.cjs → evalResult-DpARzUCb.cjs} +7 -7
- package/dist/src/evalResult-tGdilrWt.cjs +10 -0
- package/dist/src/evaluator-BBUqRhz1.js +36 -0
- package/dist/src/{evaluator-DPFRbFIL.js → evaluator-BcvOGaam.js} +833 -79
- package/dist/src/{extractor-YMU_Gvt8.js → extractor-C8XwivI9.js} +6 -6
- package/dist/src/{extractor-CFG6bcWJ.js → extractor-CAZ2G3Kh.js} +6 -6
- package/dist/src/{extractor-DX36oYEv.cjs → extractor-DG3sSfXE.cjs} +6 -6
- package/dist/src/{extractor-M67RUtg6.js → extractor-D_wd8jxt.js} +6 -6
- package/dist/src/{fetch-4M3YRaqL.js → fetch-BiYv2BZc.js} +3 -3
- package/dist/src/{fetch-BxUk8odA.cjs → fetch-BnR9wSnm.cjs} +3 -3
- package/dist/src/{fetch-60Gzydls.js → fetch-CVAtKnI3.js} +3 -3
- package/dist/src/{fetch-BMv0O527.js → fetch-DoVRJZhJ.js} +4 -4
- package/dist/src/fetch-UWU706qb.js +5 -0
- package/dist/src/{genaiTracer-DN4dQywX.cjs → genaiTracer-BfxrvSUb.cjs} +2 -2
- package/dist/src/{graders-DOXycdlG.cjs → graders-BElhu9ZY.cjs} +126 -55
- package/dist/src/{graders-R9rYUM0d.js → graders-BXAJ0sbS.js} +120 -55
- package/dist/src/graders-BxfEguVY.js +32 -0
- package/dist/src/graders-CzVMbEnv.js +34 -0
- package/dist/src/{graders-CpdqD9PI.js → graders-DG7mhg-b.js} +120 -55
- package/dist/src/graders-DjCXfj0l.cjs +32 -0
- package/dist/src/{graders-CHO8EPM4.js → graders-RjHF8VfG.js} +120 -55
- package/dist/src/graders-kHzIWOKu.js +32 -0
- package/dist/src/{image-DTedmQPg.cjs → image--F58eEIn.cjs} +6 -6
- package/dist/src/{image-DJEvKveK.js → image-6WQXK8m8.js} +4 -4
- package/dist/src/{image-pAX56tPG.js → image-B8b6f36E.js} +6 -6
- package/dist/src/{image-BmEZqVmk.js → image-CoxZp9PZ.js} +6 -6
- package/dist/src/{image-gvmivTEe.js → image-DO0RYnjH.js} +5 -5
- package/dist/src/{image-CBBVXWuT.js → image-PoF6DN3x.js} +6 -6
- package/dist/src/{image-CDLQOcqT.cjs → image-fza3zuKs.cjs} +4 -4
- package/dist/src/{image-tL5hIOFh.js → image-xNbw5ph2.js} +4 -4
- package/dist/src/index.cjs +863 -110
- package/dist/src/index.d.cts +833 -60
- package/dist/src/index.d.ts +833 -60
- package/dist/src/index.js +860 -108
- package/dist/src/{interactiveCheck-BgLZUIt3.js → interactiveCheck-BnMYOjMu.js} +2 -2
- package/dist/src/{knowledgeBase-CoU-UQBg.js → knowledgeBase-Bi7CmDbx.js} +7 -7
- package/dist/src/{knowledgeBase-CLJybhnF.js → knowledgeBase-Ce3ofVan.js} +8 -8
- package/dist/src/{knowledgeBase-DjWPVqSb.js → knowledgeBase-DFRXPZl_.js} +7 -7
- package/dist/src/{knowledgeBase-wkxuRFhA.cjs → knowledgeBase-DqrLX8fy.cjs} +7 -7
- package/dist/src/{litellm-B9Hysuri.js → litellm-Bo2gQXpo.js} +16 -15
- package/dist/src/{litellm-ePxtr9F1.js → litellm-CKiAxnoM.js} +15 -14
- package/dist/src/{litellm-NYpQ8RQu.cjs → litellm-CnHI69aj.cjs} +16 -15
- package/dist/src/{litellm-CTfa0hqi.js → litellm-Tc294Jhj.js} +15 -14
- package/dist/src/{logger-KkObSCzq.js → logger-BcJBzSSA.js} +10 -14
- package/dist/src/{logger-DLcq4dWf.js → logger-BnkjG2jt.js} +10 -14
- package/dist/src/{logger-Cp1GPUjj.cjs → logger-D5iKBpu_.cjs} +27 -13
- package/dist/src/{logger-CT3IKMKA.js → logger-DO8_zM18.js} +10 -14
- package/dist/src/{luma-ray-BW9IRGIc.js → luma-ray-0ehMPt5N.js} +10 -10
- package/dist/src/{luma-ray-BE2mOt6N.js → luma-ray-C9q8rdQe.js} +9 -9
- package/dist/src/{luma-ray-Cm1KZBhs.js → luma-ray-DP0QA9qn.js} +9 -9
- package/dist/src/{luma-ray-B0GGNRc1.cjs → luma-ray-m9Ku2meV.cjs} +9 -9
- package/dist/src/main.js +69 -71
- package/dist/src/{messages-1x9atZmP.js → messages-DJNo37Ko.js} +14 -9
- package/dist/src/{messages-BLbWdsyt.js → messages-Dy9QecMs.js} +14 -9
- package/dist/src/{messages-1JrJs91T.cjs → messages-HJsyEh4o.cjs} +15 -10
- package/dist/src/{messages-D8EA0oDc.js → messages-biC_ex-p.js} +14 -9
- package/dist/src/{modelslab-C1OLRmVX.js → modelslab-B5J-ZM5c.js} +9 -9
- package/dist/src/{modelslab-CqXBy3U8.js → modelslab-BI458moT.js} +10 -10
- package/dist/src/{modelslab-X5-4LroM.js → modelslab-BTOT8FUO.js} +9 -9
- package/dist/src/{modelslab-DcOSFwKh.cjs → modelslab-IQbNg-r7.cjs} +9 -9
- package/dist/src/{nova-reel-DihqLeol.js → nova-reel-BZ9y-Y5s.js} +9 -9
- package/dist/src/{nova-reel-D9xfaMBs.cjs → nova-reel-CE5etkv9.cjs} +9 -9
- package/dist/src/{nova-reel-D2ZkOSyr.js → nova-reel-DEeQlnOJ.js} +10 -10
- package/dist/src/{nova-reel-BgS1ZWuK.js → nova-reel-Xw1SXLpg.js} +9 -9
- package/dist/src/{nova-sonic-Q3BOJeig.js → nova-sonic-DWswpN1E.js} +7 -7
- package/dist/src/{nova-sonic-DezhVUYT.js → nova-sonic-DXTLpi-r.js} +6 -6
- package/dist/src/{nova-sonic-DVu3mMIy.cjs → nova-sonic-N0yCm0vb.cjs} +6 -6
- package/dist/src/{nova-sonic-P-CdUMlV.js → nova-sonic-Ogqf-csn.js} +6 -6
- package/dist/src/{openai-DhbB7eWK.js → openai-BMcwgD5C.js} +2 -2
- package/dist/src/{openai-j-sE2O7r.js → openai-BcB5KlTk.js} +2 -2
- package/dist/src/{openai-Cuif0GEt.cjs → openai-CoxGAQwn.cjs} +2 -2
- package/dist/src/{openai-DElQ-fPX.js → openai-D6wITiVn.js} +2 -2
- package/dist/src/{openclaw-Bv1DINsX.js → openclaw-0Sv7AK3O.js} +172 -109
- package/dist/src/{openclaw-DAfWQn-o.cjs → openclaw-CXxbKgDH.cjs} +174 -110
- package/dist/src/{openclaw-BiSZPL7J.js → openclaw-D1FSCps-.js} +172 -109
- package/dist/src/{openclaw-D1D_ej1z.js → openclaw-D2ENvu7a.js} +173 -110
- package/dist/src/{opencode-sdk-D95s6SnR.js → opencode-sdk-C71Z0ehR.js} +13 -13
- package/dist/src/{opencode-sdk-DxUPkLT7.js → opencode-sdk-CHCs7dEb.js} +12 -12
- package/dist/src/{opencode-sdk-C7m-wRfI.js → opencode-sdk-DDxj4QqH.js} +12 -12
- package/dist/src/{opencode-sdk-CfaLN8PY.cjs → opencode-sdk-WWJhnbKr.cjs} +16 -16
- package/dist/src/{otlpReceiver-g3ByGaXs.js → otlpReceiver-C9KlUtxh.js} +6 -6
- package/dist/src/{otlpReceiver--AIRW_S4.js → otlpReceiver-CZL48YfC.js} +6 -6
- package/dist/src/{otlpReceiver-Bn5wGB1v.js → otlpReceiver-CavGAA6k.js} +6 -6
- package/dist/src/{otlpReceiver-Diec4cln.cjs → otlpReceiver-DHKqJlsz.cjs} +6 -6
- package/dist/src/{providerRegistry-B0RUOLI_.js → providerRegistry-B9lh-_tx.js} +2 -2
- package/dist/src/{providerRegistry-Civky8Ar.cjs → providerRegistry-BTDgfV5h.cjs} +2 -2
- package/dist/src/{providerRegistry-CD8MEar9.js → providerRegistry-BkzVH5Ba.js} +2 -2
- package/dist/src/{providerRegistry-DM8rZYol.js → providerRegistry-CUWki5mQ.js} +2 -2
- package/dist/src/providers-BSLEaIQG.js +32 -0
- package/dist/src/{providers-CFu-TZl-.cjs → providers-CScd1wN6.cjs} +733 -464
- package/dist/src/{providers-CFLy1_ji.js → providers-Ch6Mr0gn.js} +795 -526
- package/dist/src/{providers-BKRJTjBz.js → providers-Cn73d5sr.js} +795 -526
- package/dist/src/providers-D-FnDg8k.cjs +31 -0
- package/dist/src/providers-DEYiFVAo.js +30 -0
- package/dist/src/{providers-B3HvufyI.js → providers-DvddrgxL.js} +795 -526
- package/dist/src/providers-sS2WI8YD.js +30 -0
- package/dist/src/{pythonUtils-D6fwaDSg.js → pythonUtils-Bzwbgpbg.js} +3 -3
- package/dist/src/{pythonUtils-D5nxkQ0P.js → pythonUtils-Cpo0Ez1p.js} +3 -3
- package/dist/src/{pythonUtils-CTU3Y3lw.cjs → pythonUtils-dAVigVK-.cjs} +3 -3
- package/dist/src/{pythonUtils-C3py6GC1.js → pythonUtils-wIqk7zAf.js} +3 -3
- package/dist/src/{quiverai-CI6gYJVI.js → quiverai-BeofbLVc.js} +4 -4
- package/dist/src/{quiverai-MHSxbmmZ.js → quiverai-CCQn73lq.js} +5 -5
- package/dist/src/{quiverai-CLkWkyZc.cjs → quiverai-CcUhPIBg.cjs} +4 -4
- package/dist/src/{quiverai-C2jVwbH1.js → quiverai-DVSEqJiq.js} +4 -4
- package/dist/src/{render-Drod8m7K.js → render-BHl6QVq9.js} +3 -3
- package/dist/src/{responses-CGw0DCzh.js → responses-BKP_WYis.js} +16 -12
- package/dist/src/{responses-BKqJmhhc.js → responses-CQb1Tj69.js} +16 -12
- package/dist/src/{responses-jxdehPkC.js → responses-CgNyTPsY.js} +16 -12
- package/dist/src/{responses-tD4Bd4dc.cjs → responses-mo0KQDbu.cjs} +16 -12
- package/dist/src/rubyUtils-B1HXG4ej.cjs +4 -0
- package/dist/src/{rubyUtils-DhCAlxZr.cjs → rubyUtils-CGeUtCfW.cjs} +3 -3
- package/dist/src/{rubyUtils-Boc4HZzX.js → rubyUtils-CiVfln3g.js} +3 -3
- package/dist/src/{rubyUtils-BcuGX77l.js → rubyUtils-DECSbsfY.js} +3 -3
- package/dist/src/{rubyUtils-BUVePouc.js → rubyUtils-PgU-gHmx.js} +3 -3
- package/dist/src/rubyUtils-Rt6pKA96.js +5 -0
- package/dist/src/{sagemaker-BK4Zb993.js → sagemaker-CVv8W7so.js} +17 -17
- package/dist/src/{sagemaker-D2Q1c-sD.js → sagemaker-CqeASYE5.js} +17 -17
- package/dist/src/{sagemaker-BfiWTmvn.js → sagemaker-MUbD5V3v.js} +18 -18
- package/dist/src/{sagemaker-CcQHM1jV.cjs → sagemaker-jiw1wQa-.cjs} +17 -17
- package/dist/src/{scanner-J8CA3LsV.js → scanner-DVDeUz1r.js} +10 -10
- package/dist/src/server/index.js +864 -112
- package/dist/src/server-B0Xh1Gx-.js +7 -0
- package/dist/src/{server-B0PPuDw-.cjs → server-BtoCXeXI.cjs} +4 -4
- package/dist/src/{server-BC7XJFgr.js → server-CP9qKM40.js} +4 -4
- package/dist/src/{server-OAs3nBRT.js → server-Cns05F1j.js} +5 -5
- package/dist/src/server-DJTKu9IR.cjs +5 -0
- package/dist/src/{server-DbFphssR.js → server-DZ9MtCn0.js} +6 -6
- package/dist/src/{signal-BOTbd53Z.js → signal-C3ZTsUgi.js} +3 -3
- package/dist/src/{slack-DXMKtA-f.js → slack-2sdpGzbt.js} +2 -2
- package/dist/src/{slack-BmVAVGaK.cjs → slack-94iG3T0s.cjs} +2 -2
- package/dist/src/{slack-DCUPTzS2.js → slack-BR0HtO3K.js} +2 -2
- package/dist/src/{slack-DOdy_kyv.js → slack-DCEV-vWP.js} +2 -2
- package/dist/src/store-C5u6MgC8.js +6 -0
- package/dist/src/{store-BSc-TF2w.cjs → store-CLyU7AtI.cjs} +17 -5
- package/dist/src/store-CNHk-De4.cjs +5 -0
- package/dist/src/{store-DQLEjuEO.js → store-Cj258DgL.js} +17 -5
- package/dist/src/{store-D1tv90v3.js → store-P8OKm19S.js} +17 -5
- package/dist/src/{store-Ub2vaGJ1.js → store-VB0GP46K.js} +17 -5
- package/dist/src/{tables-xKANLRBD.js → tables-BEIFz2tM.js} +3 -3
- package/dist/src/{tables-C7K-XKWp.cjs → tables-BdZQEpRz.cjs} +3 -3
- package/dist/src/{tables-D36WTqKX.js → tables-DmzvLbeZ.js} +3 -3
- package/dist/src/{tables-5EvT_Bwn.js → tables-kC7R5kiK.js} +3 -3
- package/dist/src/{telemetry-C2YDkUQH.js → telemetry-BnH5VJAU.js} +4 -4
- package/dist/src/{telemetry-C15ziL8u.js → telemetry-BugWqKiu.js} +4 -4
- package/dist/src/{telemetry-DMb2Mpfm.js → telemetry-DPXLd7UE.js} +4 -4
- package/dist/src/telemetry-Yig0Tino.js +7 -0
- package/dist/src/telemetry-p8Pwqm1i.cjs +5 -0
- package/dist/src/{telemetry-CbrnxHp_.cjs → telemetry-re627Lre.cjs} +4 -4
- package/dist/src/{transcription-CL78qbOU.cjs → transcription-BvtsrzRG.cjs} +13 -13
- package/dist/src/{transcription-DAtxHhAM.js → transcription-CaMivnjG.js} +13 -13
- package/dist/src/{transcription-QHh3AH6Z.js → transcription-DOMMTu01.js} +14 -14
- package/dist/src/{transcription-LNZTNUUL.js → transcription-Hb3VnC4M.js} +13 -13
- package/dist/src/{transform-DOcQeLld.cjs → transform-0BwoBsvO.cjs} +19 -5
- package/dist/src/{transform-DGxXocjk.js → transform-B2-jIv68.js} +8 -6
- package/dist/src/{transform-DECvGmzp.js → transform-BqPkNPYm.js} +4 -4
- package/dist/src/{transform-aa6tmVpZ.js → transform-BzK09Q_9.js} +4 -4
- package/dist/src/transform-ChNIpHz7.js +6 -0
- package/dist/src/{transform-Cgi24fJ7.js → transform-DrleutM3.js} +8 -6
- package/dist/src/{transform-DGLazrMm.js → transform-DyDAwEpE.js} +8 -6
- package/dist/src/transform-PtQ6rAE3.cjs +5 -0
- package/dist/src/{transform-CzK1Q0zl.cjs → transform-ZrG2dvlo.cjs} +4 -4
- package/dist/src/{transform-DilY9wbS.js → transform-ljLYHEPh.js} +4 -4
- package/dist/src/{transformersAvailability-CEVM2GNQ.js → transformersAvailability-BGkzavwb.js} +1 -1
- package/dist/src/{transformersAvailability-CwayUSlh.cjs → transformersAvailability-DKoRtQLy.cjs} +1 -1
- package/dist/src/{types-CH3Ge2sE.js → types-CIhFeUC4.js} +45 -11
- package/dist/src/{types-CN_TZ2GJ.js → types-Cd3ygw8W.js} +45 -11
- package/dist/src/{types-LJ0r3wbR.cjs → types-D8cGDZbL.cjs} +46 -12
- package/dist/src/{types-CLKiCBW3.js → types-q8GXGF65.js} +45 -11
- package/dist/src/{util-CchiqXh_.cjs → util--9u9UVCt.cjs} +3 -3
- package/dist/src/{util-5cB-L7U3.js → util-BLvy9qfE.js} +7 -11
- package/dist/src/{util-YT5HPZaS.js → util-Bm3E9jpK.js} +7 -11
- package/dist/src/{util-6-GqIvzS.js → util-BtoGs5Cb.js} +18 -4
- package/dist/src/{util-Db0a0AFH.cjs → util-CFj4YKIn.cjs} +18 -4
- package/dist/src/{util-Dlz_Wvgm.js → util-CMMkIxfU.js} +7 -11
- package/dist/src/{util-Betm42rL.js → util-CgDCK4KI.js} +18 -4
- package/dist/src/{util-Yz-1aEhW.cjs → util-CuLo2pMR.cjs} +7 -11
- package/dist/src/{util-C-PPYSMq.js → util-DM2rTn_6.js} +18 -4
- package/dist/src/{util-B7T3SiBS.js → util-DMFeUvLz.js} +3 -3
- package/dist/src/{util-ZZH-3QZz.js → util-DbVG-yZU.js} +3 -3
- package/dist/src/{util-DaWTWKBK.js → util-vNmDL5DT.js} +3 -3
- package/dist/src/{utils-XiOAgly5.js → utils-CFxO9KGo.js} +2 -2
- package/dist/src/{utils-f2-Moju7.js → utils-DEuL4VNB.js} +2 -2
- package/dist/src/{utils-Cz9qXqII.cjs → utils-DKw8mrgr.cjs} +3 -3
- package/dist/src/{utils-dLokC-eR.js → utils-DOjD4dTC.js} +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +38 -38
- package/dist/src/app/assets/index-BFCZg7hQ.js +0 -439
- package/dist/src/app/assets/index-NCn4eVBv.css +0 -1
- package/dist/src/app/assets/sync-9qqYcY-B.js +0 -4
- package/dist/src/app/assets/vendor-charts-CCl15Imd.js +0 -36
- package/dist/src/app/assets/vendor-markdown-0tekx3KX.js +0 -29
- package/dist/src/cache-Bbn1Nyrd.cjs +0 -5
- package/dist/src/cache-BwsMSda7.js +0 -6
- package/dist/src/cloud-DmE0EwsY.js +0 -4
- package/dist/src/eval-17JizQIv.js +0 -15
- package/dist/src/evalResult-Cqj8pldJ.js +0 -12
- package/dist/src/evalResult-DvcJAWJU.cjs +0 -10
- package/dist/src/evalResult-Hftn-S_i.js +0 -10
- package/dist/src/evaluator-B2CFNt-P.js +0 -36
- package/dist/src/fetch-KV5kNASw.js +0 -5
- package/dist/src/graders-Bu0H9nXi.js +0 -32
- package/dist/src/graders-Cfhkvx-e.js +0 -34
- package/dist/src/graders-DClJVpGP.cjs +0 -32
- package/dist/src/graders-DcnJsrMO.js +0 -32
- package/dist/src/providers-C1rOSHiR.js +0 -32
- package/dist/src/providers-CxmDwEFf.cjs +0 -31
- package/dist/src/providers-Dodakqr0.js +0 -30
- package/dist/src/providers-GIQ2TcsA.js +0 -30
- package/dist/src/rubyUtils-BUHu6PhO.js +0 -5
- package/dist/src/rubyUtils-CP42kMvq.cjs +0 -4
- package/dist/src/server-B1vi21hA.js +0 -7
- package/dist/src/server-Cm9Kai_h.cjs +0 -5
- package/dist/src/store-BNmZ1KAz.cjs +0 -5
- package/dist/src/store-BltJg2cd.js +0 -6
- package/dist/src/telemetry-5BCRNBbe.cjs +0 -5
- package/dist/src/telemetry-D4W5hboe.js +0 -7
- package/dist/src/transform-DTGDnAzW.js +0 -6
- package/dist/src/transform-m3qNw4KP.cjs +0 -5
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import "./logger-DO8_zM18.js";
|
|
2
|
+
import "./esm-SUNIX1x3.js";
|
|
3
|
+
import "./pythonUtils-Cpo0Ez1p.js";
|
|
4
|
+
import "./transform-BqPkNPYm.js";
|
|
5
|
+
import "./types-q8GXGF65.js";
|
|
6
|
+
import "./util-CMMkIxfU.js";
|
|
7
|
+
import "./fetch-CVAtKnI3.js";
|
|
8
|
+
import "./cache-CaT5tPgo.js";
|
|
9
|
+
import { n as loadApiProvider, r as loadApiProviders } from "./providers-Cn73d5sr.js";
|
|
10
|
+
import "./genaiTracer-D3fD9dNV.js";
|
|
11
|
+
import "./chat-pxmiVpWe.js";
|
|
12
|
+
import "./transform-DyDAwEpE.js";
|
|
13
|
+
import "./messages-Dy9QecMs.js";
|
|
14
|
+
import "./util-vNmDL5DT.js";
|
|
15
|
+
import "./responses-CQb1Tj69.js";
|
|
16
|
+
import "./openai-BcB5KlTk.js";
|
|
17
|
+
import "./util-CgDCK4KI.js";
|
|
18
|
+
import "./completion-DCjv7RZ3.js";
|
|
19
|
+
import "./accounts-B2XmGjty.js";
|
|
20
|
+
import "./server-CP9qKM40.js";
|
|
21
|
+
import "./blobs-DXTl6J3H.js";
|
|
22
|
+
import "./tables-kC7R5kiK.js";
|
|
23
|
+
import "./extractor-D_wd8jxt.js";
|
|
24
|
+
import "./telemetry-BugWqKiu.js";
|
|
25
|
+
import "./store-Cj258DgL.js";
|
|
26
|
+
import "./base-CqzQ4K8j.js";
|
|
27
|
+
import "./image-CoxZp9PZ.js";
|
|
28
|
+
import "./providerRegistry-CUWki5mQ.js";
|
|
29
|
+
import "./rubyUtils-PgU-gHmx.js";
|
|
30
|
+
export { loadApiProvider, loadApiProviders };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as getWrapperDir } from "./esm-
|
|
1
|
+
import { C as getEnvString, _ as safeJsonStringify, a as logger, b as getEnvBool } from "./logger-BnkjG2jt.js";
|
|
2
|
+
import { n as getWrapperDir } from "./esm-CKWP3u_P.js";
|
|
3
3
|
import fs from "fs";
|
|
4
4
|
import path from "path";
|
|
5
5
|
import os from "os";
|
|
@@ -246,4 +246,4 @@ async function runPython(scriptPath, method, args, options = {}) {
|
|
|
246
246
|
//#endregion
|
|
247
247
|
export { validatePythonPath as i, getEnvInt as n, runPython as r, getConfiguredPythonPath as t };
|
|
248
248
|
|
|
249
|
-
//# sourceMappingURL=pythonUtils-
|
|
249
|
+
//# sourceMappingURL=pythonUtils-Bzwbgpbg.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as getWrapperDir } from "./esm-
|
|
1
|
+
import { C as getEnvString, _ as safeJsonStringify, a as logger, b as getEnvBool } from "./logger-DO8_zM18.js";
|
|
2
|
+
import { n as getWrapperDir } from "./esm-SUNIX1x3.js";
|
|
3
3
|
import fs from "fs";
|
|
4
4
|
import path from "path";
|
|
5
5
|
import os from "os";
|
|
@@ -246,4 +246,4 @@ async function runPython(scriptPath, method, args, options = {}) {
|
|
|
246
246
|
//#endregion
|
|
247
247
|
export { validatePythonPath as i, getEnvInt as n, runPython as r, getConfiguredPythonPath as t };
|
|
248
248
|
|
|
249
|
-
//# sourceMappingURL=pythonUtils-
|
|
249
|
+
//# sourceMappingURL=pythonUtils-Cpo0Ez1p.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_logger = require("./logger-
|
|
2
|
-
const require_esm = require("./esm-
|
|
1
|
+
const require_logger = require("./logger-D5iKBpu_.cjs");
|
|
2
|
+
const require_esm = require("./esm-CipptfDu.cjs");
|
|
3
3
|
let fs = require("fs");
|
|
4
4
|
fs = require_logger.__toESM(fs);
|
|
5
5
|
let path = require("path");
|
|
@@ -272,4 +272,4 @@ Object.defineProperty(exports, "validatePythonPath", {
|
|
|
272
272
|
}
|
|
273
273
|
});
|
|
274
274
|
|
|
275
|
-
//# sourceMappingURL=pythonUtils-
|
|
275
|
+
//# sourceMappingURL=pythonUtils-dAVigVK-.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { C as
|
|
3
|
-
import { n as getWrapperDir } from "./esm-
|
|
2
|
+
import { C as getEnvBool, E as getEnvString, s as logger, y as safeJsonStringify } from "./logger-BcJBzSSA.js";
|
|
3
|
+
import { n as getWrapperDir } from "./esm-7UIl0pPM.js";
|
|
4
4
|
import fs from "fs";
|
|
5
5
|
import path from "path";
|
|
6
6
|
import os from "os";
|
|
@@ -247,4 +247,4 @@ async function runPython(scriptPath, method, args, options = {}) {
|
|
|
247
247
|
//#endregion
|
|
248
248
|
export { validatePythonPath as i, getEnvInt as n, runPython as r, getConfiguredPythonPath as t };
|
|
249
249
|
|
|
250
|
-
//# sourceMappingURL=pythonUtils-
|
|
250
|
+
//# sourceMappingURL=pythonUtils-wIqk7zAf.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { p as REQUEST_TIMEOUT_MS, t as fetchWithProxy } from "./fetch-
|
|
3
|
-
import { r as fetchWithCache } from "./cache-
|
|
1
|
+
import { C as getEnvString, a as logger } from "./logger-BnkjG2jt.js";
|
|
2
|
+
import { p as REQUEST_TIMEOUT_MS, t as fetchWithProxy } from "./fetch-BiYv2BZc.js";
|
|
3
|
+
import { r as fetchWithCache } from "./cache-HP0NP4k3.js";
|
|
4
4
|
//#region src/providers/quiverai.ts
|
|
5
5
|
const QUIVERAI_API_BASE_URL = "https://api.quiver.ai/v1";
|
|
6
6
|
const QUIVERAI_DEFAULT_MODEL = "arrow-preview";
|
|
@@ -210,4 +210,4 @@ function createQuiverAiProvider(providerPath, providerOptions = {}, env) {
|
|
|
210
210
|
//#endregion
|
|
211
211
|
export { createQuiverAiProvider };
|
|
212
212
|
|
|
213
|
-
//# sourceMappingURL=quiverai-
|
|
213
|
+
//# sourceMappingURL=quiverai-BeofbLVc.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
import { f as REQUEST_TIMEOUT_MS, n as fetchWithProxy } from "./fetch-
|
|
4
|
-
import "./cloud-
|
|
5
|
-
import { a as fetchWithCache } from "./cache-
|
|
2
|
+
import { E as getEnvString, s as logger } from "./logger-BcJBzSSA.js";
|
|
3
|
+
import { f as REQUEST_TIMEOUT_MS, n as fetchWithProxy } from "./fetch-DoVRJZhJ.js";
|
|
4
|
+
import "./cloud-z8KZpUoa.js";
|
|
5
|
+
import { a as fetchWithCache } from "./cache-DSqR6ezl.js";
|
|
6
6
|
//#region src/providers/quiverai.ts
|
|
7
7
|
const QUIVERAI_API_BASE_URL = "https://api.quiver.ai/v1";
|
|
8
8
|
const QUIVERAI_DEFAULT_MODEL = "arrow-preview";
|
|
@@ -212,4 +212,4 @@ function createQuiverAiProvider(providerPath, providerOptions = {}, env) {
|
|
|
212
212
|
//#endregion
|
|
213
213
|
export { createQuiverAiProvider };
|
|
214
214
|
|
|
215
|
-
//# sourceMappingURL=quiverai-
|
|
215
|
+
//# sourceMappingURL=quiverai-CCQn73lq.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_logger = require("./logger-
|
|
2
|
-
const require_fetch = require("./fetch-
|
|
3
|
-
const require_cache = require("./cache-
|
|
1
|
+
const require_logger = require("./logger-D5iKBpu_.cjs");
|
|
2
|
+
const require_fetch = require("./fetch-BnR9wSnm.cjs");
|
|
3
|
+
const require_cache = require("./cache-C5yFZ4gC.cjs");
|
|
4
4
|
//#region src/providers/quiverai.ts
|
|
5
5
|
const QUIVERAI_API_BASE_URL = "https://api.quiver.ai/v1";
|
|
6
6
|
const QUIVERAI_DEFAULT_MODEL = "arrow-preview";
|
|
@@ -210,4 +210,4 @@ function createQuiverAiProvider(providerPath, providerOptions = {}, env) {
|
|
|
210
210
|
//#endregion
|
|
211
211
|
exports.createQuiverAiProvider = createQuiverAiProvider;
|
|
212
212
|
|
|
213
|
-
//# sourceMappingURL=quiverai-
|
|
213
|
+
//# sourceMappingURL=quiverai-CcUhPIBg.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { p as REQUEST_TIMEOUT_MS, t as fetchWithProxy } from "./fetch-
|
|
3
|
-
import { r as fetchWithCache } from "./cache-
|
|
1
|
+
import { C as getEnvString, a as logger } from "./logger-DO8_zM18.js";
|
|
2
|
+
import { p as REQUEST_TIMEOUT_MS, t as fetchWithProxy } from "./fetch-CVAtKnI3.js";
|
|
3
|
+
import { r as fetchWithCache } from "./cache-CaT5tPgo.js";
|
|
4
4
|
//#region src/providers/quiverai.ts
|
|
5
5
|
const QUIVERAI_API_BASE_URL = "https://api.quiver.ai/v1";
|
|
6
6
|
const QUIVERAI_DEFAULT_MODEL = "arrow-preview";
|
|
@@ -210,4 +210,4 @@ function createQuiverAiProvider(providerPath, providerOptions = {}, env) {
|
|
|
210
210
|
//#endregion
|
|
211
211
|
export { createQuiverAiProvider };
|
|
212
212
|
|
|
213
|
-
//# sourceMappingURL=quiverai-
|
|
213
|
+
//# sourceMappingURL=quiverai-DVSEqJiq.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "./logger-
|
|
3
|
-
import { t as canUseInteractiveUI } from "./interactiveCheck-
|
|
2
|
+
import "./logger-BcJBzSSA.js";
|
|
3
|
+
import { t as canUseInteractiveUI } from "./interactiveCheck-BnMYOjMu.js";
|
|
4
4
|
//#region src/ui/render.ts
|
|
5
5
|
/**
|
|
6
6
|
* Process exit codes for signal handling.
|
|
@@ -114,4 +114,4 @@ function supportsColor() {
|
|
|
114
114
|
//#endregion
|
|
115
115
|
export { canUseInteractiveUI, getTerminalSize, renderInteractive, runInteractive, supportsColor };
|
|
116
116
|
|
|
117
|
-
//# sourceMappingURL=render-
|
|
117
|
+
//# sourceMappingURL=render-BHl6QVq9.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
import { d as LONG_RUNNING_MODEL_TIMEOUT_MS, f as REQUEST_TIMEOUT_MS } from "./fetch-
|
|
4
|
-
import { a as fetchWithCache } from "./cache-
|
|
2
|
+
import { E as getEnvString, T as getEnvInt, j as state, s as logger, w as getEnvFloat } from "./logger-BcJBzSSA.js";
|
|
3
|
+
import { d as LONG_RUNNING_MODEL_TIMEOUT_MS, f as REQUEST_TIMEOUT_MS } from "./fetch-DoVRJZhJ.js";
|
|
4
|
+
import { a as fetchWithCache } from "./cache-DSqR6ezl.js";
|
|
5
5
|
import { i as isJavascriptFile } from "./fileExtensions-Ds-foDzt.js";
|
|
6
|
-
import { g as maybeLoadToolsFromExternalFile, h as maybeLoadResponseFormatFromExternalFile, x as renderVarsInObject } from "./util-
|
|
7
|
-
import { r as importModule } from "./esm-
|
|
8
|
-
import { t as OpenAiGenericProvider } from "./openai-
|
|
9
|
-
import { a as calculateOpenAICost, c as getTokenUsage$1, s as formatOpenAiError } from "./util-
|
|
6
|
+
import { g as maybeLoadToolsFromExternalFile, h as maybeLoadResponseFormatFromExternalFile, x as renderVarsInObject } from "./util-Bm3E9jpK.js";
|
|
7
|
+
import { r as importModule } from "./esm-7UIl0pPM.js";
|
|
8
|
+
import { t as OpenAiGenericProvider } from "./openai-BMcwgD5C.js";
|
|
9
|
+
import { a as calculateOpenAICost, c as getTokenUsage$1, s as formatOpenAiError } from "./util-DM2rTn_6.js";
|
|
10
10
|
import path from "path";
|
|
11
11
|
//#region src/providers/functionCallbackUtils.ts
|
|
12
12
|
/**
|
|
@@ -444,6 +444,10 @@ var OpenAiResponsesProvider = class extends OpenAiGenericProvider {
|
|
|
444
444
|
"gpt-5.3-codex-spark",
|
|
445
445
|
"gpt-5.4",
|
|
446
446
|
"gpt-5.4-2026-03-05",
|
|
447
|
+
"gpt-5.4-mini",
|
|
448
|
+
"gpt-5.4-mini-2026-03-17",
|
|
449
|
+
"gpt-5.4-nano",
|
|
450
|
+
"gpt-5.4-nano-2026-03-17",
|
|
447
451
|
"gpt-5.4-pro",
|
|
448
452
|
"gpt-5.4-pro-2026-03-05",
|
|
449
453
|
"gpt-audio",
|
|
@@ -534,9 +538,9 @@ var OpenAiResponsesProvider = class extends OpenAiGenericProvider {
|
|
|
534
538
|
const body = {
|
|
535
539
|
model: this.modelName,
|
|
536
540
|
input,
|
|
537
|
-
...maxOutputTokens
|
|
541
|
+
...maxOutputTokens === void 0 ? {} : { max_output_tokens: maxOutputTokens },
|
|
538
542
|
...reasoningEffort ? { reasoning: { effort: reasoningEffort } } : {},
|
|
539
|
-
...temperature
|
|
543
|
+
...temperature === void 0 ? {} : { temperature },
|
|
540
544
|
...instructions ? { instructions } : {},
|
|
541
545
|
...(!reasoningEffort || reasoningEffort === "none") && (config.top_p !== void 0 || getEnvString("OPENAI_TOP_P")) ? { top_p: config.top_p ?? getEnvFloat("OPENAI_TOP_P", 1) } : {},
|
|
542
546
|
...loadedTools ? { tools: loadedTools } : {},
|
|
@@ -565,7 +569,7 @@ var OpenAiResponsesProvider = class extends OpenAiGenericProvider {
|
|
|
565
569
|
};
|
|
566
570
|
}
|
|
567
571
|
async callApi(prompt, context, callApiOptions) {
|
|
568
|
-
if (!this.getApiKey()) throw new Error("OpenAI API key is not set. Set the OPENAI_API_KEY environment variable or add `apiKey` to the provider config.");
|
|
572
|
+
if (this.requiresApiKey() && !this.getApiKey()) throw new Error("OpenAI API key is not set. Set the OPENAI_API_KEY environment variable or add `apiKey` to the provider config.");
|
|
569
573
|
const { body, config } = await this.getOpenAiBody(prompt, context, callApiOptions);
|
|
570
574
|
const isDeepResearchModel = this.modelName.includes("deep-research");
|
|
571
575
|
if (isDeepResearchModel) {
|
|
@@ -591,7 +595,7 @@ var OpenAiResponsesProvider = class extends OpenAiGenericProvider {
|
|
|
591
595
|
method: "POST",
|
|
592
596
|
headers: {
|
|
593
597
|
"Content-Type": "application/json",
|
|
594
|
-
Authorization: `Bearer ${this.getApiKey()}
|
|
598
|
+
...this.getApiKey() ? { Authorization: `Bearer ${this.getApiKey()}` } : {},
|
|
595
599
|
...this.getOrganization() ? { "OpenAI-Organization": this.getOrganization() } : {},
|
|
596
600
|
...config.headers
|
|
597
601
|
},
|
|
@@ -658,4 +662,4 @@ var OpenAiResponsesProvider = class extends OpenAiGenericProvider {
|
|
|
658
662
|
//#endregion
|
|
659
663
|
export { ResponsesProcessor as n, FunctionCallbackHandler as r, OpenAiResponsesProvider as t };
|
|
660
664
|
|
|
661
|
-
//# sourceMappingURL=responses-
|
|
665
|
+
//# sourceMappingURL=responses-BKP_WYis.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as importModule } from "./esm-
|
|
1
|
+
import { C as getEnvString, D as state, S as getEnvInt, a as logger, x as getEnvFloat } from "./logger-DO8_zM18.js";
|
|
2
|
+
import { r as importModule } from "./esm-SUNIX1x3.js";
|
|
3
3
|
import { i as isJavascriptFile } from "./fileExtensions-DnqA1y9x.js";
|
|
4
|
-
import { d as maybeLoadToolsFromExternalFile, g as renderVarsInObject, u as maybeLoadResponseFormatFromExternalFile } from "./util-
|
|
5
|
-
import { f as LONG_RUNNING_MODEL_TIMEOUT_MS, p as REQUEST_TIMEOUT_MS } from "./fetch-
|
|
6
|
-
import { r as fetchWithCache } from "./cache-
|
|
7
|
-
import { t as OpenAiGenericProvider } from "./openai-
|
|
8
|
-
import { a as calculateOpenAICost, c as getTokenUsage$1, s as formatOpenAiError } from "./util-
|
|
4
|
+
import { d as maybeLoadToolsFromExternalFile, g as renderVarsInObject, u as maybeLoadResponseFormatFromExternalFile } from "./util-CMMkIxfU.js";
|
|
5
|
+
import { f as LONG_RUNNING_MODEL_TIMEOUT_MS, p as REQUEST_TIMEOUT_MS } from "./fetch-CVAtKnI3.js";
|
|
6
|
+
import { r as fetchWithCache } from "./cache-CaT5tPgo.js";
|
|
7
|
+
import { t as OpenAiGenericProvider } from "./openai-BcB5KlTk.js";
|
|
8
|
+
import { a as calculateOpenAICost, c as getTokenUsage$1, s as formatOpenAiError } from "./util-CgDCK4KI.js";
|
|
9
9
|
import path from "path";
|
|
10
10
|
//#region src/providers/functionCallbackUtils.ts
|
|
11
11
|
/**
|
|
@@ -443,6 +443,10 @@ var OpenAiResponsesProvider = class extends OpenAiGenericProvider {
|
|
|
443
443
|
"gpt-5.3-codex-spark",
|
|
444
444
|
"gpt-5.4",
|
|
445
445
|
"gpt-5.4-2026-03-05",
|
|
446
|
+
"gpt-5.4-mini",
|
|
447
|
+
"gpt-5.4-mini-2026-03-17",
|
|
448
|
+
"gpt-5.4-nano",
|
|
449
|
+
"gpt-5.4-nano-2026-03-17",
|
|
446
450
|
"gpt-5.4-pro",
|
|
447
451
|
"gpt-5.4-pro-2026-03-05",
|
|
448
452
|
"gpt-audio",
|
|
@@ -533,9 +537,9 @@ var OpenAiResponsesProvider = class extends OpenAiGenericProvider {
|
|
|
533
537
|
const body = {
|
|
534
538
|
model: this.modelName,
|
|
535
539
|
input,
|
|
536
|
-
...maxOutputTokens
|
|
540
|
+
...maxOutputTokens === void 0 ? {} : { max_output_tokens: maxOutputTokens },
|
|
537
541
|
...reasoningEffort ? { reasoning: { effort: reasoningEffort } } : {},
|
|
538
|
-
...temperature
|
|
542
|
+
...temperature === void 0 ? {} : { temperature },
|
|
539
543
|
...instructions ? { instructions } : {},
|
|
540
544
|
...(!reasoningEffort || reasoningEffort === "none") && (config.top_p !== void 0 || getEnvString("OPENAI_TOP_P")) ? { top_p: config.top_p ?? getEnvFloat("OPENAI_TOP_P", 1) } : {},
|
|
541
545
|
...loadedTools ? { tools: loadedTools } : {},
|
|
@@ -564,7 +568,7 @@ var OpenAiResponsesProvider = class extends OpenAiGenericProvider {
|
|
|
564
568
|
};
|
|
565
569
|
}
|
|
566
570
|
async callApi(prompt, context, callApiOptions) {
|
|
567
|
-
if (!this.getApiKey()) throw new Error("OpenAI API key is not set. Set the OPENAI_API_KEY environment variable or add `apiKey` to the provider config.");
|
|
571
|
+
if (this.requiresApiKey() && !this.getApiKey()) throw new Error("OpenAI API key is not set. Set the OPENAI_API_KEY environment variable or add `apiKey` to the provider config.");
|
|
568
572
|
const { body, config } = await this.getOpenAiBody(prompt, context, callApiOptions);
|
|
569
573
|
const isDeepResearchModel = this.modelName.includes("deep-research");
|
|
570
574
|
if (isDeepResearchModel) {
|
|
@@ -590,7 +594,7 @@ var OpenAiResponsesProvider = class extends OpenAiGenericProvider {
|
|
|
590
594
|
method: "POST",
|
|
591
595
|
headers: {
|
|
592
596
|
"Content-Type": "application/json",
|
|
593
|
-
Authorization: `Bearer ${this.getApiKey()}
|
|
597
|
+
...this.getApiKey() ? { Authorization: `Bearer ${this.getApiKey()}` } : {},
|
|
594
598
|
...this.getOrganization() ? { "OpenAI-Organization": this.getOrganization() } : {},
|
|
595
599
|
...config.headers
|
|
596
600
|
},
|
|
@@ -657,4 +661,4 @@ var OpenAiResponsesProvider = class extends OpenAiGenericProvider {
|
|
|
657
661
|
//#endregion
|
|
658
662
|
export { ResponsesProcessor as n, FunctionCallbackHandler as r, OpenAiResponsesProvider as t };
|
|
659
663
|
|
|
660
|
-
//# sourceMappingURL=responses-
|
|
664
|
+
//# sourceMappingURL=responses-CQb1Tj69.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { f as LONG_RUNNING_MODEL_TIMEOUT_MS, p as REQUEST_TIMEOUT_MS } from "./fetch-
|
|
3
|
-
import { r as importModule } from "./esm-
|
|
1
|
+
import { C as getEnvString, D as state, S as getEnvInt, a as logger, x as getEnvFloat } from "./logger-BnkjG2jt.js";
|
|
2
|
+
import { f as LONG_RUNNING_MODEL_TIMEOUT_MS, p as REQUEST_TIMEOUT_MS } from "./fetch-BiYv2BZc.js";
|
|
3
|
+
import { r as importModule } from "./esm-CKWP3u_P.js";
|
|
4
4
|
import { i as isJavascriptFile } from "./fileExtensions-LcDYkU4v.js";
|
|
5
|
-
import { r as fetchWithCache } from "./cache-
|
|
6
|
-
import { D as maybeLoadResponseFormatFromExternalFile, N as renderVarsInObject, O as maybeLoadToolsFromExternalFile } from "./util-
|
|
7
|
-
import { t as OpenAiGenericProvider } from "./openai-
|
|
8
|
-
import { a as calculateOpenAICost, c as getTokenUsage$1, s as formatOpenAiError } from "./util-
|
|
5
|
+
import { r as fetchWithCache } from "./cache-HP0NP4k3.js";
|
|
6
|
+
import { D as maybeLoadResponseFormatFromExternalFile, N as renderVarsInObject, O as maybeLoadToolsFromExternalFile } from "./util-BLvy9qfE.js";
|
|
7
|
+
import { t as OpenAiGenericProvider } from "./openai-D6wITiVn.js";
|
|
8
|
+
import { a as calculateOpenAICost, c as getTokenUsage$1, s as formatOpenAiError } from "./util-BtoGs5Cb.js";
|
|
9
9
|
import path from "path";
|
|
10
10
|
//#region src/providers/functionCallbackUtils.ts
|
|
11
11
|
/**
|
|
@@ -443,6 +443,10 @@ var OpenAiResponsesProvider = class extends OpenAiGenericProvider {
|
|
|
443
443
|
"gpt-5.3-codex-spark",
|
|
444
444
|
"gpt-5.4",
|
|
445
445
|
"gpt-5.4-2026-03-05",
|
|
446
|
+
"gpt-5.4-mini",
|
|
447
|
+
"gpt-5.4-mini-2026-03-17",
|
|
448
|
+
"gpt-5.4-nano",
|
|
449
|
+
"gpt-5.4-nano-2026-03-17",
|
|
446
450
|
"gpt-5.4-pro",
|
|
447
451
|
"gpt-5.4-pro-2026-03-05",
|
|
448
452
|
"gpt-audio",
|
|
@@ -533,9 +537,9 @@ var OpenAiResponsesProvider = class extends OpenAiGenericProvider {
|
|
|
533
537
|
const body = {
|
|
534
538
|
model: this.modelName,
|
|
535
539
|
input,
|
|
536
|
-
...maxOutputTokens
|
|
540
|
+
...maxOutputTokens === void 0 ? {} : { max_output_tokens: maxOutputTokens },
|
|
537
541
|
...reasoningEffort ? { reasoning: { effort: reasoningEffort } } : {},
|
|
538
|
-
...temperature
|
|
542
|
+
...temperature === void 0 ? {} : { temperature },
|
|
539
543
|
...instructions ? { instructions } : {},
|
|
540
544
|
...(!reasoningEffort || reasoningEffort === "none") && (config.top_p !== void 0 || getEnvString("OPENAI_TOP_P")) ? { top_p: config.top_p ?? getEnvFloat("OPENAI_TOP_P", 1) } : {},
|
|
541
545
|
...loadedTools ? { tools: loadedTools } : {},
|
|
@@ -564,7 +568,7 @@ var OpenAiResponsesProvider = class extends OpenAiGenericProvider {
|
|
|
564
568
|
};
|
|
565
569
|
}
|
|
566
570
|
async callApi(prompt, context, callApiOptions) {
|
|
567
|
-
if (!this.getApiKey()) throw new Error("OpenAI API key is not set. Set the OPENAI_API_KEY environment variable or add `apiKey` to the provider config.");
|
|
571
|
+
if (this.requiresApiKey() && !this.getApiKey()) throw new Error("OpenAI API key is not set. Set the OPENAI_API_KEY environment variable or add `apiKey` to the provider config.");
|
|
568
572
|
const { body, config } = await this.getOpenAiBody(prompt, context, callApiOptions);
|
|
569
573
|
const isDeepResearchModel = this.modelName.includes("deep-research");
|
|
570
574
|
if (isDeepResearchModel) {
|
|
@@ -590,7 +594,7 @@ var OpenAiResponsesProvider = class extends OpenAiGenericProvider {
|
|
|
590
594
|
method: "POST",
|
|
591
595
|
headers: {
|
|
592
596
|
"Content-Type": "application/json",
|
|
593
|
-
Authorization: `Bearer ${this.getApiKey()}
|
|
597
|
+
...this.getApiKey() ? { Authorization: `Bearer ${this.getApiKey()}` } : {},
|
|
594
598
|
...this.getOrganization() ? { "OpenAI-Organization": this.getOrganization() } : {},
|
|
595
599
|
...config.headers
|
|
596
600
|
},
|
|
@@ -657,4 +661,4 @@ var OpenAiResponsesProvider = class extends OpenAiGenericProvider {
|
|
|
657
661
|
//#endregion
|
|
658
662
|
export { ResponsesProcessor as n, FunctionCallbackHandler as r, OpenAiResponsesProvider as t };
|
|
659
663
|
|
|
660
|
-
//# sourceMappingURL=responses-
|
|
664
|
+
//# sourceMappingURL=responses-CgNyTPsY.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const require_logger = require("./logger-
|
|
2
|
-
const require_esm = require("./esm-
|
|
1
|
+
const require_logger = require("./logger-D5iKBpu_.cjs");
|
|
2
|
+
const require_esm = require("./esm-CipptfDu.cjs");
|
|
3
3
|
const require_fileExtensions = require("./fileExtensions-bYh77CN8.cjs");
|
|
4
|
-
const require_util = require("./util-
|
|
5
|
-
const require_fetch = require("./fetch-
|
|
6
|
-
const require_cache = require("./cache-
|
|
7
|
-
const require_openai = require("./openai-
|
|
8
|
-
const require_util$1 = require("./util-
|
|
4
|
+
const require_util = require("./util-CuLo2pMR.cjs");
|
|
5
|
+
const require_fetch = require("./fetch-BnR9wSnm.cjs");
|
|
6
|
+
const require_cache = require("./cache-C5yFZ4gC.cjs");
|
|
7
|
+
const require_openai = require("./openai-CoxGAQwn.cjs");
|
|
8
|
+
const require_util$1 = require("./util-CFj4YKIn.cjs");
|
|
9
9
|
let path = require("path");
|
|
10
10
|
path = require_logger.__toESM(path);
|
|
11
11
|
//#region src/providers/functionCallbackUtils.ts
|
|
@@ -444,6 +444,10 @@ var OpenAiResponsesProvider = class extends require_openai.OpenAiGenericProvider
|
|
|
444
444
|
"gpt-5.3-codex-spark",
|
|
445
445
|
"gpt-5.4",
|
|
446
446
|
"gpt-5.4-2026-03-05",
|
|
447
|
+
"gpt-5.4-mini",
|
|
448
|
+
"gpt-5.4-mini-2026-03-17",
|
|
449
|
+
"gpt-5.4-nano",
|
|
450
|
+
"gpt-5.4-nano-2026-03-17",
|
|
447
451
|
"gpt-5.4-pro",
|
|
448
452
|
"gpt-5.4-pro-2026-03-05",
|
|
449
453
|
"gpt-audio",
|
|
@@ -534,9 +538,9 @@ var OpenAiResponsesProvider = class extends require_openai.OpenAiGenericProvider
|
|
|
534
538
|
const body = {
|
|
535
539
|
model: this.modelName,
|
|
536
540
|
input,
|
|
537
|
-
...maxOutputTokens
|
|
541
|
+
...maxOutputTokens === void 0 ? {} : { max_output_tokens: maxOutputTokens },
|
|
538
542
|
...reasoningEffort ? { reasoning: { effort: reasoningEffort } } : {},
|
|
539
|
-
...temperature
|
|
543
|
+
...temperature === void 0 ? {} : { temperature },
|
|
540
544
|
...instructions ? { instructions } : {},
|
|
541
545
|
...(!reasoningEffort || reasoningEffort === "none") && (config.top_p !== void 0 || require_logger.getEnvString("OPENAI_TOP_P")) ? { top_p: config.top_p ?? require_logger.getEnvFloat("OPENAI_TOP_P", 1) } : {},
|
|
542
546
|
...loadedTools ? { tools: loadedTools } : {},
|
|
@@ -565,7 +569,7 @@ var OpenAiResponsesProvider = class extends require_openai.OpenAiGenericProvider
|
|
|
565
569
|
};
|
|
566
570
|
}
|
|
567
571
|
async callApi(prompt, context, callApiOptions) {
|
|
568
|
-
if (!this.getApiKey()) throw new Error("OpenAI API key is not set. Set the OPENAI_API_KEY environment variable or add `apiKey` to the provider config.");
|
|
572
|
+
if (this.requiresApiKey() && !this.getApiKey()) throw new Error("OpenAI API key is not set. Set the OPENAI_API_KEY environment variable or add `apiKey` to the provider config.");
|
|
569
573
|
const { body, config } = await this.getOpenAiBody(prompt, context, callApiOptions);
|
|
570
574
|
const isDeepResearchModel = this.modelName.includes("deep-research");
|
|
571
575
|
if (isDeepResearchModel) {
|
|
@@ -591,7 +595,7 @@ var OpenAiResponsesProvider = class extends require_openai.OpenAiGenericProvider
|
|
|
591
595
|
method: "POST",
|
|
592
596
|
headers: {
|
|
593
597
|
"Content-Type": "application/json",
|
|
594
|
-
Authorization: `Bearer ${this.getApiKey()}
|
|
598
|
+
...this.getApiKey() ? { Authorization: `Bearer ${this.getApiKey()}` } : {},
|
|
595
599
|
...this.getOrganization() ? { "OpenAI-Organization": this.getOrganization() } : {},
|
|
596
600
|
...config.headers
|
|
597
601
|
},
|
|
@@ -675,4 +679,4 @@ Object.defineProperty(exports, "ResponsesProcessor", {
|
|
|
675
679
|
}
|
|
676
680
|
});
|
|
677
681
|
|
|
678
|
-
//# sourceMappingURL=responses-
|
|
682
|
+
//# sourceMappingURL=responses-mo0KQDbu.cjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_logger = require("./logger-
|
|
2
|
-
const require_esm = require("./esm-
|
|
1
|
+
const require_logger = require("./logger-D5iKBpu_.cjs");
|
|
2
|
+
const require_esm = require("./esm-CipptfDu.cjs");
|
|
3
3
|
let fs = require("fs");
|
|
4
4
|
fs = require_logger.__toESM(fs);
|
|
5
5
|
let path = require("path");
|
|
@@ -242,4 +242,4 @@ Object.defineProperty(exports, "validateRubyPath", {
|
|
|
242
242
|
}
|
|
243
243
|
});
|
|
244
244
|
|
|
245
|
-
//# sourceMappingURL=rubyUtils-
|
|
245
|
+
//# sourceMappingURL=rubyUtils-CGeUtCfW.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
import { n as getWrapperDir } from "./esm-
|
|
2
|
+
import { E as getEnvString, s as logger, y as safeJsonStringify } from "./logger-BcJBzSSA.js";
|
|
3
|
+
import { n as getWrapperDir } from "./esm-7UIl0pPM.js";
|
|
4
4
|
import fs from "fs";
|
|
5
5
|
import path from "path";
|
|
6
6
|
import os from "os";
|
|
@@ -212,4 +212,4 @@ async function runRuby(scriptPath, method, args, options = {}) {
|
|
|
212
212
|
//#endregion
|
|
213
213
|
export { validateRubyPath as a, tryPath as i, runRuby as n, state as r, getSysExecutable as t };
|
|
214
214
|
|
|
215
|
-
//# sourceMappingURL=rubyUtils-
|
|
215
|
+
//# sourceMappingURL=rubyUtils-CiVfln3g.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-DEq-mXcV.js";
|
|
2
|
-
import {
|
|
3
|
-
import { n as getWrapperDir } from "./esm-
|
|
2
|
+
import { C as getEnvString, _ as safeJsonStringify, a as logger } from "./logger-BnkjG2jt.js";
|
|
3
|
+
import { n as getWrapperDir } from "./esm-CKWP3u_P.js";
|
|
4
4
|
import fs from "fs";
|
|
5
5
|
import path from "path";
|
|
6
6
|
import os from "os";
|
|
@@ -219,4 +219,4 @@ async function runRuby(scriptPath, method, args, options = {}) {
|
|
|
219
219
|
//#endregion
|
|
220
220
|
export { runRuby as n, rubyUtils_exports as t };
|
|
221
221
|
|
|
222
|
-
//# sourceMappingURL=rubyUtils-
|
|
222
|
+
//# sourceMappingURL=rubyUtils-DECSbsfY.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-DEq-mXcV.js";
|
|
2
|
-
import {
|
|
3
|
-
import { n as getWrapperDir } from "./esm-
|
|
2
|
+
import { C as getEnvString, _ as safeJsonStringify, a as logger } from "./logger-DO8_zM18.js";
|
|
3
|
+
import { n as getWrapperDir } from "./esm-SUNIX1x3.js";
|
|
4
4
|
import fs from "fs";
|
|
5
5
|
import path from "path";
|
|
6
6
|
import os from "os";
|
|
@@ -219,4 +219,4 @@ async function runRuby(scriptPath, method, args, options = {}) {
|
|
|
219
219
|
//#endregion
|
|
220
220
|
export { runRuby as n, rubyUtils_exports as t };
|
|
221
221
|
|
|
222
|
-
//# sourceMappingURL=rubyUtils-
|
|
222
|
+
//# sourceMappingURL=rubyUtils-PgU-gHmx.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./fetch-
|
|
3
|
-
import "./accounts-
|
|
4
|
-
import "./esm-
|
|
5
|
-
import { n as telemetry } from "./telemetry-
|
|
6
|
-
import "./pythonUtils-
|
|
7
|
-
import { n as transform } from "./transform-
|
|
1
|
+
import { C as getEnvString, S as getEnvInt, a as logger, x as getEnvFloat } from "./logger-BnkjG2jt.js";
|
|
2
|
+
import "./fetch-BiYv2BZc.js";
|
|
3
|
+
import "./accounts-Xatc0RYb.js";
|
|
4
|
+
import "./esm-CKWP3u_P.js";
|
|
5
|
+
import { n as telemetry } from "./telemetry-DPXLd7UE.js";
|
|
6
|
+
import "./pythonUtils-Bzwbgpbg.js";
|
|
7
|
+
import { n as transform } from "./transform-BzK09Q_9.js";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import crypto from "crypto";
|
|
10
10
|
//#region src/providers/sagemaker.ts
|
|
@@ -185,7 +185,7 @@ var SageMakerGenericProvider = class {
|
|
|
185
185
|
logger.error(`Error executing inline transform: ${transformError}`);
|
|
186
186
|
}
|
|
187
187
|
else try {
|
|
188
|
-
const { TransformInputType } = await import("./transform-
|
|
188
|
+
const { TransformInputType } = await import("./transform-BzK09Q_9.js").then((n) => n.r);
|
|
189
189
|
const transformed = await transform(transformFn, prompt, transformContext, false, TransformInputType.OUTPUT);
|
|
190
190
|
if (transformed === void 0 || transformed === null) {
|
|
191
191
|
logger.debug("Transform function returned null or undefined, using original prompt");
|
|
@@ -212,7 +212,7 @@ var SageMakerGenericProvider = class {
|
|
|
212
212
|
if (!pathExpression) return responseJson;
|
|
213
213
|
try {
|
|
214
214
|
if (pathExpression.startsWith("file://")) try {
|
|
215
|
-
const { TransformInputType } = await import("./transform-
|
|
215
|
+
const { TransformInputType } = await import("./transform-BzK09Q_9.js").then((n) => n.r);
|
|
216
216
|
const transformedResult = await transform(pathExpression, responseJson, { prompt: {} }, false, TransformInputType.OUTPUT);
|
|
217
217
|
return transformedResult !== void 0 && transformedResult !== null ? transformedResult : responseJson;
|
|
218
218
|
} catch (error) {
|
|
@@ -407,7 +407,7 @@ var SageMakerCompletionProvider = class extends SageMakerGenericProvider {
|
|
|
407
407
|
* Invoke SageMaker endpoint for text generation with caching, delay support, and transformations
|
|
408
408
|
*/
|
|
409
409
|
async callApi(prompt, context, _options) {
|
|
410
|
-
const { isCacheEnabled, getCache } = await import("./cache-
|
|
410
|
+
const { isCacheEnabled, getCache } = await import("./cache-HP0NP4k3.js").then((n) => n.t);
|
|
411
411
|
const delayMs = context?.originalProvider?.delay || this.delay;
|
|
412
412
|
const transformedPrompt = await this.applyTransformation(prompt, context);
|
|
413
413
|
const isTransformed = transformedPrompt !== prompt;
|
|
@@ -419,7 +419,7 @@ var SageMakerCompletionProvider = class extends SageMakerGenericProvider {
|
|
|
419
419
|
const bustCache = context?.bustCache ?? context?.debug === true;
|
|
420
420
|
if (isCacheEnabled() && !bustCache) {
|
|
421
421
|
const cacheKey = this.getCacheKey(transformedPrompt);
|
|
422
|
-
const cachedResult = await (getCache ? getCache() : await import("./cache-
|
|
422
|
+
const cachedResult = await (getCache ? getCache() : await import("./cache-HP0NP4k3.js").then((n) => n.t).then((m) => m.getCache())).get(cacheKey);
|
|
423
423
|
if (cachedResult) {
|
|
424
424
|
logger.debug(`Using cached SageMaker response for ${this.getEndpointName()}`);
|
|
425
425
|
try {
|
|
@@ -493,7 +493,7 @@ var SageMakerCompletionProvider = class extends SageMakerGenericProvider {
|
|
|
493
493
|
};
|
|
494
494
|
if (isCacheEnabled() && !bustCache && result.output && !result.error) {
|
|
495
495
|
const cacheKey = this.getCacheKey(transformedPrompt);
|
|
496
|
-
const cache = getCache ? getCache() : await import("./cache-
|
|
496
|
+
const cache = getCache ? getCache() : await import("./cache-HP0NP4k3.js").then((n) => n.t).then((m) => m.getCache());
|
|
497
497
|
const resultToCache = JSON.stringify(result);
|
|
498
498
|
try {
|
|
499
499
|
await cache.set(cacheKey, resultToCache);
|
|
@@ -538,7 +538,7 @@ var SageMakerEmbeddingProvider = class extends SageMakerGenericProvider {
|
|
|
538
538
|
* Invoke SageMaker endpoint for embeddings with caching, delay support, and transformations
|
|
539
539
|
*/
|
|
540
540
|
async callEmbeddingApi(text, context) {
|
|
541
|
-
const { isCacheEnabled, getCache } = await import("./cache-
|
|
541
|
+
const { isCacheEnabled, getCache } = await import("./cache-HP0NP4k3.js").then((n) => n.t);
|
|
542
542
|
const delayMs = context?.originalProvider?.delay || this.delay;
|
|
543
543
|
const transformedText = await this.applyTransformation(text, context);
|
|
544
544
|
const isTransformed = transformedText !== text;
|
|
@@ -550,7 +550,7 @@ var SageMakerEmbeddingProvider = class extends SageMakerGenericProvider {
|
|
|
550
550
|
const bustCache = context?.debug === true;
|
|
551
551
|
if (isCacheEnabled() && !bustCache) {
|
|
552
552
|
const cacheKey = this.getCacheKey(transformedText);
|
|
553
|
-
const cachedResult = await (await getCache ? await getCache() : await import("./cache-
|
|
553
|
+
const cachedResult = await (await getCache ? await getCache() : await import("./cache-HP0NP4k3.js").then((n) => n.t).then((m) => m.getCache())).get(cacheKey);
|
|
554
554
|
if (cachedResult) {
|
|
555
555
|
logger.debug(`Using cached SageMaker embedding response for ${this.getEndpointName()}`);
|
|
556
556
|
try {
|
|
@@ -664,11 +664,11 @@ var SageMakerEmbeddingProvider = class extends SageMakerGenericProvider {
|
|
|
664
664
|
* Helper method to cache embedding results
|
|
665
665
|
*/
|
|
666
666
|
async cacheEmbeddingResult(result, text, context, isTransformed = false, originalText) {
|
|
667
|
-
const { isCacheEnabled, getCache } = await import("./cache-
|
|
667
|
+
const { isCacheEnabled, getCache } = await import("./cache-HP0NP4k3.js").then((n) => n.t);
|
|
668
668
|
const bustCache = context?.debug === true;
|
|
669
669
|
if (isCacheEnabled() && !bustCache && result.embedding && !result.error) {
|
|
670
670
|
const cacheKey = this.getCacheKey(text);
|
|
671
|
-
const cache = await getCache ? await getCache() : await import("./cache-
|
|
671
|
+
const cache = await getCache ? await getCache() : await import("./cache-HP0NP4k3.js").then((n) => n.t).then((m) => m.getCache());
|
|
672
672
|
if (isTransformed && originalText && !result.metadata) result.metadata = {
|
|
673
673
|
transformed: true,
|
|
674
674
|
originalText
|
|
@@ -690,4 +690,4 @@ var SageMakerEmbeddingProvider = class extends SageMakerGenericProvider {
|
|
|
690
690
|
//#endregion
|
|
691
691
|
export { SageMakerCompletionProvider, SageMakerEmbeddingProvider };
|
|
692
692
|
|
|
693
|
-
//# sourceMappingURL=sagemaker-
|
|
693
|
+
//# sourceMappingURL=sagemaker-CVv8W7so.js.map
|