ssboost commited on
Commit
bfe6c7d
·
verified ·
1 Parent(s): e84d121

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -10,9 +10,14 @@ def get_api_endpoint():
10
  raise ValueError("API_ENDPOINT 환경변수가 설정되지 않았습니다.")
11
  return endpoint
12
 
13
- # 클라이언트 초기화 (로그에 정보 노출하지 않음)
14
  try:
15
  client = Client(get_api_endpoint())
 
 
 
 
 
16
  except Exception as e:
17
  print("클라이언트 초기화 실패. 환경변수를 확인하세요.")
18
  client = None
 
10
  raise ValueError("API_ENDPOINT 환경변수가 설정되지 않았습니다.")
11
  return endpoint
12
 
13
+ # 클라이언트 초기화 및 API 목록 확인 (로그에 정보 노출하지 않음)
14
  try:
15
  client = Client(get_api_endpoint())
16
+ # 사용 가능한 API 목록 확인
17
+ api_info = client.view_api()
18
+ print("사용 가능한 API 목록:")
19
+ for endpoint in api_info['named_endpoints']:
20
+ print(f" - {endpoint}")
21
  except Exception as e:
22
  print("클라이언트 초기화 실패. 환경변수를 확인하세요.")
23
  client = None