File tree Expand file tree Collapse file tree 1 file changed +0
-2
lines changed
src/main/kotlin/org/gitanimals/quiz/infra/similarity Expand file tree Collapse file tree 1 file changed +0
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import org.springframework.beans.factory.annotation.Value
55import org.springframework.context.annotation.Bean
66import org.springframework.context.annotation.Configuration
77import org.springframework.http.HttpHeaders
8- import org.springframework.http.MediaType
98import org.springframework.web.client.RestClient
109import org.springframework.web.client.support.RestClientAdapter
1110import org.springframework.web.service.invoker.HttpServiceProxyFactory
@@ -20,7 +19,6 @@ class TokenizerHttpClientConfigurer(
2019 val restClient = RestClient .builder()
2120 .requestInterceptor { request, body, execution ->
2221 request.headers.add(HttpHeaders .AUTHORIZATION , " Bearer $apiKey " )
23- request.headers.add(HttpHeaders .CONTENT_TYPE , MediaType .APPLICATION_JSON_VALUE )
2422 execution.execute(request, body)
2523 }
2624 .baseUrl(" https://api.openai.com" )
You can’t perform that action at this time.
0 commit comments