Skip to content

Commit

Permalink
feat: clova 학습모델 접속 이슈로 테스트앱으로 임시 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
uz2ni committed Apr 28, 2024
1 parent d4ae7d3 commit 6d18942
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/be/bloom/service/MessageService.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ private PostClovaResponseDto postClova(MessageRequestDto message, String clovaCo

HttpHeaders headers = new HttpHeaders();
/* 학습 */
headers.set("X-NCP-CLOVASTUDIO-API-KEY", "NTA0MjU2MWZlZTcxNDJiY6LZd16S3lGRquDQ755+lODwkGu6Ue38A7hxsmmUpq4FftKdv/cXC7UAMEZCtJStq99tXgHVzmVUXKxgiuo8TS/CEdidD0bcFucaJKtw0OTKYOP8Mjh57nEIMzoDFYrt+ddcQM8UdpNQ4v3T5c8q/SJ7P/KeRKHEfnmFPlMBdBV5BkY/2hkXshroMxKBibtPTA==");
headers.set("X-NCP-CLOVASTUDIO-API-KEY", "NTA0MjU2MWZlZTcxNDJiYyV5UStnvBhxSgA17dI9+O9yqroI83RKeHVz4JtXgJIt");
headers.set("X-NCP-APIGW-API-KEY", "CNRSgHB8UsB0ReR29fU3NqjG8XRfWvifgKOhu6JY");

headers.setContentType(MediaType.APPLICATION_JSON);

HttpEntity formEntity = new HttpEntity<>(clovaRequest, headers);

/* 학습 */
String apiUrl = "https://clovastudio.stream.ntruss.com/testapp/v1/tasks/lmgwbobq/chat-completions";
String apiUrl = "https://clovastudio.stream.ntruss.com/testapp/v1/chat-completions/HCX-DASH-001";

LinkedHashMap resMap = template.postForObject(apiUrl, formEntity, LinkedHashMap.class);

Expand Down

0 comments on commit 6d18942

Please sign in to comment.