blob: 057314c686a30188209c0c8a1f2e8574aace2a46 (
plain)
1
2
3
4
5
6
7
8
9
|
use crate::app::llm::{LLM, Message, MessageType};
pub async fn resume_conv(mut messages: Vec<Message>) -> Result<String, Box<dyn std::error::Error>> {
let resume_llm = LLM::new("config/resume-LLM.json");
messages.push(Message::new(MessageType::USER, resume_llm.system_prompt.to_string()));
let result: String = resume_llm.ask(&messages).await?;
Ok(result)
}
|
ArKa projects. All rights to me, and your next child right arm.