Spaces:
Runtime error
Runtime error
MetaWabbit
commited on
Commit
•
269ee37
1
Parent(s):
49767aa
Update ui/api.py
Browse files
ui/api.py
CHANGED
@@ -32,7 +32,7 @@ def set_state(state_file, state):
|
|
32 |
|
33 |
|
34 |
class AutoAPI:
|
35 |
-
def __init__(self, openai_key, ai_name, ai_role,
|
36 |
self.openai_key = openai_key
|
37 |
hex = uuid.uuid4().hex
|
38 |
print(hex)
|
@@ -43,7 +43,7 @@ class AutoAPI:
|
|
43 |
with open(os.path.join(REPO_DIR, "ai_settings.yaml"), "w") as f:
|
44 |
f.write(
|
45 |
f"""ai_goals:
|
46 |
-
{newline.join([f'- {goal[0]}' for goal in
|
47 |
ai_name: {ai_name}
|
48 |
ai_role: {ai_role}
|
49 |
"""
|
|
|
32 |
|
33 |
|
34 |
class AutoAPI:
|
35 |
+
def __init__(self, openai_key, ai_name, ai_role, top_13_goals):
|
36 |
self.openai_key = openai_key
|
37 |
hex = uuid.uuid4().hex
|
38 |
print(hex)
|
|
|
43 |
with open(os.path.join(REPO_DIR, "ai_settings.yaml"), "w") as f:
|
44 |
f.write(
|
45 |
f"""ai_goals:
|
46 |
+
{newline.join([f'- {goal[0]}' for goal in top_13_goals if goal[0]])}
|
47 |
ai_name: {ai_name}
|
48 |
ai_role: {ai_role}
|
49 |
"""
|