Add response header

This commit is contained in:
Dongri Jin
2024-03-18 06:32:02 +09:00
parent 45a6af4a3a
commit 6a9d8dec7d
15 changed files with 235 additions and 49 deletions

View File

@ -16,7 +16,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
);
let result = client.chat_completion(req)?;
println!("{:?}", result.choices[0].message.content);
println!("Content: {:?}", result.choices[0].message.content);
println!("Response Headers: {:?}", result.headers);
Ok(())
}