Skip to content

Commit e955633

Browse files
committed
debug header
1 parent e0a7fc3 commit e955633

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
debug/
2+
target/
23
.env
34
Cargo.lock

src/main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ async fn call_openai_api(api_key: &str, text: &str, base_url: &str) -> Result<St
7676
.json::<Value>()
7777
.await?;
7878

79+
// Debug print the request headers
80+
println!("Request Headers: {:#?}", response.headers());
81+
7982
// Extract the suggestion from the response
8083
let choices = response["choices"].as_array().ok_or(SuggestionError("Missing choices field".to_string()))?;
8184
let suggestion = choices

0 commit comments

Comments
 (0)