返回 DeepSeek-Reasonix
auth.py
1 def bearer_token(headers):
2 value = headers.get("Authorization")
3 if value is None or not value.startswith("Bearer "):
4 return None
5 return value[len("Bearer ") :]
6
6 lines PYTHON