feat: support dall-e image not storage

This commit is contained in:
Hk-Gosuto
2023-12-14 20:02:28 +08:00
parent 22f43e5564
commit 789de39b2c
3 changed files with 16 additions and 7 deletions

View File

@@ -64,6 +64,8 @@ export class BaiduSearch extends Tool {
async _call(input: string) {
const searchResults = await search(input, this.maxResults);
console.log(searchResults);
if (searchResults.results.length === 0) {
return "No good search result found";
}