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
7b42a67a
Commit
7b42a67a
authored
9 months ago
by
timothycarambat
Browse files
Options
Downloads
Patches
Plain Diff
docs: update requirement for /raw-text endpoint
resolves #1893
parent
fc27685e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
server/endpoints/api/document/index.js
+1
-0
1 addition, 0 deletions
server/endpoints/api/document/index.js
server/swagger/openapi.json
+1
-20
1 addition, 20 deletions
server/swagger/openapi.json
with
2 additions
and
20 deletions
server/endpoints/api/document/index.js
+
1
−
0
View file @
7b42a67a
...
...
@@ -237,6 +237,7 @@ function apiDocumentEndpoints(app) {
example: {
"textContent": "This is the raw text that will be saved as a document in AnythingLLM.",
"metadata": {
"title": "This key is required. See in /server/endpoints/api/document/index.js:287"
keyOne: "valueOne",
keyTwo: "valueTwo",
etc: "etc"
...
...
This diff is collapsed.
Click to expand it.
server/swagger/openapi.json
+
1
−
20
View file @
7b42a67a
...
...
@@ -1012,26 +1012,7 @@
"description"
:
"Internal Server Error"
}
},
"requestBody"
:
{
"description"
:
"Text content and metadata of the file to be saved to the system. Use metadata-schema endpoint to get the possible metadata keys"
,
"required"
:
true
,
"type"
:
"object"
,
"content"
:
{
"application/json"
:
{
"schema"
:
{
"type"
:
"object"
,
"example"
:
{
"textContent"
:
"This is the raw text that will be saved as a document in AnythingLLM."
,
"metadata"
:
{
"keyOne"
:
"valueOne"
,
"keyTwo"
:
"valueTwo"
,
"etc"
:
"etc"
}
}
}
}
}
}
"requestBody"
:
{}
}
},
"/v1/documents"
:
{
...
...
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