Update app.py
Browse files
app.py
CHANGED
|
@@ -10,11 +10,7 @@ resp = client.chat.completions.create(
|
|
| 10 |
model="kwaipilot/kat-coder-pro:free",
|
| 11 |
messages=[
|
| 12 |
{"role": "user", "content": "What is the meaning of life?"}
|
| 13 |
-
]
|
| 14 |
-
extra_headers={
|
| 15 |
-
"HTTP-Referer": "https://example.com",
|
| 16 |
-
"X-Title": "MyApp"
|
| 17 |
-
}
|
| 18 |
)
|
| 19 |
|
| 20 |
print(resp.choices[0].message["content"])
|
|
|
|
| 10 |
model="kwaipilot/kat-coder-pro:free",
|
| 11 |
messages=[
|
| 12 |
{"role": "user", "content": "What is the meaning of life?"}
|
| 13 |
+
]
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
)
|
| 15 |
|
| 16 |
print(resp.choices[0].message["content"])
|