mirror of
https://github.com/hempyhemp/hh-auto-reply.git
synced 2026-06-09 02:15:34 +00:00
🔧 refactor(scraper/openai): изменена функция askLLM на createMessage
Изменилась функция askLLM на createMessage для генерации сообщений.
This commit is contained in:
@@ -2,7 +2,7 @@ import type { Message } from 'node-telegram-bot-api'
|
||||
import bot from '@bot'
|
||||
import prisma from '@prisma'
|
||||
import { type Browser, chromium, type Page } from 'playwright'
|
||||
import { askLLM } from '../openai'
|
||||
import { createMessage } from '../openai'
|
||||
|
||||
// const SESSION_FILE = path.resolve('./session.json')
|
||||
|
||||
@@ -283,8 +283,7 @@ export async function applyToJobs({
|
||||
where: { telegramId: chatId },
|
||||
})
|
||||
|
||||
// const letter = await askGPT(resume!.data, description, user!.prompt)
|
||||
const letter = await askLLM(resume!.data, description, user!.prompt)
|
||||
const letter = await createMessage(resume!.data, description, user!.prompt)
|
||||
|
||||
await bot.sendMessage(chatId, `✅ Сопроводительное письмо отправлено: ${letter}`)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user