stella-coder 5.1.1 → 5.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stella-coder",
3
- "version": "5.1.1",
3
+ "version": "5.1.2",
4
4
  "private": false,
5
5
  "description": "Stella Coder 5.0 — AI coding agent with Telegram bot, huge context, TDD, Git ecosystem, presentations, computer control, smart home, Office automation, and antivirus",
6
6
  "main": "stella-cli/index.mjs",
@@ -41,7 +41,7 @@ import {
41
41
  generateAdminCode, listAuthorizedUsers,
42
42
  } from "./telegram-bot.mjs"
43
43
 
44
- const VERSION = "5.1.1"
44
+ const VERSION = "5.1.2"
45
45
  const CONFIG_DIR = path.join(os.homedir(), ".stella")
46
46
  const CONFIG_PATH = path.join(CONFIG_DIR, "config.json")
47
47
  const HISTORY_PATH = path.join(CONFIG_DIR, "history.json")
@@ -3444,8 +3444,13 @@ async function handleCommand(line) {
3444
3444
  console.log()
3445
3445
 
3446
3446
  const apiCall = async (prompt) => {
3447
- const response = await queryAI(prompt, apiKey, state.model)
3448
- return response
3447
+ const model = getModel(state.model)
3448
+ const { text } = await generateText({
3449
+ model,
3450
+ messages: [{ role: "user", content: prompt }],
3451
+ maxTokens: 16000,
3452
+ })
3453
+ return text
3449
3454
  }
3450
3455
 
3451
3456
  console.log(dim(" Запускаю автономный режим...\n"))