Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encode/Decode request body #39

Open
AlpinDale opened this issue Mar 1, 2024 · 1 comment
Open

Encode/Decode request body #39

AlpinDale opened this issue Mar 1, 2024 · 1 comment

Comments

@AlpinDale
Copy link

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.

@lmg-anon
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants