fix chat templates (#205)

This commit is contained in:
Awni Hannun
2025-06-01 08:50:04 -07:00
committed by GitHub
parent d1d0771e3f
commit 1db99d41a2
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -653,7 +653,7 @@ class APIHandler(BaseHTTPRequestHandler):
):
segment = gen_response.text
text += segment
logging.debug(text)
logging.debug(segment)
token = gen_response.token
logprobs = gen_response.logprobs
tokens.append(token)
+1
View File
@@ -112,6 +112,7 @@ def get_model_path(path_or_hf_repo: str, revision: Optional[str] = None) -> Path
"tiktoken.model",
"*.txt",
"*.jsonl",
"*.jinja",
],
)
)