4
This commit is contained in:
@@ -121,6 +121,12 @@ class AutoClusterFunction(BaseAIFunction):
|
||||
context=context
|
||||
)
|
||||
|
||||
# Verify placeholder replacement
|
||||
if '[IGNY8_KEYWORDS]' in prompt:
|
||||
logger.error(f"[IGNY8_KEYWORDS] placeholder NOT replaced! Prompt length: {len(prompt)}")
|
||||
else:
|
||||
logger.info(f"Prompt placeholder replaced successfully. Prompt length: {len(prompt)}, Keywords text length: {len(keywords_text)}")
|
||||
|
||||
# IMPORTANT: When using JSON mode, OpenAI requires explicit JSON instruction
|
||||
# The prompt template already includes "Format the output as a JSON object"
|
||||
# but we need to ensure it's explicit for JSON mode compliance
|
||||
|
||||
Reference in New Issue
Block a user