You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dspy/teleprompt/mipro_optimizer_v2.py
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -109,6 +109,7 @@ def compile(
109
109
tip_aware_proposer: bool=True,
110
110
fewshot_aware_proposer: bool=True,
111
111
requires_permission_to_run: bool=True,
112
+
provide_traceback: bool=False,
112
113
) ->Any:
113
114
# Set random seeds
114
115
seed=seedorself.seed
@@ -158,6 +159,7 @@ def compile(
158
159
max_errors=self.max_errors,
159
160
display_table=False,
160
161
display_progress=True,
162
+
provide_traceback=provide_traceback,
161
163
)
162
164
163
165
# Step 1: Bootstrap few-shot examples
@@ -326,7 +328,7 @@ def _get_user_confirmation(
326
328
327
329
{YELLOW}{BOLD}Estimated Cost Calculation:{ENDC}
328
330
329
-
{YELLOW}Total Cost = (Number of calls to task model * (Avg Input Token Length per Call * Task Model Price per Input Token + Avg Output Token Length per Call * Task Model Price per Output Token)
331
+
{YELLOW}Total Cost = (Number of calls to task model * (Avg Input Token Length per Call * Task Model Price per Input Token + Avg Output Token Length per Call * Task Model Price per Output Token)
330
332
+ (Number of program calls * (Avg Input Token Length per Call * Task Prompt Price per Input Token + Avg Output Token Length per Call * Prompt Model Price per Output Token).{ENDC}
331
333
332
334
For a preliminary estimate of potential costs, we recommend you perform your own calculations based on the task
0 commit comments