This commit is contained in:
2026-08-24 08:11:59 -07:00
commit 53df0eed10
275 changed files with 133056 additions and 0 deletions
@@ -0,0 +1,14 @@
from typing import Any
ENDPOINT = "/v1/chat/completions"
def build_request(prompt: str) -> dict[str, Any]:
return {
"model": "gpt-5",
"messages": [{"role": "user", "content": prompt}],
}
def extract_text(response: dict[str, Any]) -> str:
return str(response["choices"][0]["message"]["content"])