mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-03-14 15:57:27 +00:00
API: Don't include draft directory in response
The draft directory should be returned for a draft model request (TBD). Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
2
model.py
2
model.py
@@ -82,7 +82,7 @@ class ModelContainer:
|
||||
self.config.max_input_len = chunk_size
|
||||
self.config.max_attn_size = chunk_size ** 2
|
||||
|
||||
draft_config = kwargs.get("draft") or {}
|
||||
draft_config = kwargs.get("draft") or {}
|
||||
draft_model_name = draft_config.get("draft_model_name")
|
||||
enable_draft = bool(draft_config) and draft_model_name is not None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user