From c12ae0275108acbbb124a41ff936b441723ae625 Mon Sep 17 00:00:00 2001 From: sigoden Date: Mon, 6 Mar 2023 16:35:51 +0800 Subject: chore: improve code by renameing some function --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 884a56f..5cb94f5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -65,7 +65,7 @@ fn main() -> Result<()> { fn start_directive(client: ChatGptClient, config: SharedConfig, input: &str) -> Result<()> { let mut file = config.borrow().open_message_file()?; let prompt = config.borrow().get_prompt(); - let output = client.acquire(input, prompt)?; + let output = client.send_message(input, prompt)?; let output = output.trim(); if config.borrow().highlight && stdout().is_terminal() { let markdown_render = MarkdownRender::init()?; -- cgit v1.2.3