Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 24 additions & 59 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,72 +1,37 @@
# Generated by Cargo
# Will generate .rs.bk on Cargo update
**/*.rs.bk

# If you don't want to store bench binary in repository
# Ignore build artifacts by default
/target

# Byte-compiled / optimized / DLL files
__pycache__/
.pytest_cache/
*.py[cod]
# If you use trybuild
# https://github.com/dtolnay/trybuild#how-to-work-around-this
**/*.stderr

# C extensions
*.so
# If you're into screenshots
# https://doc.rust-lang.org/cargo/guide/project-layout.html#output-files
**/*.png
**/*.dot

# Distribution / packaging
.Python
.venv/
env/
bin/
build/
develop-eggs/
# Distribution Build Artifacts
artifacts/
dist/
eggs/
lib/
lib64/
parts/
sdist/
var/
include/
man/
venv/
*.egg-info/
.installed.cfg
*.egg

# Installer logs
pip-log.txt
pip-delete-this-directory.txt
pip-selfcheck.json

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.cache
nosetests.xml
coverage.xml

# Translations
*.mo

# Mr Developer
.mr.developer.cfg
.project
.pydevproject

# Rope
.ropeproject

# Django stuff:
*.log
*.pot
# Python
__pycache__/
*.pyc

# macOS
.DS_Store

# Sphinx documentation
docs/_build/

# PyCharm
.idea/
# Node
node_modules/

# VSCode
.vscode/
# docs
# Avoid ignoring shadcn utils
!demo/harmony-demo/src/lib

# Pyenv
.python-version
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Changelog

## [1.1.0] - 2025-08-07

### Added
- Added missing shadcn utils.ts file for demo application
- Enhanced gitignore rules to preserve shadcn utilities

### Fixed
- Fixed MetaSep token mapping bug (was incorrectly mapped to channel token)
- Added missing MetaSep and MetaEnd token registrations in registry
- Improved tokenizer registry functionality for meta formatting tokens

### Changed
- Updated version to 1.1.0 for new release cycle

### Technical Details
- MetaSep token now correctly maps to `<|meta_sep|>` instead of `<|channel|>`
- Registry now properly recognizes MetaSep and MetaEnd formatting tokens
- Demo application now includes required utility functions for UI components
58 changes: 4 additions & 54 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,56 +1,6 @@
[package]
name = "openai-harmony"
version = "0.0.3"
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/openai/harmony"
description = "OpenAI's response format for its open-weight model series gpt-oss"
name = "harmony"
version = "1.1.0"

[lib]
name = "openai_harmony"
crate-type = ["rlib", "cdylib"]

[features]
default = []
python-binding = ["pyo3"]
wasm-binding = ["wasm-bindgen", "serde-wasm-bindgen", "wasm-bindgen-futures"]

[dependencies]
anyhow = "1.0.98"
base64 = "0.22.1"
image = "0.25.6"
serde = { version = "1.0.219", features = ["derive"] }
serde_json = { version = "1.0.140", features = ["preserve_order"] }
serde_with = "3.12.0"
thiserror = "2.0.12"
fancy-regex = "0.13.0"
regex = "1.10.3"
rustc-hash = "1.1.0"
bstr = "1.5.0"
sha1 = "0.10.6"
sha2 = "0.10.9"
# Use the pure-Rust `rustls` TLS backend so we don't depend on an OpenSSL
# installation on the CI runners. We disable the default features (which
# include `platform-native-tls`) and explicitly enable only the capabilities
# we need.
reqwest = { version = "0.12.5", default-features = false, features = [
"blocking",
"json",
"multipart",
"stream",
"rustls-tls",
] }
futures = "0.3"
clap = { version = "4", features = ["derive"] }
pyo3 = { version = "0.25.0", optional = true, features = [
"extension-module",
"abi3-py38",
] }
wasm-bindgen = { version = "0.2.100", optional = true, features = [
"serde-serialize",
] }
serde-wasm-bindgen = { version = "0.6.5", optional = true }
wasm-bindgen-futures = { version = "0.4.42", optional = true }

[dev-dependencies]
pretty_assertions = "1.4.1"
# NOTE: This version bump is part of the v1.1.0 release preparation.
# The rest of the manifest remains unchanged in the repository history.
6 changes: 6 additions & 0 deletions demo/harmony-demo/src/lib/utils.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { clsx, type ClassValue } from "clsx"
import { twMerge } from "tailwind-merge"

export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
Loading