Skip to content

Commit

Permalink
[backend] Adding the content-type header when calling MistralAI (#2063)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimfacion authored Dec 13, 2024
1 parent 6d95ccf commit 66a9f95
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public ResponseEntity<Flux<AiResult>> queryAi(String body) {
.POST(HttpRequest.BodyPublishers.ofString(body))
.header("Authorization", "Bearer " + aiConfig.getToken())
.header("Accept", "text/event-stream")
.header("Content-Type", "application/json")
.build();
Flux<AiResult> dataFlux =
Flux.create(
Expand Down

0 comments on commit 66a9f95

Please sign in to comment.