Update Khoj server to run on non standard port, 42110 instead of 8000

Resolves #295
This commit is contained in:
Debanjum Singh Solanky
2023-07-10 20:16:25 -07:00
parent bfd516c1a4
commit f664a74e77
9 changed files with 23 additions and 23 deletions

View File

@@ -62,7 +62,7 @@
;; Khoj Static Configuration
;; -------------------------
(defcustom khoj-server-url "http://localhost:8000"
(defcustom khoj-server-url "http://localhost:42110"
"Location of Khoj API server."
:group 'khoj
:type 'string)

View File

@@ -75,7 +75,7 @@ export class KhojSearchModal extends SuggestModal<SearchResult> {
this.rerank = true
// Set input element to contents of active markdown file
// truncate to first 8,000 characters to avoid hitting query size limits
this.inputEl.value = await this.app.vault.read(file).then(file_str => file_str.slice(0, 8000));
this.inputEl.value = await this.app.vault.read(file).then(file_str => file_str.slice(0, 42110));
// Trigger search to get and render similar notes from khoj backend
this.inputEl.dispatchEvent(new Event('input'));
this.rerank = false

View File

@@ -11,7 +11,7 @@ export interface KhojSetting {
export const DEFAULT_SETTINGS: KhojSetting = {
resultsCount: 6,
khojUrl: 'http://127.0.0.1:8000',
khojUrl: 'http://127.0.0.1:42110',
connectedToBackend: false,
autoConfigure: true,
openaiApiKey: '',