Skip to content

Commit c22e406

Browse files
committed
Update steering.py
1 parent 5950c73 commit c22e406

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

optillm/autothink/steering.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -666,18 +666,18 @@ def _try_token_match(self):
666666

667667
# Apply fuzzy match if found
668668
if best_match['vector'] is not None:
669-
self.match_found = True
670-
self.current_vector = best_match['vector']
671-
pattern = best_match['vector'].get("reasoning_pattern", "unknown")
672-
pivot_token = best_match['vector'].get("pivot_token", "")
673-
similarity = best_match.get('similarity', 0.0)
674-
675-
logger.info(f"STEERING: Found fuzzy match ({similarity:.2f} similarity) for {pattern} pattern")
676-
logger.info(f"STEERING: Pivot token: '{pivot_token}'")
677-
678-
return True
679-
680-
return False
669+
self.match_found = True
670+
self.current_vector = best_match['vector']
671+
pattern = best_match['vector'].get("reasoning_pattern", "unknown")
672+
pivot_token = best_match['vector'].get("pivot_token", "")
673+
similarity = best_match.get('similarity', 0.0)
674+
675+
logger.info(f"STEERING: Found fuzzy match ({similarity:.2f} similarity) for {pattern} pattern")
676+
logger.info(f"STEERING: Pivot token: '{pivot_token}'")
677+
678+
return True
679+
680+
return False
681681

682682
def _try_text_match(self):
683683
"""Try to match using text-based context (original approach)."""

0 commit comments

Comments
 (0)