mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-03 21:29:08 +00:00
Update Khoj server to run on non standard port, 42110 instead of 8000
Resolves #295
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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: '',
|
||||
|
||||
Reference in New Issue
Block a user