Fix API key name back to anthropic_key
Browse filesCo-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
app.py
CHANGED
|
@@ -550,9 +550,9 @@ STAGE_FOCUS = {
|
|
| 550 |
|
| 551 |
def get_client():
|
| 552 |
"""Initialize Anthropic client"""
|
| 553 |
-
api_key = os.environ.get("
|
| 554 |
if not api_key:
|
| 555 |
-
raise ValueError("
|
| 556 |
return anthropic.Anthropic(api_key=api_key)
|
| 557 |
|
| 558 |
def call_claude(system_prompt, messages, context=""):
|
|
|
|
| 550 |
|
| 551 |
def get_client():
|
| 552 |
"""Initialize Anthropic client"""
|
| 553 |
+
api_key = os.environ.get("anthropic_key")
|
| 554 |
if not api_key:
|
| 555 |
+
raise ValueError("anthropic_key environment variable not set. Add it in Space Settings > Repository secrets.")
|
| 556 |
return anthropic.Anthropic(api_key=api_key)
|
| 557 |
|
| 558 |
def call_claude(system_prompt, messages, context=""):
|