Compare commits
1 Commits
integratio
...
f474a374d4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f474a374d4 |
@@ -14,6 +14,8 @@ mod command;
|
|||||||
mod qna;
|
mod qna;
|
||||||
mod setup;
|
mod setup;
|
||||||
|
|
||||||
|
const DEFAULT_INSTRUCT: &str = "";
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() -> Result<()> {
|
async fn main() -> Result<()> {
|
||||||
// Some error sprucing.
|
// Some error sprucing.
|
||||||
@@ -40,9 +42,7 @@ async fn main() -> Result<()> {
|
|||||||
config
|
config
|
||||||
.get_string("model")
|
.get_string("model")
|
||||||
.wrap_err("model string missing.")?,
|
.wrap_err("model string missing.")?,
|
||||||
"You are a shady, yet helpful IRC bot. You try to give responses that can
|
config.get_string("instruct").unwrap_or_else(|_| DEFAULT_INSTRUCT.to_string()),
|
||||||
be sent in a single IRC response according to the specification."
|
|
||||||
.to_string(),
|
|
||||||
)
|
)
|
||||||
.wrap_err("Couldn't initialize LLM handle.")?;
|
.wrap_err("Couldn't initialize LLM handle.")?;
|
||||||
let mut c = chat::new(&config, &handle).await?;
|
let mut c = chat::new(&config, &handle).await?;
|
||||||
|
|||||||
Reference in New Issue
Block a user