Spaces:
Runtime error
Runtime error
feat: included custom helicone params
Browse files- chat_settings.py +3 -0
- requirements.txt +1 -2
chat_settings.py
CHANGED
|
@@ -31,6 +31,9 @@ def get_chatgpt_response(messages, model):
|
|
| 31 |
temperature=0,
|
| 32 |
headers={
|
| 33 |
"Helicone-Auth": f"Bearer {HELICONE_API_KEY}",
|
|
|
|
|
|
|
|
|
|
| 34 |
}
|
| 35 |
)
|
| 36 |
|
|
|
|
| 31 |
temperature=0,
|
| 32 |
headers={
|
| 33 |
"Helicone-Auth": f"Bearer {HELICONE_API_KEY}",
|
| 34 |
+
"Helicone-Cache-Enabled": "true",
|
| 35 |
+
"Helicone-Property-App": "HuggingFaceProPilot",
|
| 36 |
+
"Helicone-Property-DataSource": "FunctionsCallingDemo",
|
| 37 |
}
|
| 38 |
)
|
| 39 |
|
requirements.txt
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
streamlit
|
| 2 |
streamlit_chat
|
| 3 |
openai
|
| 4 |
-
python-dotenv
|
| 5 |
-
helicone
|
|
|
|
| 1 |
streamlit
|
| 2 |
streamlit_chat
|
| 3 |
openai
|
| 4 |
+
python-dotenv
|
|
|