mirror of
https://github.com/HeyPuter/puter.git
synced 2026-10-23 20:11:18 +00:00
style(ai-tts): keep Gemini cost comment prettier-clean
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
98140ca09f
commit
f80f479a19
1 file changed
+1
-1
@@ -147,7 +147,7 @@ const upstreamFailure = (message: string): HttpError =>
|
||||
const responseTooLarge = (maxBytes: number): HttpError =>
|
||||
upstreamFailure(`Gemini TTS response exceeds ${maxBytes} bytes`);
|
||||
|
||||
/** µ¢ for `tokens` at a cents-per-1M-tokens rate, which is µ¢ per token. */
|
||||
/** The µ¢ cost of `tokens` at a cents-per-1M rate, which is µ¢ per token. */
|
||||
const tokenCost = (tokens: number, centsPerMillion: number): number =>
|
||||
Math.max(1, Math.ceil(tokens * centsPerMillion));
|
||||
|
||||
|
||||
Reference in new issue
Block a user