fix: type

This commit is contained in:
0xMRTT 2023-06-17 15:26:03 +02:00
parent 071c4aad2d
commit f0fa28e0a9
Signed by: 0xMRTT
GPG Key ID: 910B287304120902
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
use ratmom::{prelude::*, Request};
pub async fn ask(prompt: String) -> Result<String, Box<dyn std::error::Error>> {
pub async fn ask(prompt: &str) -> Result<String, Box<dyn std::error::Error>> {
let mut body = String::new();
body.push_str(r#"{