File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 88``` sh
99gpt_cmd " Install python3 and pip3 and symlink them to python and pip"
1010
11- gpt_cmd " You're running on an alpine linux distro that already has wget and bash installed. Install kafka"
11+ gpt_cmd " You're running in a container that already has wget and bash installed. Install kafka"
1212
1313gpt_cmd " Install SQLite and write a script to verify it's working correctly"
1414```
Original file line number Diff line number Diff line change 11import datetime
22import json
33import os
4+ import platform
45import subprocess
56import sys
67from openai import OpenAI
@@ -121,9 +122,10 @@ def prompt_user_yn(prompt):
121122def main (goal ):
122123 convo_timestamp = datetime .datetime .now ().strftime ("%Y-%m-%d_%H-%M-%S" )
123124 convo_file_name = None
125+ system_info = f'System info:\n OS: { sys .platform } \n Architecture: { platform .machine ()} '
124126 messages = [
125127 {"role" : "system" , "content" : SYSTEM_PROMPT },
126- {"role" : "user" , "content" : goal }
128+ {"role" : "user" , "content" : f' { goal } \n { system_info } ' }
127129 ]
128130
129131 def save_convo ():
You can’t perform that action at this time.
0 commit comments