"""Official OpenAI endpoint, selectable server-owned medium routes; no secret copies.""" import json import re import time from pathlib import Path from src.adapters.llm.chat_completion import ChatCompletionProvider ENDPOINT='https://api.openai.com/v1/chat/completions' MODELS=('gpt-6.1-sol','gpt-6-astra','gpt-5.5') def read_token(path): try: raw=Path(path).read_text(encoding='utf-8-sig') candidates=set(re.findall(r'(?