File tree Expand file tree Collapse file tree 1 file changed +0
-2
lines changed
src/main/kotlin/org/gitanimals/quiz/infra Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import org.springframework.context.annotation.Bean
1111import org.springframework.context.annotation.Configuration
1212import org.springframework.context.annotation.Profile
1313import org.springframework.http.HttpHeaders
14- import org.springframework.http.MediaType
1514import org.springframework.web.client.RestClient
1615import org.springframework.web.client.support.RestClientAdapter
1716import org.springframework.web.service.invoker.HttpServiceProxyFactory
@@ -77,7 +76,6 @@ class QuizHttpClientConfigurer(
7776 val restClient = RestClient
7877 .builder()
7978 .requestInterceptor { request, body, execution ->
80- request.headers.add(HttpHeaders .CONTENT_TYPE , MediaType .APPLICATION_JSON_VALUE )
8179 request.headers.add(HttpHeaders .AUTHORIZATION , " Bearer $openAIKey " )
8280 request.headers.add(" OpenAI-Organization" , openAIOrganizationId)
8381 request.headers.add(" OpenAI-Project" , openAIProject)
You can’t perform that action at this time.
0 commit comments