Spaces:
Sleeping
Sleeping
rule: only show the json text format of the response
Browse files
app.py
CHANGED
|
@@ -75,8 +75,11 @@ def image_to_text(url):
|
|
| 75 |
2. 題目:question
|
| 76 |
3. 選項:choice_1~choice_4
|
| 77 |
|
|
|
|
|
|
|
| 78 |
restrictions:
|
| 79 |
- dont show the word:'json' in response
|
|
|
|
| 80 |
|
| 81 |
|
| 82 |
EXAMPLE:
|
|
@@ -91,7 +94,6 @@ def image_to_text(url):
|
|
| 91 |
"""
|
| 92 |
|
| 93 |
response_format = { "type": "json_object" }
|
| 94 |
-
|
| 95 |
response = OPEN_AI_CLIENT.chat.completions.create(
|
| 96 |
model="gpt-4o",
|
| 97 |
messages=[
|
|
|
|
| 75 |
2. 題目:question
|
| 76 |
3. 選項:choice_1~choice_4
|
| 77 |
|
| 78 |
+
rule: only show the json text format of the response
|
| 79 |
+
|
| 80 |
restrictions:
|
| 81 |
- dont show the word:'json' in response
|
| 82 |
+
- dont show the word:'```' in response
|
| 83 |
|
| 84 |
|
| 85 |
EXAMPLE:
|
|
|
|
| 94 |
"""
|
| 95 |
|
| 96 |
response_format = { "type": "json_object" }
|
|
|
|
| 97 |
response = OPEN_AI_CLIENT.chat.completions.create(
|
| 98 |
model="gpt-4o",
|
| 99 |
messages=[
|