thanhnt-cf commited on
Commit
f124ae7
·
verified ·
1 Parent(s): d06525c

update to show the prompt

Browse files
Files changed (1) hide show
  1. app/services/service_openai.py +4 -0
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",