|
21 | 21 | public class ChatGPTService { |
22 | 22 | private static final String PROMPT_TEXT = """ |
23 | 23 | Identify seafood and marine debris in the image. |
24 | | - Return **only** the identified items from the following list along with their count. |
25 | | - The response **must be a plain JSON array** without any metadata, schema, or additional fields. |
26 | | - Use **"detail": "low"** in the image request to optimize for speed. |
27 | | - Use exactly the English name key as shown in the list (do not change casing or add spacing). |
| 24 | + Return only the identified items from the following list along with their count. |
| 25 | + The response must be a plain JSON array without any metadata, schema, or additional fields. |
| 26 | + Use "detail": "low" in the image request to optimize for speed. |
28 | 27 | |
29 | | - ## List of Recognizable Items |
30 | | - 1. 전복 (Abalone), 2. 성게 (SeaUrchin), 3. 조개 (Clam), 6. 뿔소라 (Murex), 7. 미역 (SeaMustard), 8. 멍게 (SeaSquirt), 9. 홍합 (Mussel), 10. 고둥 (Gastropods) |
31 | | - 11. 굴 (Oyster), 12. 문어 (Octopus), 13. 해삼 (SeaCucumber), 14. 오징어 (Squid) |
32 | | - 15. 그물조각 (Net), 16. 밧줄 (Rope), 17. 비닐 (Vinyl), 18. 물병 (WaterBottle). |
| 28 | + Do not switch or mix koreanName and englishName fields. |
| 29 | + |
| 30 | + ## List of Recognizable Items (with fixed IDs) |
| 31 | + 1. seafoodId: 1, koreanName: "전복", englishName: "Abalone" |
| 32 | + 2. seafoodId: 2, koreanName: "성게", englishName: "SeaUrchin" |
| 33 | + 3. seafoodId: 3, koreanName: "조개", englishName: "Clam" |
| 34 | + 4. seafoodId: 6, koreanName: "뿔소라", englishName: "Murex" |
| 35 | + 5. seafoodId: 7, koreanName: "미역", englishName: "SeaMustard" |
| 36 | + 6. seafoodId: 8, koreanName: "멍게", englishName: "SeaSquirt" |
| 37 | + 7. seafoodId: 9, koreanName: "홍합", englishName: "Mussel" |
| 38 | + 8. seafoodId: 10, koreanName: "고둥", englishName: "Gastropods" |
| 39 | + 9. seafoodId: 11, koreanName: "굴", englishName: "Oyster" |
| 40 | + 10. seafoodId: 12, koreanName: "문어", englishName: "Octopus" |
| 41 | + 11. seafoodId: 13, koreanName: "해삼", englishName: "SeaCucumber" |
| 42 | + 12. seafoodId: 14, koreanName: "오징어", englishName: "Squid" |
| 43 | + 13. seafoodId: 15, koreanName: "그물조각", englishName: "Net" |
| 44 | + 14. seafoodId: 16, koreanName: "밧줄", englishName: "Rope" |
| 45 | + 15. seafoodId: 17, koreanName: "비닐", englishName: "Vinyl" |
| 46 | + 16. seafoodId: 18, koreanName: "물병", englishName: "WaterBottle" |
33 | 47 | """; |
34 | 48 |
|
35 | 49 | private final ChatClient chatClient; |
|
0 commit comments