gemini api 쓰면 수시로 뜨는 에러

오랫동안 해결이 안되어 게시판에 올려봅니다.

Invalid operation: The `response.parts` quick accessor requires a single candidate, but none were returned. Please check the `response.prompt_feedback` to determine if the prompt was blocked.

block_reason: 3 <- print(response.prompt_feedback)

gemini api(flash & pro 1.5) 쓰면 위 에러가 수시로 뜨면서 결과를 보여주지 않는데요.

아래와 같이 필터를 none으로 조정해줘도 개선이 되지 않습니다.

그래서 인터넷에 찾아보면 프람프트를 중립적으로 바꾸라느니, 지원센터에 문의하라는 내용 위주로 나옵니다.

혹시 이 문제 해결해보신분 계시면 조언 부탁드립니다~

1
2개의 답글