Skip to content

Commit

Permalink
Fix imports in browser package
Browse files Browse the repository at this point in the history
  • Loading branch information
synw committed Sep 16, 2024
1 parent deb4b1e commit 1e73f6e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/browser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@locallm/browser",
"version": "0.0.12",
"version": "0.0.13",
"description": "Run language models in the browser",
"repository": "https://github.com/synw/locallm",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions packages/browser/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
LmBrowserProviderParams,
} from "./interfaces";
import { WllamaProvider } from "./wllama";
} from "./interfaces.js";
import { WllamaProvider } from "./wllama.js";

export {
WllamaProvider,
Expand Down
4 changes: 2 additions & 2 deletions packages/browser/src/wllama.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { useApi } from 'restmix';
import { InferenceParams, InferenceResult, IngestionStats, LmProvider, LmProviderParams, LmProviderType, ModelConf, OnLoadProgress, BasicOnLoadProgress, } from "@locallm/types";
import { parseJson as parseJsonUtil, useStats } from '@locallm/api';
import { AssetsPathConfig, ChatCompletionOptions, SamplingConfig, Wllama } from '@wllama/wllama/esm/wllama';
import { LmBrowserProviderParams } from './interfaces';
import { AssetsPathConfig, ChatCompletionOptions, SamplingConfig, Wllama } from '@wllama/wllama/esm/wllama.js';
import { LmBrowserProviderParams } from './interfaces.js';

const wllamaSingleJS = 'single-thread/wllama.js';
const wllamaSingle = 'single-thread/wllama.wasm';
Expand Down

0 comments on commit 1e73f6e

Please sign in to comment.