Fixed instruct argument issue.

This commit is contained in:
Micheal Smith
2025-11-03 22:31:13 -06:00
parent ae44cc947b
commit ae190cc421
3 changed files with 3 additions and 11 deletions

View File

@@ -60,17 +60,8 @@ impl Chat {
client.identify()?;
let outgoing = client
.outgoing()
.ok_or_eyre("Couldn't get outgoing irc sink.")?;
let mut stream = client.stream()?;
tokio::spawn(async move {
if let Err(e) = outgoing.await {
event!(Level::ERROR, "Failed to drive output: {}", e);
}
});
while let Some(message) = stream.next().await.transpose()? {
if let Command::PRIVMSG(channel, message) = message.command
&& message.starts_with("!gem")

View File

@@ -17,7 +17,8 @@ mod setup;
const DEFAULT_INSTRUCT: &str =
"You are a shady, yet helpful IRC bot. You try to give responses that can
be sent in a single IRC response according to the specification.";
be sent in a single IRC response according to the specification. Keep answers to
500 characters or less.";
#[tokio::main]
async fn main() -> Result<()> {

View File

@@ -104,7 +104,7 @@ pub async fn init() -> Result<Setup> {
.set_override_option("chroot-dir", args.chroot_dir.clone())?
.set_override_option("command-path", args.command_dir.clone())?
.set_override_option("model", args.model.clone())?
.set_override_option("instruct", args.model.clone())?
.set_override_option("instruct", args.instruct.clone())?
.set_override_option("channels", args.channels.clone())?
.set_override_option("server", args.server.clone())?
.set_override_option("port", args.port.clone())? // FIXME: Make this a default here not in clap.