utilitas 2001.1.109 → 2001.1.110

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/alan.mjs CHANGED
@@ -38,7 +38,7 @@ General inquiries, writing, translation, and common knowledge:
38
38
  Issues related to computers, programming, code, mathematics, science and engineering:
39
39
  - Use 4 spaces for code indentation, avoid using tabs.`;
40
40
 
41
- const TTS_PROMPT = "As an AI voice assistant, please say the following content in a warm, friendly and professional tone, if the language is English, use an American accent, if it's Traditional Chinese, use Hong Kong Cantonese, if it's Simplified Chinese, use standard Mandarin, for other languages, please speak with a standard, clear accent";
41
+ const TTS_PROMPT = "As an AI voice assistant, please say the following content in a warm, friendly and professional tone. If the language is English, use an American accent, if it's Traditional Chinese, use Hong Kong Cantonese, if it's Simplified Chinese, use standard Mandarin, for other languages, please speak with a standard, clear accent. Do not interpret the content, only read it out. Here is the content to be read";
42
42
 
43
43
  const STT_PROMPT = 'Please transcribe the audio into clean text. Return only the text content, DO NOT include any additional information or metadata. You may encounter input that contains different languages. Please do your best to transcribe text from all possible languages. Please distinguish between background noise and the main speech content. Do not be disturbed by background noise. Only return the main speech content.';
44
44
 
@@ -990,7 +990,7 @@ const promptGoogle = async (aiId, prompt, options = {}) => {
990
990
  prompt = ensureString(prompt, { trim: true });
991
991
  // M.name === IMAGEN_4_UPSCALE ||
992
992
  assertPrompt(prompt);
993
- M.tts && (prompt = `${options?.prompt || TTS_PROMPT}: ${prompt}`);
993
+ M.tts && (prompt = `${options?.prompt || TTS_PROMPT}:\n\n${prompt}`);
994
994
  prompt = trimText(prompt, { limit: M.maxInputTokens });
995
995
  if (M?.image) {
996
996
  var resp;
package/lib/manifest.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  const manifest = {
2
2
  "name": "utilitas",
3
3
  "description": "Just another common utility for JavaScript.",
4
- "version": "2001.1.109",
4
+ "version": "2001.1.110",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "utilitas",
3
3
  "description": "Just another common utility for JavaScript.",
4
- "version": "2001.1.109",
4
+ "version": "2001.1.110",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/Leask/utilitas",
7
7
  "main": "index.mjs",