(
body: TokenizeInputRequest,
llama_proxy: LlamaProxy = Depends(get_llama_proxy),
)
| 559 | tags=[extras_tag], |
| 560 | ) |
| 561 | async def tokenize( |
| 562 | body: TokenizeInputRequest, |
| 563 | llama_proxy: LlamaProxy = Depends(get_llama_proxy), |
| 564 | ) -> TokenizeInputResponse: |
| 565 | tokens = llama_proxy(body.model).tokenize(body.input.encode("utf-8"), special=True) |
| 566 | |
| 567 | return TokenizeInputResponse(tokens=tokens) |
| 568 | |
| 569 | |
| 570 | @router.post( |
nothing calls this directly
no test coverage detected
searching dependent graphs…