Skip to content

Commit 9b2e6d6

Browse files
committed
small dedupe
1 parent 459cdcd commit 9b2e6d6

File tree

1 file changed

+1
-1
lines changed
  • crates/owhisper-client/src/adapter/argmax

1 file changed

+1
-1
lines changed

crates/owhisper-client/src/adapter/argmax/live.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ impl RealtimeSttAdapter for ArgmaxAdapter {
3535
}
3636

3737
fn build_auth_header(&self, api_key: Option<&str>) -> Option<(&'static str, String)> {
38-
api_key.map(|key| ("Authorization", format!("Token {}", key)))
38+
api_key.and_then(|k| crate::providers::Provider::Deepgram.build_auth_header(k))
3939
}
4040

4141
fn keep_alive_message(&self) -> Option<Message> {

0 commit comments

Comments
 (0)