Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions LLM_CALL.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def get_openai_token(p_token_url, p_client_id, p_client_secret, p_scope, **kwarg
key = json.load(f)
if time.time()<key['expire_at']:
return key["access_token"]
except:
except (FileNotFoundError, json.JSONDecodeError, KeyError):
pass

response = requests.post(
Expand All @@ -253,7 +253,7 @@ def get_claude_token():
key = json.load(f)
if time.time()<key['expire_at']:
return key["access_token"]
except:
except (FileNotFoundError, json.JSONDecodeError, KeyError):
pass

client_id = os.getenv("CLIENT_ID")
Expand Down