Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,8 +2,10 @@ import gradio as gr
|
|
| 2 |
import os
|
| 3 |
from anthropic import Anthropic
|
| 4 |
|
| 5 |
-
client = Anthropic(
|
| 6 |
-
|
|
|
|
|
|
|
| 7 |
API_KNOWLEDGE_BASE = """
|
| 8 |
You are an expert API architect and indie hacker advisor. You know every major API deeply:
|
| 9 |
|
|
|
|
| 2 |
import os
|
| 3 |
from anthropic import Anthropic
|
| 4 |
|
| 5 |
+
client = Anthropic(
|
| 6 |
+
api_key=os.environ.get("ANTHROPIC_API_KEY", ""),
|
| 7 |
+
base_url="https://api.avalai.ir"
|
| 8 |
+
)
|
| 9 |
API_KNOWLEDGE_BASE = """
|
| 10 |
You are an expert API architect and indie hacker advisor. You know every major API deeply:
|
| 11 |
|