Skip to content

Commit ed85870

Browse files
committed
Fix formatting issues for biome, fix missing import
1 parent b7e449a commit ed85870

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

src/pages/aiAssistant/assistant.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import { createReactAgent } from "@langchain/langgraph/prebuilt";
2-
import alert from "dialogs/alert";
32
import { ChatOpenAI } from "@langchain/openai";
3+
import alert from "dialogs/alert";
44
import confirm from "dialogs/confirm";
55
import select from "dialogs/select";
66
import Ref from "html-tag-js/ref";
77
import EditorFile from "lib/editorFile";
8-
import { createSessionManager } from "./agent/sessionManager";
8+
import settings from "lib/settings";
99
import styles from "./assistant.m.scss";
10+
import { createSessionManager } from "./agent/sessionManager";
1011
import { CordovaSqliteSaver } from "./memory";
1112
import { createChatStore } from "./state/chatStore";
1213
import { SYSTEM_PROMPT } from "./system_prompt";
@@ -54,7 +55,7 @@ export default function openAIAssistantPage() {
5455
apiKey: settings.value.aiApiKey,
5556
streaming: true,
5657
configuration: {
57-
baseURL: settings.values.aiBaseUrl,
58+
baseURL: settings.value.aiBaseUrl,
5859
},
5960
});
6061

src/settings/aiassistantSettings.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ export default function aiassistantSettings() {
2020
info: "Enter your AI model here.",
2121
},
2222
{
23-
key: "aiBaseUrl",
24-
text: "API Base URL",
25-
value: values.aiBaseUrl,
26-
prompt: "API Base URL",
27-
info: "Enter base url of your api here.",
28-
}
23+
key: "aiBaseUrl",
24+
text: "API Base URL",
25+
value: values.aiBaseUrl,
26+
prompt: "API Base URL",
27+
info: "Enter base url of your api here.",
28+
},
2929
];
3030

3131
return settingsPage(title, items, callback);

0 commit comments

Comments
 (0)