summaryrefslogtreecommitdiffstats
path: root/src/render/mod.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2023-10-26 16:42:54 +0800
committerGitHub <noreply@github.com>2023-10-26 16:42:54 +0800
commit7d8564cafb45afc4bccb666a310615b164800a9a (patch)
treeb431854e0f8f54fc7599da9965ad3be2edb386b1 /src/render/mod.rs
parentf4160ff85b61e41a599e85f82d266878d35de47d (diff)
downloadaichat-7d8564cafb45afc4bccb666a310615b164800a9a.tar.gz
feat: support multi bots and custom url (#150)
Diffstat (limited to 'src/render/mod.rs')
-rw-r--r--src/render/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/mod.rs b/src/render/mod.rs
index 20d4d0e..e7c6228 100644
--- a/src/render/mod.rs
+++ b/src/render/mod.rs
@@ -7,7 +7,7 @@ use self::cmd::cmd_render_stream;
pub use self::markdown::MarkdownRender;
use self::repl::repl_render_stream;
-use crate::client::ChatGptClient;
+use crate::client::Client;
use crate::config::SharedConfig;
use crate::print_now;
use crate::repl::{ReplyStreamHandler, SharedAbortSignal};
@@ -20,7 +20,7 @@ use std::thread::spawn;
#[allow(clippy::module_name_repetitions)]
pub fn render_stream(
input: &str,
- client: &ChatGptClient,
+ client: &dyn Client,
config: &SharedConfig,
repl: bool,
abort: SharedAbortSignal,