Navbar links to /api-reference
This commit is contained in:
commit
79e9641285
@ -3,9 +3,9 @@ title: How Jan Works
|
|||||||
---
|
---
|
||||||
|
|
||||||
- Local Filesystem
|
- Local Filesystem
|
||||||
Follow-on from Quickstart to show how things actually worked
|
- Follow-on from Quickstart to show how things actually worked
|
||||||
Write in a conversational style, show how things work under the hood
|
- Write in a conversational style, show how things work under the hood
|
||||||
Check how filesystem changed after each request
|
- Check how filesystem changed after each request
|
||||||
- Model loading into RAM/VRAM
|
- Model loading into RAM/VRAM
|
||||||
Explain how the .bin file is loaded via Llama.cpp
|
- Explain how the .bin file is loaded via Llama.cpp
|
||||||
Explain how it consumes RAM and VRAM, and refer to system monitor
|
- Explain how it consumes RAM and VRAM, and refer to system monitor
|
||||||
|
|||||||
@ -1,3 +1,7 @@
|
|||||||
---
|
---
|
||||||
title: Quickstart
|
title: Quickstart
|
||||||
---
|
---
|
||||||
|
|
||||||
|
- Write in the style of comics, explanation
|
||||||
|
- Similar to why's (poignant) Guide to Ruby
|
||||||
|
- https://en.wikipedia.org/wiki/Why%27s_(poignant)_Guide_to_Ruby
|
||||||
@ -103,12 +103,8 @@ const config = {
|
|||||||
{
|
{
|
||||||
specs: [
|
specs: [
|
||||||
{
|
{
|
||||||
spec: "openapi/OpenAPISpec.json",
|
spec: "openapi/jan.yaml", // can be local file, url, or parsed json object
|
||||||
route: "/api"
|
route: "/api-reference", // path where to render docs
|
||||||
},
|
|
||||||
{
|
|
||||||
spec: "openapi/OpenAIAPI.yaml", // can be local file, url, or parsed json object
|
|
||||||
route: "/api/openai",
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
theme: {
|
theme: {
|
||||||
@ -148,9 +144,8 @@ const config = {
|
|||||||
label: "Documentation",
|
label: "Documentation",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "docSidebar",
|
|
||||||
sidebarId: "apiSidebar",
|
|
||||||
position: "left",
|
position: "left",
|
||||||
|
to: "/api-reference",
|
||||||
label: "API Reference",
|
label: "API Reference",
|
||||||
},
|
},
|
||||||
// Navbar right
|
// Navbar right
|
||||||
|
|||||||
@ -1,74 +0,0 @@
|
|||||||
{
|
|
||||||
"openapi": "3.0.0",
|
|
||||||
"info": {
|
|
||||||
"description": "Jan.ai api reference documentation.",
|
|
||||||
"title": "Rest Endpoints",
|
|
||||||
"version": ""
|
|
||||||
},
|
|
||||||
"paths": {
|
|
||||||
"/api/rest/myquery": {
|
|
||||||
"get": {
|
|
||||||
"summary": "MyQuery",
|
|
||||||
"description": "***\nThe GraphQl query for this endpoint is:\n``` graphql\nquery MyQuery {\n collections {\n id\n name\n slug\n }\n}\n```",
|
|
||||||
"parameters": [
|
|
||||||
{
|
|
||||||
"description": "Your x-hasura-admin-secret will be used for authentication of the API request.",
|
|
||||||
"in": "header",
|
|
||||||
"name": "x-hasura-admin-secret",
|
|
||||||
"schema": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"responses": {
|
|
||||||
"200": {
|
|
||||||
"content": {
|
|
||||||
"application/json": {
|
|
||||||
"schema": {
|
|
||||||
"properties": {
|
|
||||||
"collections": {
|
|
||||||
"items": {
|
|
||||||
"description": "columns and relationships of \"collections\"",
|
|
||||||
"nullable": false,
|
|
||||||
"properties": {
|
|
||||||
"id": {
|
|
||||||
"$ref": "#/components/schemas/uuid!"
|
|
||||||
},
|
|
||||||
"name": {
|
|
||||||
"nullable": false,
|
|
||||||
"title": "String",
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"slug": {
|
|
||||||
"nullable": false,
|
|
||||||
"title": "String",
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"title": "collections",
|
|
||||||
"type": "object"
|
|
||||||
},
|
|
||||||
"nullable": false,
|
|
||||||
"type": "array"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"description": "Responses for GET /api/rest/myquery"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"components": {
|
|
||||||
"schemas": {
|
|
||||||
"uuid!": {
|
|
||||||
"nullable": false,
|
|
||||||
"pattern": "[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}",
|
|
||||||
"title": "uuid",
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
x
Reference in New Issue
Block a user