[PR #7412] [CLOSED] Implement tokenize and de-tokenize endpoints #74706

Closed
opened 2026-05-05 06:57:46 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/7412
Author: @jrmo14
Created: 10/30/2024
Status: Closed

Base: mainHead: tokenizer-endpoints


📝 Commits (1)

  • b3ecf87 Implement tokenize and de-tokenize endpoints

📊 Changes

3 files changed (+111 additions, -0 deletions)

View changed files

📝 api/client.go (+16 -0)
📝 api/types.go (+42 -0)
📝 server/routes.go (+53 -0)

📄 Description

Implement endpoints to tokenize (/api/tokenize) and detokenize (/api/detokenize) text

Closes #3582


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/7412 **Author:** [@jrmo14](https://github.com/jrmo14) **Created:** 10/30/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `tokenizer-endpoints` --- ### 📝 Commits (1) - [`b3ecf87`](https://github.com/ollama/ollama/commit/b3ecf87b3bcf216bfd343bbc9dd1eac57b1cc413) Implement tokenize and de-tokenize endpoints ### 📊 Changes **3 files changed** (+111 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `api/client.go` (+16 -0) 📝 `api/types.go` (+42 -0) 📝 `server/routes.go` (+53 -0) </details> ### 📄 Description Implement endpoints to tokenize (`/api/tokenize`) and detokenize (`/api/detokenize`) text Closes #3582 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-05 06:57:46 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#74706