Spaces:
Sleeping
Sleeping
chips
commited on
Commit
·
53736a5
1
Parent(s):
e5772c2
something about .format
Browse files
app/services/service_openai.py
CHANGED
|
@@ -74,7 +74,7 @@ class OpenAIService(BaseAttributionService):
|
|
| 74 |
) -> Dict[str, Any]:
|
| 75 |
|
| 76 |
print("Prompt: ")
|
| 77 |
-
print(prompts.EXTRACT_INFO_HUMAN_MESSAGE
|
| 78 |
|
| 79 |
text_content = [
|
| 80 |
{
|
|
@@ -159,7 +159,7 @@ class OpenAIService(BaseAttributionService):
|
|
| 159 |
text_content = [
|
| 160 |
{
|
| 161 |
"type": "text",
|
| 162 |
-
"text": prompts.FOLLOW_SCHEMA_HUMAN_MESSAGE
|
| 163 |
},
|
| 164 |
]
|
| 165 |
|
|
|
|
| 74 |
) -> Dict[str, Any]:
|
| 75 |
|
| 76 |
print("Prompt: ")
|
| 77 |
+
print(prompts.EXTRACT_INFO_HUMAN_MESSAGE ) #.format(product_taxonomy=product_taxonomy, product_data=product_data_to_str(product_data)))
|
| 78 |
|
| 79 |
text_content = [
|
| 80 |
{
|
|
|
|
| 159 |
text_content = [
|
| 160 |
{
|
| 161 |
"type": "text",
|
| 162 |
+
"text": prompts.FOLLOW_SCHEMA_HUMAN_MESSAGE )#format(json_info=data),
|
| 163 |
},
|
| 164 |
]
|
| 165 |
|