Commit
·
e511adb
1
Parent(s):
72733f0
fix prompt file path issue related to os separator
Browse files- utils/prompt_manager.py +2 -1
utils/prompt_manager.py
CHANGED
|
@@ -5,6 +5,7 @@ from jinja2 import Environment, BaseLoader
|
|
| 5 |
import tiktoken
|
| 6 |
import yaml
|
| 7 |
from pathlib import Path
|
|
|
|
| 8 |
|
| 9 |
|
| 10 |
class PromptType(Enum):
|
|
@@ -77,4 +78,4 @@ class PromptManager:
|
|
| 77 |
|
| 78 |
|
| 79 |
# Global instance
|
| 80 |
-
prompt_mgmt = PromptManager("config
|
|
|
|
| 5 |
import tiktoken
|
| 6 |
import yaml
|
| 7 |
from pathlib import Path
|
| 8 |
+
import os
|
| 9 |
|
| 10 |
|
| 11 |
class PromptType(Enum):
|
|
|
|
| 78 |
|
| 79 |
|
| 80 |
# Global instance
|
| 81 |
+
prompt_mgmt = PromptManager("config"+os.sep+"prompts.yaml")
|