Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dspy/teleprompt/mipro_optimizer_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down
Loading