GPT 분석시 json Schema로 validation할때 에러

minsing-jin·2024년 10월 1일

문제상황

내가 원하는 json schema를 정해줘도 gpt가 잘 못뽑는경우가 있다.

해결

이럴때는 schema를 ["string", "null"] 과 같이 Null값이 되어도 되는 property의 item에 설정을 해주면 됀다.

profile
존나 재밌는것을 맨듭니다.

0개의 댓글