Skip to content

Commit 74edcfd

Browse files
committed
fix(disass): simplify model selection logic in Decompile function
1 parent 5b5e28e commit 74edcfd

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

internal/commands/disass/disass.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,7 @@ func Decompile(asm string, cfg *Config) (string, error) {
9797
log.Warn("Exiting...")
9898
return "", nil
9999
}
100-
modelID := modelMap[choice]
101-
if modelID == "" {
102-
modelID = choice
103-
}
104-
if err := llm.SetModel(modelID); err != nil {
100+
if err := llm.SetModel(choice); err != nil {
105101
return "", fmt.Errorf("failed to set llm model: %v", err)
106102
}
107103
}

0 commit comments

Comments
 (0)