Skip to content

Commit 64a74d3

Browse files
committed
version: bump version of webllm and chat
1 parent 28e92bc commit 64a74d3

File tree

11 files changed

+2131
-3448
lines changed

11 files changed

+2131
-3448
lines changed

app/client/api.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
import {
2-
ChatCompletionFinishReason,
3-
CompletionUsage,
4-
} from "@neet-nestor/web-llm";
1+
import { ChatCompletionFinishReason, CompletionUsage } from "@mlc-ai/web-llm";
52
import { CacheType, Model } from "../store";
63
export const ROLES = ["system", "user", "assistant"] as const;
74
export type MessageRole = (typeof ROLES)[number];

app/client/mlcllm.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import log from "loglevel";
22
import { ChatOptions, LLMApi } from "./api";
3-
import {
4-
ChatCompletionFinishReason,
5-
CompletionUsage,
6-
} from "@neet-nestor/web-llm";
3+
import { ChatCompletionFinishReason, CompletionUsage } from "@mlc-ai/web-llm";
74

85
export class MlcLLMApi implements LLMApi {
96
private endpoint: string;

app/client/webllm.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ import {
1212
WebWorkerMLCEngine,
1313
CompletionUsage,
1414
ChatCompletionFinishReason,
15-
} from "@neet-nestor/web-llm";
15+
} from "@mlc-ai/web-llm";
1616

1717
import { ChatOptions, LLMApi, LLMConfig, RequestMessage } from "./api";
18-
import { LogLevel } from "@neet-nestor/web-llm";
18+
import { LogLevel } from "@mlc-ai/web-llm";
1919
import { fixMessage } from "../utils";
2020
import { DEFAULT_MODELS } from "../constant";
2121

app/components/home.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
Route,
1414
useLocation,
1515
} from "react-router-dom";
16-
import { ServiceWorkerMLCEngine } from "@neet-nestor/web-llm";
16+
import { ServiceWorkerMLCEngine } from "@mlc-ai/web-llm";
1717

1818
import MlcIcon from "../icons/mlc.svg";
1919
import LoadingIcon from "../icons/three-dots.svg";

app/components/settings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import { ErrorBoundary } from "./error";
3434
import { InputRange } from "./input-range";
3535
import { useNavigate } from "react-router-dom";
3636
import { nanoid } from "nanoid";
37-
import { LogLevel } from "@neet-nestor/web-llm";
37+
import { LogLevel } from "@mlc-ai/web-llm";
3838
import { WebLLMContext } from "../context";
3939

4040
function EditPromptModal(props: { id: string; onClose: () => void }) {

app/store/chat.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@ import { RequestMessage, MultimodalContent, LLMApi } from "../client/api";
1515
import { estimateTokenLength } from "../utils/token";
1616
import { nanoid } from "nanoid";
1717
import { createPersistStore } from "../utils/store";
18-
import { WebLLMApi } from "../client/webllm";
19-
import {
20-
ChatCompletionFinishReason,
21-
CompletionUsage,
22-
} from "@neet-nestor/web-llm";
18+
import { ChatCompletionFinishReason, CompletionUsage } from "@mlc-ai/web-llm";
2319

2420
export type ChatMessage = RequestMessage & {
2521
date: string;

app/store/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { LogLevel } from "@neet-nestor/web-llm";
1+
import { LogLevel } from "@mlc-ai/web-llm";
22
import { ModelRecord } from "../client/api";
33
import {
44
DEFAULT_INPUT_TEMPLATE,

app/worker/service-worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ServiceWorkerMLCEngineHandler } from "@neet-nestor/web-llm";
1+
import { ServiceWorkerMLCEngineHandler } from "@mlc-ai/web-llm";
22
import { defaultCache } from "@serwist/next/worker";
33
import type { PrecacheEntry, SerwistGlobalConfig } from "serwist";
44
import { CacheFirst, ExpirationPlugin, Serwist } from "serwist";

app/worker/web-worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import log from "loglevel";
2-
import { WebWorkerMLCEngineHandler } from "@neet-nestor/web-llm";
2+
import { WebWorkerMLCEngineHandler } from "@mlc-ai/web-llm";
33

44
let handler: WebWorkerMLCEngineHandler;
55

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web-llm-chat",
3-
"version": "0.1",
3+
"version": "0.2",
44
"private": false,
55
"license": "Apache-2.0",
66
"scripts": {
@@ -17,7 +17,7 @@
1717
"dependencies": {
1818
"@fortaine/fetch-event-source": "^3.0.6",
1919
"@hello-pangea/dnd": "^16.5.0",
20-
"@neet-nestor/web-llm": "^0.2.58",
20+
"@mlc-ai/web-llm": "^0.2.48",
2121
"@serwist/next": "^9.0.2",
2222
"@svgr/webpack": "^6.5.1",
2323
"emoji-picker-react": "^4.9.2",

0 commit comments

Comments
 (0)