SamiKoen commited on
Commit ·
cc9cc9e
1
Parent(s): 5c67190
Model adi gpt-5.5 olarak duzeltildi (chat-latest suffix'i kaldirildi); smart_warehouse.py'den temperature/max_tokens kaldirildi
Browse files- app.py +1 -1
- smart_warehouse.py +3 -4
- smart_warehouse_with_price.py +1 -1
app.py
CHANGED
|
@@ -763,7 +763,7 @@ def chatbot_fn(user_message, history, image=None):
|
|
| 763 |
messages = system_messages + history + [{"role": "user", "content": user_message}]
|
| 764 |
|
| 765 |
payload = {
|
| 766 |
-
"model": "gpt-5.5
|
| 767 |
"messages": messages,
|
| 768 |
"stream": True,
|
| 769 |
"top_p": 1,
|
|
|
|
| 763 |
messages = system_messages + history + [{"role": "user", "content": user_message}]
|
| 764 |
|
| 765 |
payload = {
|
| 766 |
+
"model": "gpt-5.5",
|
| 767 |
"messages": messages,
|
| 768 |
"stream": True,
|
| 769 |
"top_p": 1,
|
smart_warehouse.py
CHANGED
|
@@ -121,14 +121,13 @@ Examples:
|
|
| 121 |
"Authorization": f"Bearer {OPENAI_API_KEY}"
|
| 122 |
}
|
| 123 |
|
|
|
|
| 124 |
payload = {
|
| 125 |
-
"model": "gpt-5.5
|
| 126 |
"messages": [
|
| 127 |
{"role": "system", "content": "You are a product matcher. Find ALL matching products. Return only index numbers."},
|
| 128 |
{"role": "user", "content": smart_prompt}
|
| 129 |
-
]
|
| 130 |
-
"temperature": 0,
|
| 131 |
-
"max_tokens": 100
|
| 132 |
}
|
| 133 |
|
| 134 |
try:
|
|
|
|
| 121 |
"Authorization": f"Bearer {OPENAI_API_KEY}"
|
| 122 |
}
|
| 123 |
|
| 124 |
+
# GPT-5.5 modeli temperature ve max_tokens desteklemiyor
|
| 125 |
payload = {
|
| 126 |
+
"model": "gpt-5.5",
|
| 127 |
"messages": [
|
| 128 |
{"role": "system", "content": "You are a product matcher. Find ALL matching products. Return only index numbers."},
|
| 129 |
{"role": "user", "content": smart_prompt}
|
| 130 |
+
]
|
|
|
|
|
|
|
| 131 |
}
|
| 132 |
|
| 133 |
try:
|
smart_warehouse_with_price.py
CHANGED
|
@@ -563,7 +563,7 @@ Examples of correct responses:
|
|
| 563 |
|
| 564 |
# GPT-5.5 modeli temperature ve max_tokens desteklemiyor
|
| 565 |
payload = {
|
| 566 |
-
"model": "gpt-5.5
|
| 567 |
"messages": [
|
| 568 |
{"role": "system", "content": "You are a product matcher. Find ALL matching products. Return only index numbers."},
|
| 569 |
{"role": "user", "content": smart_prompt}
|
|
|
|
| 563 |
|
| 564 |
# GPT-5.5 modeli temperature ve max_tokens desteklemiyor
|
| 565 |
payload = {
|
| 566 |
+
"model": "gpt-5.5",
|
| 567 |
"messages": [
|
| 568 |
{"role": "system", "content": "You are a product matcher. Find ALL matching products. Return only index numbers."},
|
| 569 |
{"role": "user", "content": smart_prompt}
|