update to show the prompt
Browse files
app/services/service_openai.py
CHANGED
@@ -69,6 +69,10 @@ class OpenAIService(BaseAttributionService):
|
|
69 |
pil_images: List[Any] = None, # do not remove, this is for weave
|
70 |
img_paths: List[str] = None,
|
71 |
) -> Dict[str, Any]:
|
|
|
|
|
|
|
|
|
72 |
text_content = [
|
73 |
{
|
74 |
"type": "text",
|
|
|
69 |
pil_images: List[Any] = None, # do not remove, this is for weave
|
70 |
img_paths: List[str] = None,
|
71 |
) -> Dict[str, Any]:
|
72 |
+
|
73 |
+
print("Prompt: ")
|
74 |
+
print(prompts.EXTRACT_INFO_HUMAN_MESSAGE.format(product_taxonomy=product_taxonomy, product_data=product_data_to_str(product_data)))
|
75 |
+
|
76 |
text_content = [
|
77 |
{
|
78 |
"type": "text",
|