Update ideaGen_Followup.py
Browse files- ideaGen_Followup.py +3 -2
ideaGen_Followup.py
CHANGED
|
@@ -64,9 +64,10 @@ def ideagen(content_type,context):
|
|
| 64 |
total_price += price
|
| 65 |
|
| 66 |
|
| 67 |
-
price =
|
|
|
|
| 68 |
|
| 69 |
-
full_text += "\n\n" +
|
| 70 |
|
| 71 |
|
| 72 |
#return response.choices[0].message.content
|
|
|
|
| 64 |
total_price += price
|
| 65 |
|
| 66 |
|
| 67 |
+
price = total_prompt_tokens_used*0.005/1000 + total_completion_tokens_used*0.015/1000
|
| 68 |
+
price_str = "price:" + str(price) + "$"
|
| 69 |
|
| 70 |
+
full_text += "\n\n" + price_str
|
| 71 |
|
| 72 |
|
| 73 |
#return response.choices[0].message.content
|