Fix wording, docs and style inconsistencies per audit of 0139564
This commit is contained in:
@@ -3,6 +3,7 @@ package agents
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"log/slog"
|
||||
"os"
|
||||
@@ -239,7 +240,7 @@ func codexToolResult(item codex.ThreadItem) (any, bool, error) {
|
||||
}
|
||||
mime, data, ok := strings.Cut(strings.TrimPrefix(c.ImageURL, "data:"), ";base64,")
|
||||
if !ok {
|
||||
return nil, false, fmt.Errorf("dynamic tool image is not a base64 data url")
|
||||
return nil, false, errors.New("dynamic tool image is not a base64 data url")
|
||||
}
|
||||
blocks = append(blocks, imageBlock(mime, data))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user