Ver código fonte

some fixing and README

Radu Boncea 2 anos atrás
pai
commit
43afc10317
2 arquivos alterados com 9 adições e 2 exclusões
  1. 8 0
      history.csv
  2. 1 2
      src/main.rs

+ 8 - 0
history.csv

@@ -6,3 +6,11 @@ user,"Which one is the biggest?
 "
 user,"what was my second question?
 "
+user,"
+"
+user,"what is your name?
+"
+user,"
+"
+user,"
+"

+ 1 - 2
src/main.rs

@@ -110,10 +110,9 @@ async fn main() -> Result<(), Box<dyn Error>> {
         history_path);
 
 
-    //loop and take input from the user
     loop {
         let mut input = String::new();
-        println!("PROMPT: ");
+        println!("PROMPT>: ");
         std::io::stdin().read_line(&mut input)?;
         let response = session.chat(input.as_str()).await?;
         let message = response.choices[0].message.content.clone();