server : remove model.json endpoint (#5371)

This commit is contained in:
Alexey Parfenov authored and GitHub committed 2024-02-06 20:08:38 +02:00
1 parent 17c97fb062
commit 213d1439fa
3 files changed
+244 -218

No files matched your search

+2 -1
View File
@@ -195,7 +195,8 @@ export const llamaComplete = async (params, controller, callback) => {
// Get the model info from the server. This is useful for getting the context window and so on.
export const llamaModelInfo = async () => {
if (!generation_settings) {
generation_settings = await fetch("/model.json").then(r => r.json());
const props = await fetch("/props").then(r => r.json());
generation_settings = props.default_generation_settings;
}
return generation_settings;
}