mirror of
https://github.com/mii443/openai-api-rs.git
synced 2025-08-22 23:25:39 +00:00
Add models api
This commit is contained in:
@ -23,7 +23,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
println!("Content: {:?}", result.choices[0].message.content);
|
||||
|
||||
// print response headers
|
||||
for (key, value) in client.headers.unwrap().iter() {
|
||||
for (key, value) in client.response_headers.unwrap().iter() {
|
||||
println!("{}: {:?}", key, value);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user