
[Gemini] ValueError: The `response.parts` quick accessor only works for a single candidate, but none were returned. Check the `response.prompt_feedback` to see if the prompt was blocked.
ยท
๐ฃ๏ธ Natural Language Processing
ValueError: The `response.parts` quick accessor only works for a single candidate, but none were returned. Check the `response.prompt_feedback` to see if the prompt was blocked. ์์ธ : ์๋ชป๋ request๋ก prompt ์๋ต์ด ์ฐจ๋จ๋ case ํน์ safety setting error request ๋ณด๋ด๊ธฐ ์ ์ parameter๋ฅผ ๋ค ๊ธฐ์
ํด์ค๋ค. ํ์ฌ๋ก์๋ max_tokens candidate_count : ์ถ๋ ฅ ์ top_p : log_probabilities๋ค์ argmax ๊ฐ์ ์ญ์์ผ๋ก ์ ๋ ฌํ๋ค ๋จ์ด ๋จ์๋ก ์ฌ๊ตฌ์ฑ (๊ธ๋ ๋ค_argmax : 0.7, ํ๋ค๋ค_a..