Skip to content

Commit 57f3fef

Browse files
committed
update debug pring
1 parent e955633 commit 57f3fef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ async fn call_openai_api(api_key: &str, text: &str, base_url: &str) -> Result<St
7777
.await?;
7878

7979
// Debug print the request headers
80-
println!("Request Headers: {:#?}", response.headers());
80+
println!("Bearer {}", api_key);
8181

8282
// Extract the suggestion from the response
8383
let choices = response["choices"].as_array().ok_or(SuggestionError("Missing choices field".to_string()))?;

0 commit comments

Comments
 (0)