Skip to content

Commit

Permalink
Fix authorization
Browse files Browse the repository at this point in the history
  • Loading branch information
hellovai committed Mar 20, 2024
1 parent 9e56f11 commit 58f18d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/baml-core-ffi/src/api_wrapper/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ impl CompleteAPIConfig {
let url = format!("{}/{}", self.base_url, path);
let response = client
.post(&url)
.header("Authorization ", format!("Bearer {}", self.api_key))
.header("Authorization", format!("Bearer {}", self.api_key))
.header("Content-Type", "application/json")
.json(body)
.send()
Expand Down

0 comments on commit 58f18d5

Please sign in to comment.