mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add missing return type
This commit is contained in:
@ -2485,7 +2485,7 @@ class Message {
|
|||||||
* Get the token cost of an image.
|
* Get the token cost of an image.
|
||||||
* @param {string} dataUrl Data URL of the image.
|
* @param {string} dataUrl Data URL of the image.
|
||||||
* @param {string} quality String representing the quality of the image. Can be 'low', 'auto', or 'high'.
|
* @param {string} quality String representing the quality of the image. Can be 'low', 'auto', or 'high'.
|
||||||
* @returns
|
* @returns {Promise<number>} The token cost of the image.
|
||||||
*/
|
*/
|
||||||
async getImageTokenCost(dataUrl, quality) {
|
async getImageTokenCost(dataUrl, quality) {
|
||||||
if (quality === 'low') {
|
if (quality === 'low') {
|
||||||
|
Reference in New Issue
Block a user