Skip to content

Commit 2d986de

Browse files
committed
clean
1 parent 204f00c commit 2d986de

22 files changed

+15
-856
lines changed

packages/headless/dist/comlink-9118e156.js renamed to packages/headless/dist/comlink-225113f4.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -2945,7 +2945,9 @@ class LLMInstanceScope {
29452945
conversation,
29462946
maxTokens,
29472947
assistantRoleName,
2948-
stopTexts
2948+
stopTexts,
2949+
temperature,
2950+
top_p
29492951
} = request;
29502952
const tokens = await this.getTokens(conversation, maxTokens);
29512953
tokens.push(...(await this.tokenizer.encodeIds(`${assistantRoleName}:`)));
@@ -2969,7 +2971,7 @@ class LLMInstanceScope {
29692971
}
29702972
const logits = this.tvm.detachFromCurrentScope(this.forward(input, this.kvCacheLength + inputTokenLength + step));
29712973
this.tvm.endScope();
2972-
const nextToken = await this.sampleTokenFromLogits(logits);
2974+
const nextToken = await this.sampleTokenFromLogits(logits, temperature, top_p);
29732975
logits.dispose();
29742976
tokens.push(nextToken);
29752977
const outputTokens = tokens.slice(inputTokenLength);

packages/headless/dist/comlink-e373c8b8.js

-352
This file was deleted.

packages/headless/dist/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import require$$0, { useDebugValue, useState, useEffect, useRef, useCallback, createContext, useContext } from 'react';
2-
import { d as detectGPUDevice, w as wrap, p as proxy } from './comlink-9118e156.js';
2+
import { d as detectGPUDevice, w as wrap, p as proxy } from './comlink-225113f4.js';
33

44
// Unique ID creation requires a high quality random # generator. In the browser we therefore
55
// require the crypto API and do not support built-in fallback to lower quality random number
@@ -1327,7 +1327,7 @@ const useLLMContext = (props = {
13271327
workerRef.current = props.api;
13281328
}
13291329
else {
1330-
workerRef.current = wrap(new Worker(new URL("worker-9079896e.js", import.meta.url)));
1330+
workerRef.current = wrap(new Worker(new URL("worker-e4952377.js", import.meta.url)));
13311331
}
13321332
}
13331333
}, [props.api]);

packages/headless/dist/types/src/hooks/useConversationStore copy.d.ts

Whitespace-only changes.

0 commit comments

Comments
 (0)