Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Fix data2cypher API url config. #87

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ui/.env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VITE_UNSTRUCTURED_IMPORT_BACKEND_ENDPOINT=http://localhost:7860/
VITE_UNSTRUCTURED_IMPORT_BACKEND_ENDPOINT=http://localhost:7860/data2cypher
VITE_KG_CHAT_BACKEND_ENDPOINT=ws://localhost:7860/text2text
VITE_HAS_API_KEY_ENDPOINT=http://localhost:7860/hasapikey
VITE_KG_CHAT_SAMPLE_QUESTIONS_ENDPOINT=http://localhost:7860/questionProposalsForCurrentDb
Expand Down
2 changes: 1 addition & 1 deletion ui/src/unstructured-import/utils/fetch-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const runImport = async (input: string, schema?: string, apiKey?: string)
body.api_key = apiKey;
}
const response = await fetch(
`${import.meta.env.VITE_UNSTRUCTURED_IMPORT_BACKEND_ENDPOINT}/data2cypher`,
`${import.meta.env.VITE_UNSTRUCTURED_IMPORT_BACKEND_ENDPOINT ?? 'http://localhost:7860/data2cypher'}`,
{
method: "POST",
headers: {
Expand Down