Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -418,6 +418,7 @@ def baseline_endpoint(req: OptimizeRequest) -> OptimizeResponse:
|
|
| 418 |
def chat_endpoint(req: ChatRequest):
|
| 419 |
api_key = os.environ.get("ANTHROPIC_API_KEY", "")
|
| 420 |
if not api_key:
|
|
|
|
| 421 |
raise HTTPException(500, "ANTHROPIC_API_KEY not configured")
|
| 422 |
client = Anthropic(api_key=api_key)
|
| 423 |
system = (
|
|
|
|
| 418 |
def chat_endpoint(req: ChatRequest):
|
| 419 |
api_key = os.environ.get("ANTHROPIC_API_KEY", "")
|
| 420 |
if not api_key:
|
| 421 |
+
print("THERE IS NO API KEY")
|
| 422 |
raise HTTPException(500, "ANTHROPIC_API_KEY not configured")
|
| 423 |
client = Anthropic(api_key=api_key)
|
| 424 |
system = (
|