Upload 4 files
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ def process_error(error_message: str) -> str:
|
|
| 9 |
Main function to process the error message and return JSON response.
|
| 10 |
"""
|
| 11 |
# Build full prompt with proper ending
|
| 12 |
-
full_prompt = SYSTEM_PROMPT + error_message.strip() + "\n<|end|>\n<|assistant|>"
|
| 13 |
|
| 14 |
# Get raw model output
|
| 15 |
raw_output = generate_response(full_prompt)
|
|
|
|
| 9 |
Main function to process the error message and return JSON response.
|
| 10 |
"""
|
| 11 |
# Build full prompt with proper ending
|
| 12 |
+
full_prompt = SYSTEM_PROMPT + error_message.strip() + "\nJSON Output:\n<|end|>\n<|assistant|>"
|
| 13 |
|
| 14 |
# Get raw model output
|
| 15 |
raw_output = generate_response(full_prompt)
|
prompt.py
CHANGED
|
@@ -14,4 +14,4 @@ Example:
|
|
| 14 |
<|end|>
|
| 15 |
|
| 16 |
<|user|>
|
| 17 |
-
"""
|
|
|
|
| 14 |
<|end|>
|
| 15 |
|
| 16 |
<|user|>
|
| 17 |
+
Error: """
|