mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 13:57:10 +00:00
1
This commit is contained in:
parent
bef5094062
commit
e0bac0edc4
2 changed files with 3 additions and 3 deletions
|
|
@ -38,7 +38,7 @@ export class URLSummarizerTool extends AbstractTool {
|
|||
}
|
||||
};
|
||||
|
||||
description = 'Summarizes the content of a URL using OpenAI API, providing a concise summary.';
|
||||
description = 'Summarizes the content of a URL using OpenAI API, providing a comprehensiveness summary.';
|
||||
}
|
||||
|
||||
// Use OpenAI API to summarize the URL directly
|
||||
|
|
@ -66,7 +66,7 @@ async function summarizeURL(url, length) {
|
|||
content: `Summarize this article: ${url}`, // Directly send the URL
|
||||
},
|
||||
],
|
||||
max_tokens: 500 * length,
|
||||
max_tokens: 1000 * length,
|
||||
}),
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue