Disable DeepSeek thinking when a tool is forced.
Auto-resolve of passives was 400ing because thinking mode cannot be combined with named tool_choice. Also strip BOM descriptions after an em dash before DigiKey search. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -105,6 +105,10 @@ def mpn_query_variants(mpn: str) -> list[str]:
|
||||
add(raw)
|
||||
add(raw.replace("_", "/"))
|
||||
add(raw.replace("/", "_"))
|
||||
for sep in (" — ", " – ", " - "):
|
||||
if sep in raw:
|
||||
add(raw.split(sep, 1)[0])
|
||||
break
|
||||
if "," in raw:
|
||||
add(raw.split(",", 1)[0])
|
||||
if len(_alnum(raw)) > 8 and raw[-1] in "Rr" and raw[-2].isalnum():
|
||||
|
||||
Reference in New Issue
Block a user