Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Anything Llm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
Mintplex Labs
Anything Llm
Commits
4af9b9d5
Commit
4af9b9d5
authored
1 year ago
by
timothycarambat
Browse files
Options
Downloads
Patches
Plain Diff
fix: relative/absolute url patch for vector count
connect #516
parent
dfd03e33
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
frontend/src/models/system.js
+2
-2
2 additions, 2 deletions
frontend/src/models/system.js
frontend/src/utils/constants.js
+5
-0
5 additions, 0 deletions
frontend/src/utils/constants.js
with
7 additions
and
2 deletions
frontend/src/models/system.js
+
2
−
2
View file @
4af9b9d5
import
{
API_BASE
,
AUTH_TIMESTAMP
}
from
"
@/utils/constants
"
;
import
{
API_BASE
,
AUTH_TIMESTAMP
,
fullApiUrl
}
from
"
@/utils/constants
"
;
import
{
baseHeaders
}
from
"
@/utils/request
"
;
import
{
baseHeaders
}
from
"
@/utils/request
"
;
import
DataConnector
from
"
./dataConnector
"
;
import
DataConnector
from
"
./dataConnector
"
;
...
@@ -10,7 +10,7 @@ const System = {
...
@@ -10,7 +10,7 @@ const System = {
.
catch
(()
=>
false
);
.
catch
(()
=>
false
);
},
},
totalIndexes
:
async
function
(
slug
=
null
)
{
totalIndexes
:
async
function
(
slug
=
null
)
{
const
url
=
new
URL
(
`
${
API_BASE
}
/system/system-vectors`
);
const
url
=
new
URL
(
`
${
fullApiUrl
()
}
/system/system-vectors`
);
if
(
!!
slug
)
url
.
searchParams
.
append
(
"
slug
"
,
encodeURIComponent
(
slug
));
if
(
!!
slug
)
url
.
searchParams
.
append
(
"
slug
"
,
encodeURIComponent
(
slug
));
return
await
fetch
(
url
.
toString
(),
{
return
await
fetch
(
url
.
toString
(),
{
headers
:
baseHeaders
(),
headers
:
baseHeaders
(),
...
...
This diff is collapsed.
Click to expand it.
frontend/src/utils/constants.js
+
5
−
0
View file @
4af9b9d5
...
@@ -7,3 +7,8 @@ export const COMPLETE_QUESTIONNAIRE = "anythingllm_completed_questionnaire";
...
@@ -7,3 +7,8 @@ export const COMPLETE_QUESTIONNAIRE = "anythingllm_completed_questionnaire";
export
const
USER_BACKGROUND_COLOR
=
"
bg-historical-msg-user
"
;
export
const
USER_BACKGROUND_COLOR
=
"
bg-historical-msg-user
"
;
export
const
AI_BACKGROUND_COLOR
=
"
bg-historical-msg-system
"
;
export
const
AI_BACKGROUND_COLOR
=
"
bg-historical-msg-system
"
;
export
function
fullApiUrl
()
{
if
(
API_BASE
!==
"
/api
"
)
return
API_BASE
;
return
`
${
window
.
location
.
origin
}
/api`
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment