Skip to content

Commit 0722848

Browse files
committed
chore(example): revert unnecessary changes
1 parent ac8e983 commit 0722848

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

example/src/App.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,10 @@ export default function App() {
268268
]
269269
addMessage(textMessage)
270270
setInferencing(true)
271-
272-
const formattedChat = (await context?.getFormattedChat(msgs)) || ''
273271
// Test area
274272
{
275273
// Test tokenize
274+
const formattedChat = (await context?.getFormattedChat(msgs)) || ''
276275
const t0 = Date.now()
277276
const { tokens } = (await context?.tokenize(formattedChat)) || {}
278277
const t1 = Date.now()
@@ -347,7 +346,7 @@ export default function App() {
347346
context
348347
?.completion(
349348
{
350-
prompt: formattedChat,
349+
messages: msgs,
351350
n_predict: 100,
352351
xtc_probability: 0.5,
353352
xtc_threshold: 0.1,

0 commit comments

Comments
 (0)