Remove unnecessary prompt stringBuilder
This commit is contained in:
@@ -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}}",
|
||||||
|
|||||||
Reference in New Issue
Block a user