fix: type
This commit is contained in:
parent
071c4aad2d
commit
f0fa28e0a9
@ -1,6 +1,6 @@
|
|||||||
use ratmom::{prelude::*, Request};
|
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();
|
let mut body = String::new();
|
||||||
body.push_str(r#"{
|
body.push_str(r#"{
|
||||||
|
Loading…
Reference in New Issue
Block a user