hmarr / openai-chat-tokensLinks
π¬ Estimate the number of tokens an OpenAI chat completion will use
β90Updated last year
Alternatives and similar repositories for openai-chat-tokens
Users that are interested in openai-chat-tokens are comparing it to the libraries listed below
Sorting:
- Fully typed & consistent chat APIs for OpenAI, Anthropic, Groq, and Azure's chat models for browser, edge, and node environments.β169Updated last year
- JavaScript implementation of LiteLLM.β129Updated 4 months ago
- Minimal and opinionated OpenAI client powered by fetch.β191Updated 6 months ago
- β152Updated last month
- Promptrix is a prompt layout engine for Large Language Models.β79Updated 7 months ago
- A client side vector search library that can embed, store, search, and cache vectors. Works on the browser and node. It outperforms OpenAβ¦β215Updated last year
- Vector Storage is a vector database that enables semantic similarity searches on text documents in the browser's local storage. It uses Oβ¦β227Updated 7 months ago
- OpenAI's tiktoken but with node bindingsβ105Updated last year
- β¨ TypeAI: An AI Engineering Framework for TypeScriptβ163Updated last year
- A Markdown-like syntax for writing prompts. Includes an in-editor playground.β123Updated last year
- β76Updated last year
- Turn a stream of token into a parsable JSON object as soon as possible. Enable Streaming UI for AI app based on LLM.β120Updated last year
- hnswlib-node provides Node.js bindings for Hnswlibβ115Updated last week
- Isomorphic JavaScript/TypeScript Tokenizer for GPT-3 and Codex Models by OpenAI.β171Updated 2 years ago
- Calculate the token consumption and amount of openai gpt messageβ116Updated 5 months ago
- β¦ The intuitive LLM frameworkβ112Updated 5 months ago
- The fastest JavaScript BPE Tokenizer Encoder Decoder for OpenAI's GPT models (o1, o3, o4, gpt-4o, gpt-4, etc.). Port of OpenAI's tiktokenβ¦β589Updated last month
- π€ A minimal viable logger for Prompt/LLM Engineering. Use your IDE as Logging UI - a fast, simple, extensible, zero dependency Node.js l β¦β137Updated last year
- β77Updated this week
- Tools for working with OpenAI streams in Node.js and TypeScript.β292Updated 2 years ago
- β252Updated 3 months ago
- Create state-machine-powered LLM agents using XStateβ297Updated 2 months ago
- A simple and declarative way to control LLMsβ217Updated 2 years ago
- The Typescript-first prompt engineering toolkit for working with chat based LLMs.β109Updated 2 years ago
- Checks Alexa's top 1M websites for the presence of OpenAI's new .well-known/ai-plugin.json filesβ176Updated 2 years ago
- A test suite comparing Node.js BPE tokenizers for use with AI models.β31Updated last year
- β¨ Make your LLM prompts executable and version controlled. β¨β76Updated 2 years ago
- gpt + aria = ability to read browser contentsβ70Updated 2 years ago
- TypeScript generator for llama.cpp Grammar directly from TypeScript interfacesβ137Updated last year
- Framework to evaluate LLM generated ReactJS code.β58Updated last year