Corin1998 commited on
Commit
86c3008
·
verified ·
1 Parent(s): 3c20662

Update core/openai_client.py

Browse files
Files changed (1) hide show
  1. core/openai_client.py +1 -2
core/openai_client.py CHANGED
@@ -8,7 +8,6 @@ TEXT_MODEL = os.environ.get("OPENAI_TEXT_MODEL", "gpt-4o-mini")
8
  def get_client() -> OpenAI:
9
  key = os.environ.get("OPENAI_API_KEY")
10
  if not key:
11
- # UIに素直に出す
12
  raise gr.Error("OPENAI_API_KEY が未設定です。Spaces → Settings → Variables and secrets で追加してください。")
13
- # proxies を渡さない(httpx==0.27.2 で安定)
14
  return OpenAI(api_key=key, timeout=60)
 
8
  def get_client() -> OpenAI:
9
  key = os.environ.get("OPENAI_API_KEY")
10
  if not key:
 
11
  raise gr.Error("OPENAI_API_KEY が未設定です。Spaces → Settings → Variables and secrets で追加してください。")
12
+ # proxies を渡さない(httpx==0.27.2 と組み合わせで安定)
13
  return OpenAI(api_key=key, timeout=60)