@tryhamster/gerbil 1.6.2 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{architectures-CpmH4Gha.mjs → architectures-BHkqQ9xp.mjs} +1 -1
- package/dist/{architectures-CpmH4Gha.mjs.map → architectures-BHkqQ9xp.mjs.map} +1 -1
- package/dist/browser/index.d.ts +6 -0
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/cli.mjs +13 -13
- package/dist/cli.mjs.map +1 -1
- package/dist/{defaults-KnrRSIeJ.mjs → defaults-C_bJK9zs.mjs} +1 -1
- package/dist/{defaults-KnrRSIeJ.mjs.map → defaults-C_bJK9zs.mjs.map} +1 -1
- package/dist/frameworks/express.d.mts +2 -2
- package/dist/frameworks/express.mjs +3 -3
- package/dist/frameworks/fastify.d.mts +2 -2
- package/dist/frameworks/fastify.mjs +2 -2
- package/dist/frameworks/hono.d.mts +2 -2
- package/dist/frameworks/hono.mjs +2 -2
- package/dist/frameworks/next.d.mts +4 -4
- package/dist/frameworks/next.mjs +2 -2
- package/dist/frameworks/react.d.mts +2 -2
- package/dist/frameworks/trpc.d.mts +2 -2
- package/dist/frameworks/trpc.mjs +2 -2
- package/dist/gerbil-BKCknsZ6.mjs +4 -0
- package/dist/{gerbil-BcBaLPai.mjs → gerbil-CJjj7BD_.mjs} +12 -9
- package/dist/gerbil-CJjj7BD_.mjs.map +1 -0
- package/dist/{gerbil--YDNklsY.d.mts → gerbil-D7gfxZXW.d.mts} +4 -4
- package/dist/{gerbil--YDNklsY.d.mts.map → gerbil-D7gfxZXW.d.mts.map} +1 -1
- package/dist/gpu/hooks.d.mts +8 -3
- package/dist/gpu/hooks.d.mts.map +1 -1
- package/dist/gpu/hooks.mjs +14 -5
- package/dist/gpu/hooks.mjs.map +1 -1
- package/dist/gpu/index.d.mts +2 -2
- package/dist/gpu/index.mjs +4 -4
- package/dist/{gpu-BZVtzX9N.mjs → gpu-DOK8RgIN.mjs} +4 -4
- package/dist/{gpu-BZVtzX9N.mjs.map → gpu-DOK8RgIN.mjs.map} +1 -1
- package/dist/{index-CRDf-nS4.d.mts → index-B3tjyDJI.d.mts} +2 -2
- package/dist/{index-CRDf-nS4.d.mts.map → index-B3tjyDJI.d.mts.map} +1 -1
- package/dist/{index-CZVIHkaH.d.mts → index-HgdjgsLb.d.mts} +2 -2
- package/dist/{index-CZVIHkaH.d.mts.map → index-HgdjgsLb.d.mts.map} +1 -1
- package/dist/index.d.mts +6 -6
- package/dist/index.mjs +11 -11
- package/dist/indexeddb-store-B6HYVgQ_.mjs +4 -0
- package/dist/{indexeddb-store-BWIMtxxH.mjs → indexeddb-store-BiamQL7K.mjs} +2 -2
- package/dist/{indexeddb-store-BWIMtxxH.mjs.map → indexeddb-store-BiamQL7K.mjs.map} +1 -1
- package/dist/integrations/ai-sdk.d.mts +2 -2
- package/dist/integrations/ai-sdk.mjs +2 -2
- package/dist/integrations/langchain.d.mts +2 -2
- package/dist/integrations/langchain.mjs +2 -2
- package/dist/integrations/llamaindex.d.mts +2 -2
- package/dist/integrations/llamaindex.mjs +2 -2
- package/dist/integrations/mcp-client.mjs +2 -2
- package/dist/integrations/mcp.d.mts +4 -4
- package/dist/integrations/mcp.mjs +5 -5
- package/dist/{mcp-LmQ6uqnx.mjs → mcp-DaQJ2bie.mjs} +3 -3
- package/dist/{mcp-LmQ6uqnx.mjs.map → mcp-DaQJ2bie.mjs.map} +1 -1
- package/dist/memory/index.d.mts +2 -2
- package/dist/memory/index.mjs +4 -4
- package/dist/{memory-Dj0J1v88.mjs → memory-BCKc_Jfp.mjs} +2 -2
- package/dist/{memory-Dj0J1v88.mjs.map → memory-BCKc_Jfp.mjs.map} +1 -1
- package/dist/memory-BwYh_DZh.mjs +4 -0
- package/dist/{memory-DVN0MnIG.mjs → memory-Dnjhc1du.mjs} +2 -2
- package/dist/{memory-DVN0MnIG.mjs.map → memory-Dnjhc1du.mjs.map} +1 -1
- package/dist/moonshine-stt-CrTu77ps.mjs +4 -0
- package/dist/{moonshine-stt-BFIm_Xxk.mjs → moonshine-stt-Teic6SbK.mjs} +2 -2
- package/dist/{moonshine-stt-BFIm_Xxk.mjs.map → moonshine-stt-Teic6SbK.mjs.map} +1 -1
- package/dist/{one-liner-BYVB7jU5.mjs → one-liner-BnBYesLF.mjs} +2 -2
- package/dist/{one-liner-BYVB7jU5.mjs.map → one-liner-BnBYesLF.mjs.map} +1 -1
- package/dist/{outetts-Cr5oGk4z.d.mts → outetts-CAL3_K3j.d.mts} +1 -1
- package/dist/{outetts-Cr5oGk4z.d.mts.map → outetts-CAL3_K3j.d.mts.map} +1 -1
- package/dist/repl-DMur1t4G.mjs +9 -0
- package/dist/skills/index.d.mts +4 -4
- package/dist/skills/index.mjs +4 -4
- package/dist/{skills-DWMVEKKj.mjs → skills-BfJI3GNK.mjs} +2 -2
- package/dist/{skills-DWMVEKKj.mjs.map → skills-BfJI3GNK.mjs.map} +1 -1
- package/dist/{tools-DQ1mPUw5.mjs → tools-DRYfLfKS.mjs} +2 -2
- package/dist/{tools-DQ1mPUw5.mjs.map → tools-DRYfLfKS.mjs.map} +1 -1
- package/dist/tune/index.d.mts +186 -0
- package/dist/tune/index.d.mts.map +1 -0
- package/dist/tune/index.mjs +297 -0
- package/dist/tune/index.mjs.map +1 -0
- package/dist/{types-Dqv4m0vo.d.mts → types-CIcNt_XS.d.mts} +1 -1
- package/dist/{types-Dqv4m0vo.d.mts.map → types-CIcNt_XS.d.mts.map} +1 -1
- package/dist/{types-CjG36Vzj.d.mts → types-DW-OBuAC.d.mts} +8 -2
- package/dist/types-DW-OBuAC.d.mts.map +1 -0
- package/dist/{utils-DKO55ZmZ.mjs → utils-CZBZ8dgR.mjs} +1 -1
- package/dist/{utils-DKO55ZmZ.mjs.map → utils-CZBZ8dgR.mjs.map} +1 -1
- package/dist/{vector-B0panuy6.mjs → vector-BJqdOci_.mjs} +1 -1
- package/dist/{vector-B0panuy6.mjs.map → vector-BJqdOci_.mjs.map} +1 -1
- package/package.json +5 -1
- package/dist/gerbil-BcBaLPai.mjs.map +0 -1
- package/dist/gerbil-CTkp26G3.mjs +0 -4
- package/dist/indexeddb-store-ClH12Xnl.mjs +0 -4
- package/dist/memory-D1P7Tmda.mjs +0 -4
- package/dist/moonshine-stt-D7BqG2pU.mjs +0 -4
- package/dist/repl-CYlW8byH.mjs +0 -9
- package/dist/types-CjG36Vzj.d.mts.map +0 -1
- /package/dist/{auto-update-BVaLXcDE.mjs → auto-update-DIh0uiTw.mjs} +0 -0
- /package/dist/{chunk-B9cbKln6.mjs → chunk-BeNUM--j.mjs} +0 -0
- /package/dist/{microphone-Bqmoz9_K.mjs → microphone-CsUwVP2O.mjs} +0 -0
package/dist/gpu/hooks.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as resolveDefaultRepo, r as OUTETTS_PRESET_VOICES, t as DEFAULT_MODELS } from "../defaults-
|
|
1
|
+
import { i as resolveDefaultRepo, r as OUTETTS_PRESET_VOICES, t as DEFAULT_MODELS } from "../defaults-C_bJK9zs.mjs";
|
|
2
2
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
3
3
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
4
4
|
|
|
@@ -271,7 +271,10 @@ function useEngine(options = {}) {
|
|
|
271
271
|
try {
|
|
272
272
|
const result = await engine.generate(prompt, {
|
|
273
273
|
maxTokens: opts.maxTokens ?? 256,
|
|
274
|
-
sampling: {
|
|
274
|
+
sampling: {
|
|
275
|
+
temperature: opts.temperature ?? .7,
|
|
276
|
+
repetitionPenalty: opts.repetitionPenalty
|
|
277
|
+
},
|
|
275
278
|
systemPrompt: opts.system,
|
|
276
279
|
stopSequences: opts.stopSequences,
|
|
277
280
|
onToken: (token, meta) => {
|
|
@@ -318,7 +321,10 @@ function useEngine(options = {}) {
|
|
|
318
321
|
schema: opts.schema,
|
|
319
322
|
maxRetries: opts.maxRetries,
|
|
320
323
|
maxTokens: opts.maxTokens ?? 256,
|
|
321
|
-
sampling: {
|
|
324
|
+
sampling: {
|
|
325
|
+
temperature: opts.temperature ?? .7,
|
|
326
|
+
repetitionPenalty: opts.repetitionPenalty
|
|
327
|
+
},
|
|
322
328
|
systemPrompt: opts.system,
|
|
323
329
|
stopSequences: opts.stopSequences
|
|
324
330
|
});
|
|
@@ -348,7 +354,10 @@ function useEngine(options = {}) {
|
|
|
348
354
|
try {
|
|
349
355
|
const result = await engine.describeImage(decoded, prompt, {
|
|
350
356
|
maxTokens: opts.maxTokens ?? 150,
|
|
351
|
-
sampling: {
|
|
357
|
+
sampling: {
|
|
358
|
+
temperature: opts.temperature ?? .7,
|
|
359
|
+
repetitionPenalty: opts.repetitionPenalty ?? 1.3
|
|
360
|
+
},
|
|
352
361
|
systemPrompt: opts.system,
|
|
353
362
|
stopSequences: opts.stopSequences,
|
|
354
363
|
onToken: (token, meta) => {
|
|
@@ -646,7 +655,7 @@ function useMemory(options = {}) {
|
|
|
646
655
|
if (initRef.current) return initRef.current;
|
|
647
656
|
initRef.current = (async () => {
|
|
648
657
|
if (!embedder.isReady) await embedder.load();
|
|
649
|
-
const [{ createMemory }, { createIndexedDBStore }] = await Promise.all([import("../memory-
|
|
658
|
+
const [{ createMemory }, { createIndexedDBStore }] = await Promise.all([import("../memory-BwYh_DZh.mjs"), import("../indexeddb-store-B6HYVgQ_.mjs")]);
|
|
650
659
|
const mem = createMemory({
|
|
651
660
|
embed: async (texts) => Promise.all(texts.map((t) => embedder.embed(t))),
|
|
652
661
|
store: createIndexedDBStore({ dbName: namespace })
|