fix(api): use question mark for optional tool call names
Resolves clippy::question_mark in openai_compat.rs. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
parent
7976bf994c
commit
1e8e152148
1 changed files with 1 additions and 3 deletions
|
|
@ -506,9 +506,7 @@ impl ToolCallState {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn start_event(&self) -> Option<ContentBlockStartEvent> {
|
fn start_event(&self) -> Option<ContentBlockStartEvent> {
|
||||||
let Some(name) = self.name.clone() else {
|
let name = self.name.clone()?;
|
||||||
return None;
|
|
||||||
};
|
|
||||||
let id = self
|
let id = self
|
||||||
.id
|
.id
|
||||||
.clone()
|
.clone()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue