Response{protocol=h2, code=200, message=, url=https://clovastudio.stream.ntruss.com/testapp/v1/chat-completions/HCX-002}
id:63db7b08947e4e83926b08997099e3bd
event:error
data:{"status":{"code":"40001","message":"Invalid parameter"}}
{"data":{"messages":[{"role":"USER","content":"내 MBTI는 ISTP야"}],"topP":0.8,"topK":0,"maxTokens":256,"temperature":0.5,"repeatPenalty":5.0,"stopBefore":[],"includeAiFilters":false}}
바디에 담긴 값인데, 여기서 어떤 파라미터가 빠졌거나 문제가 있는지 확인부탁드립니다...
혹시 data: 이부분이 없어야하나요?
data 를 뺸다면
{"messages":[{"role":"USER","content":"내 MBTI는 ISTP야"}],"topP":0.8,"topK":0,"maxTokens":256,"temperature":0.5,"repeatPenalty":5.0,"stopBefore":[],"includeAiFilters":false}
Response{protocol=h2, code=400, message=, url=https://clovastudio.stream.ntruss.com/testapp/v1/chat-completions/HCX-002}
2023-12-13 12:53:10.278 INFO 53169 --- [ OkHttp https://clovastudio.stream.ntruss.com/..., , , ] o.OkHttpClient : Callback failure for call to https://clovastudio.stream.ntruss.com/...
java.io.IOException: Unexpected code Response{protocol=h2, code=400, message=, url=https://clovastudio.stream.ntruss.com/testapp/v1/chat-completions/HCX-002}
at org.trouble.solver.typeconnector.infrastructure.external.clova.ClovaAdapter$asyncCompletionMessage$1$1.onResponse(ClovaAdapter.kt:51)
at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)