Remove unnecessary prompt stringBuilder

This commit is contained in:
2025-10-30 21:07:27 +09:00
parent 3076ba45df
commit d97ee8e603

View File

@@ -40,7 +40,7 @@ public class GeminiService {
logger.info("Generating tweet with prompt: {}", prompt); logger.info("Generating tweet with prompt: {}", prompt);
// Build the request body with simplified prompt // Build the request body with simplified prompt
String fullPrompt = "You are a creative social media content creator. Generate an engaging tweet (under 280 characters) about: " + prompt; String fullPrompt = prompt;
String jsonBody = String.format( String jsonBody = String.format(
"{\"contents\":[{\"parts\":[{\"text\":\"%s\"}]}],\"generationConfig\":{\"temperature\":0.8,\"maxOutputTokens\":100000}}", "{\"contents\":[{\"parts\":[{\"text\":\"%s\"}]}],\"generationConfig\":{\"temperature\":0.8,\"maxOutputTokens\":100000}}",