mirror of
https://github.com/karpathy/nanochat.git
synced 2026-02-08 03:29:54 +00:00
This change adds OpenAI-compatible API endpoints to the nanochat web server, enabling seamless integration with existing OpenAI SDK clients and tools while maintaining backward compatibility with the original chat UI. - Adds /v1/chat/completions route - supporting both streaming and non-streaming mode - Adds /v1/models route - returns single model, "nanochat" |
||
|---|---|---|
| .. | ||
| base_eval.py | ||
| base_loss.py | ||
| base_train.py | ||
| chat_cli.py | ||
| chat_eval.py | ||
| chat_rl.py | ||
| chat_sft.py | ||
| chat_web.py | ||
| mid_train.py | ||
| tok_eval.py | ||
| tok_train.py | ||