Skip to content

Commit

Permalink
change import path
Browse files Browse the repository at this point in the history
Signed-off-by: cbh778899 <[email protected]>
  • Loading branch information
cbh778899 committed Oct 14, 2024
1 parent 5e3ffc3 commit ba43f30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/utils/start_loader.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getPlatformSettings } from "./general_settings";
import { instance } from "./idb";
import { loadModel } from "./workers/worker";
import { loadModel } from "./workers/wllama-worker";

export default async function loader() {
localStorage.setItem('not-first-time', '1');
Expand Down
10 changes: 3 additions & 7 deletions src/utils/workers/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getModelSettings, getPlatformSettings } from "../general_settings";
import { chatCompletions as WllamaCompletions, abortCompletion as WllamaAbort } from "./worker";
import { chatCompletions as WllamaCompletions, abortCompletion as WllamaAbort, setClient as WllamaSetClient } from "./wllama-worker";
import { chatCompletions as AwsCompletions, abortCompletion as AwsAbort, setClient as AwsSetClient, formator as AwsFormator } from "./aws-worker"
import { chatCompletions as OpenaiCompletions, abortCompletion as OpenaiAbort, setClient as OpenAISetClient } from "./openai-worker";

Expand Down Expand Up @@ -45,13 +45,9 @@ export function getCompletionFunctions(platform = null) {
return {
completions: WllamaCompletions,
abort: WllamaAbort,
platform: "Wllama"
platform: "Wllama",
initClient: WllamaSetClient
}
// default:
// return {
// completions: WllamaCompletions, abort: WllamaAbort,
// platform: "Wllama"
// }
}

}

0 comments on commit ba43f30

Please sign in to comment.