mason Posted December 13, 2023 공유하기 Posted December 13, 2023 (edited) 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) Edited December 13, 2023 by mason 링크 복사 다른 사이트에 공유하기 More sharing options...
mason Posted December 13, 2023 Author 공유하기 Posted December 13, 2023 해결했습니다. data는 curl body였는데 제가 잘못봤네요.. 그리고 role 의 USER 대문자인게 문제였습니다. 링크 복사 다른 사이트에 공유하기 More sharing options...
CLOVA Studio 운영자 Posted December 14, 2023 공유하기 Posted December 14, 2023 안녕하세요, @mason 님, 클로바 스튜디오 담당입니다. 해결이 되셨다니 다행입니다. 가이드 상의 개선은 필요하지 않을지 점검하겠습니다. 많은 이용 부탁드리며, 추후에도 이용에 어려움이 있을 경우 문의 부탁드립니다. 감사합니다. 링크 복사 다른 사이트에 공유하기 More sharing options...
Recommended Posts
게시글 및 댓글을 작성하려면 로그인 해주세요.
로그인