Skip to content

Commit

Permalink
!hotfix: openai model config, analysisErrorStatus 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
daeun084 committed Nov 19, 2024
1 parent 00ae92f commit b240dc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/corecord/dev/common/config/OpenAIConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class OpenAIConfig {
@Value("${spring.ai.openai.api-key}")
private String apiKey;

@Value("${spring.ai.openai.model}")
@Value("${spring.ai.openai.chat.options.model}")
private String model;

}
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
@AllArgsConstructor
public enum AnalysisErrorStatus implements BaseErrorStatus {
OVERFLOW_ANALYSIS_CONTENT(HttpStatus.BAD_REQUEST, "E0400_OVERFLOW_CONTENT", "경험 기록 내용은 500자 이내여야 합니다."),
OVERFLOW_ANALYSIS_COMMENT(HttpStatus.BAD_REQUEST, "E0400_OVERFLOW_COMMENT", "경험 기록 코멘트는 200자 이내여야 합니다."),
OVERFLOW_ANALYSIS_KEYWORD_CONTENT(HttpStatus.BAD_REQUEST, "E0400_OVERFLOW_KEYWORD_CONTENT", "경험 기록 키워드별 내용은 200자 이내여야 합니다."),
OVERFLOW_ANALYSIS_COMMENT(HttpStatus.INTERNAL_SERVER_ERROR, "E0500_OVERFLOW_COMMENT", "경험 기록 코멘트는 200자 이내여야 합니다."),
OVERFLOW_ANALYSIS_KEYWORD_CONTENT(HttpStatus.INTERNAL_SERVER_ERROR, "E0500_OVERFLOW_KEYWORD_CONTENT", "경험 기록 키워드별 내용은 200자 이내여야 합니다."),
USER_ANALYSIS_UNAUTHORIZED(HttpStatus.UNAUTHORIZED, "E401_ANALYSIS_UNAUTHORIZED", "유저가 역량 분석에 대한 권한이 없습니다."),
ANALYSIS_NOT_FOUND(HttpStatus.NOT_FOUND, "E0404_ANALYSIS", "존재하지 않는 역량 분석입니다."),
INVALID_ABILITY_ANALYSIS(HttpStatus.INTERNAL_SERVER_ERROR, "E500_INVALID_ANALYSIS", "역량 분석 데이터 파싱 중 오류가 발생했습니다."),
Expand Down

0 comments on commit b240dc2

Please sign in to comment.