Changeset 0.22.9 (#151)
This commit is contained in:
@@ -670,6 +670,7 @@ func (h *CompletionHandler) ListTools(c *gin.Context) {
|
||||
var manifest struct {
|
||||
Tools []struct {
|
||||
Name string `json:"name"`
|
||||
DisplayName string `json:"display_name"`
|
||||
Description string `json:"description"`
|
||||
} `json:"tools"`
|
||||
}
|
||||
@@ -677,8 +678,13 @@ func (h *CompletionHandler) ListTools(c *gin.Context) {
|
||||
continue
|
||||
}
|
||||
for _, t := range manifest.Tools {
|
||||
displayName := t.DisplayName
|
||||
if displayName == "" {
|
||||
displayName = t.Name
|
||||
}
|
||||
result = append(result, toolInfo{
|
||||
Name: t.Name,
|
||||
DisplayName: displayName,
|
||||
Description: t.Description,
|
||||
Category: "browser",
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user