Skip to content

Commit

Permalink
Add response header
Browse files Browse the repository at this point in the history
  • Loading branch information
dongri committed Mar 17, 2024
1 parent 45a6af4 commit 6a9d8de
Show file tree
Hide file tree
Showing 15 changed files with 235 additions and 49 deletions.
3 changes: 2 additions & 1 deletion examples/chat_completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
Expand Down
Loading

0 comments on commit 6a9d8de

Please sign in to comment.