-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(Model): janhq#1028 made model.json optional (janhq#1314)
* feat(Model): janhq#1028 made model.json optional Signed-off-by: James <[email protected]> --------- Signed-off-by: James <[email protected]> Co-authored-by: James <[email protected]>
- Loading branch information
Showing
9 changed files
with
200 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { FileManagerRoute } from '../../../api' | ||
import { HttpServer } from '../../index' | ||
|
||
export const fsRouter = async (app: HttpServer) => { | ||
app.post(`/app/${FileManagerRoute.syncFile}`, async (request: any, reply: any) => {}) | ||
|
||
app.post(`/app/${FileManagerRoute.getUserSpace}`, async (request: any, reply: any) => {}) | ||
|
||
app.post(`/app/${FileManagerRoute.getResourcePath}`, async (request: any, reply: any) => {}) | ||
|
||
app.post(`/app/${FileManagerRoute.fileStat}`, async (request: any, reply: any) => {}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export type FileStat = { | ||
isDirectory: boolean | ||
size: number | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"object": "model", | ||
"version": 1, | ||
"format": "gguf", | ||
"source_url": "N/A", | ||
"id": "N/A", | ||
"name": "N/A", | ||
"created": 0, | ||
"description": "User self import model", | ||
"settings": { | ||
"ctx_len": 4096, | ||
"ngl": 0, | ||
"embedding": false, | ||
"n_parallel": 0, | ||
"cpu_threads": 0, | ||
"prompt_template": "" | ||
}, | ||
"parameters": { | ||
"temperature": 0, | ||
"token_limit": 0, | ||
"top_k": 0, | ||
"top_p": 0, | ||
"stream": false, | ||
"max_tokens": 4096, | ||
"stop": [], | ||
"frequency_penalty": 0, | ||
"presence_penalty": 0 | ||
}, | ||
"metadata": { | ||
"author": "User", | ||
"tags": [], | ||
"size": 0 | ||
}, | ||
"engine": "nitro" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters