model inference settings
This commit is contained in:
@@ -49,7 +49,7 @@ router.get('/props', async (req, res) => {
|
||||
if (!response.ok) throw new Error(`llama-server error: ${response.status}`);
|
||||
const data = await response.json();
|
||||
res.json({
|
||||
contextWindow: data.n_ctx,
|
||||
contextWindow: data.default_generation_settings?.n_ctx ?? null,
|
||||
modelAlias: data.model_alias,
|
||||
});
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user