Encode/Decode request body
AlpinDale opened this issue · comments
Hi! I've been trying to use mikupad with my custom OpenAI API server, but I don't have a /v1/token/encode
endpoint. I was adding it, but unsure what the request body looks like from mikupad's side, and what sort of response it expects.
The /v1/token/encode
endpoint belongs to the tabby API. The request is a JSON object with a single text
field, and the response is a list of tokens. You can also add the /v1/internal/token-count
endpoint, which returns a JSON object with a length
field indicating the token count.