mirror of
https://github.com/openai/codex.git
synced 2026-06-01 19:02:59 +00:00
change-web-search
This commit is contained in:
@@ -96,7 +96,10 @@ impl DisabledTool {
|
||||
}
|
||||
|
||||
pub fn matches_tool_name(&self, tool_name: &str) -> bool {
|
||||
self.raw_name() == tool_name
|
||||
match self {
|
||||
DisabledTool::Known(kind) => kind.raw_name() == tool_name,
|
||||
DisabledTool::Other(name) => name == tool_name,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user