mirror of
https://github.com/karpathy/nanochat.git
synced 2025-12-06 12:22:18 +00:00
few more explicit UTF-8 encodings
This commit is contained in:
parent
c72b8b2309
commit
e22fc6f2fa
|
|
@ -37,7 +37,7 @@ from concurrent.futures import ThreadPoolExecutor, as_completed
|
|||
|
||||
from nanochat.common import get_base_dir
|
||||
|
||||
api_key = open("openroutertoken.txt").read().strip()
|
||||
api_key = open("openroutertoken.txt", 'r', encoding='utf-8').read().strip()
|
||||
|
||||
url = "https://openrouter.ai/api/v1/chat/completions"
|
||||
headers = {
|
||||
|
|
@ -45,7 +45,7 @@ headers = {
|
|||
"Content-Type": "application/json"
|
||||
}
|
||||
|
||||
readme = open("README.md").read().strip()
|
||||
readme = open("README.md", 'r', encoding='utf-8').read().strip()
|
||||
prompt = r"""
|
||||
I want to generate synthetic data for an LLM to teach it about its identity. Here is the identity I want:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user