diff --git a/dspy/teleprompt/mipro_optimizer_v2.py b/dspy/teleprompt/mipro_optimizer_v2.py index bd8eb48ad..5ac7f1dff 100644 --- a/dspy/teleprompt/mipro_optimizer_v2.py +++ b/dspy/teleprompt/mipro_optimizer_v2.py @@ -2,7 +2,7 @@ import random import textwrap from collections import defaultdict -from typing import Any, Callable, Dict, List, Optional, Tuple +from typing import Any, Callable, Dict, List, Literal, Optional, Tuple import numpy as np import optuna @@ -52,7 +52,7 @@ def __init__( teacher_settings: Dict = {}, max_bootstrapped_demos: int = 4, max_labeled_demos: int = 16, - auto: Optional[str] = None, + auto: Optional[Literal["light", "medium", "heavy"]] = None, num_candidates: int = 10, num_threads: int = 6, max_errors: int = 10,