alfianlosari/GPTEncoder
Swift BPE Encoder/Decoder for OpenAI GPT Models. A programmatic interface for tokenizing text for OpenAI ChatGPT API.
This is a tool for developers who are building applications that interact with OpenAI's GPT models. It helps you convert human-readable text into 'tokens' (numerical representations) that the models understand, and vice-versa. This is essential for managing the input and output for GPT API calls and understanding how your text is processed.
No commits in the last 6 months.
Use this if you are a Swift developer building an application for iOS, macOS, watchOS, tvOS, or Linux that needs to pre-process text for OpenAI GPT models or interpret their tokenized output.
Not ideal if you are an end-user looking for a ready-to-use application to tokenize text, or if you are working with a programming language other than Swift.
Stars
87
Forks
20
Language
Swift
License
MIT
Category
Last pushed
Apr 01, 2023
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/alfianlosari/GPTEncoder"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
OpenDive/OpenAIKit
Swift Package for OpenAI's API
mbabicz/SwiftAI
iOS app that features a chat powered by ChatGPT and DALL·E 2
MaxiDonkey/DelphiGenAI
The GenAI API wrapper for Delphi seamlessly integrates OpenAI’s latest models (gpt-5 serie),...
Renset/macai
All-in-one native macOS AI chat application for virtually any AI provider
alfianlosari/ChatGPTSwift
Access ChatGPT API using Swift