kopia lustrzana https://github.com/biobootloader/wolverine
Add env variable VALIDATE_JSON_RETREY
Add env variable VALIDATE_JSON_RETREY to configure number of retries when validating json object. Add typing and comments.pull/31/head
rodzic
489d593156
commit
bcd1db9f7b
|
@ -21,7 +21,7 @@ DEFAULT_MODEL = os.environ.get("DEFAULT_MODEL", "gpt-4")
|
|||
VALIDATE_JSON_RETRY = int(os.getenv("VALIDATE_JSON_RETRY", -1))
|
||||
|
||||
# Read the system prompt
|
||||
with open("prompt.txt") as f:
|
||||
with open(os.path.join(os.path.dirname(__file__), "..", "prompt.txt"), 'r') as f:
|
||||
SYSTEM_PROMPT = f.read()
|
||||
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue