Skip to content

Commit

Permalink
fix name for adapter id (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
noyoshi authored Feb 27, 2024
1 parent 362ee41 commit 4c39e8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions router/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ async fn generate(
.join(",");

if adapter_id_string.len() > 0 {
headers.insert("x-adapter-ids", adapter_id_string.parse().unwrap());
headers.insert("x-adapter-id", adapter_id_string.parse().unwrap());
headers.insert("x-adapter-source", adapter_source.unwrap().parse().unwrap());
}

Expand Down Expand Up @@ -570,7 +570,7 @@ async fn generate_stream_with_callback(
.join(",");

if adapter_id_string.len() > 0 {
headers.insert("x-adapter-ids", adapter_id_string.parse().unwrap());
headers.insert("x-adapter-id", adapter_id_string.parse().unwrap());
headers.insert("x-adapter-source", adapter_source.unwrap().parse().unwrap());
}

Expand Down

0 comments on commit 4c39e8a

Please sign in to comment.