diff options
| author | sigoden <sigoden@gmail.com> | 2023-11-02 10:45:11 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-02 10:45:11 +0800 |
| commit | 7c6841782d36faacc2aa3616dc3ed1b9403fa26e (patch) | |
| tree | 12d51728e056dbd4e57fc5977b7c51b2b60c06ae /src/render/mod.rs | |
| parent | 444f4ebe9de8aa68afdf8d39b734a8543b9b5c4b (diff) | |
| download | aichat-7c6841782d36faacc2aa3616dc3ed1b9403fa26e.tar.gz | |
refactor: improve code quanity (#197)
- move model_info.rs/message.rs to clients/
- rename SharedConfig to GlobalConfig
Diffstat (limited to 'src/render/mod.rs')
| -rw-r--r-- | src/render/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/render/mod.rs b/src/render/mod.rs index 27f9e81..a0f996f 100644 --- a/src/render/mod.rs +++ b/src/render/mod.rs @@ -7,8 +7,8 @@ pub use self::markdown::{MarkdownRender, RenderOptions}; use self::repl::repl_render_stream; use crate::client::Client; -use crate::config::SharedConfig; -use crate::repl::AbortSignal; +use crate::config::GlobalConfig; +use crate::utils::AbortSignal; use anyhow::{Context, Result}; use crossbeam::channel::{unbounded, Sender}; @@ -19,7 +19,7 @@ use std::thread::spawn; pub fn render_stream( input: &str, client: &dyn Client, - config: &SharedConfig, + config: &GlobalConfig, repl: bool, abort: AbortSignal, wg: WaitGroup, |
