Commit Graph

55 Commits

Author SHA1 Message Date
Zvonimir Sabljic
151aa051e2 Improved debugging process and enabled splitting of app development into tasks and then into steps
- split step implementation into different functions
- standardized the return value in the implementation process - { "success": True }
- added propagation of errors back to the recursion level 0 with TooDeepRecursionError and TokenLimitError
- created new class Debugger and moved debugging in it
2023-09-12 21:32:56 +02:00
Zvonimir Sabljic
19ac692509 Don't send max_tokens to openai api so we can use as much context as possible 2023-09-12 21:28:01 +02:00
Zvonimir Sabljic
9c06143af0 When sending a CLI error to LLM, select the first MAX_COMMAND_OUTPUT_LENGTH characters for stderr and last MAX_COMMAND_OUTPUT_LENGTH for stdout 2023-09-12 21:23:27 +02:00
Zvonimir Sabljic
2f289ab3ae Disabled GPT Pilot to request files mid conversation because we're sending all files in the first prompt anyway - this is TEMPORARY to save some context for now 2023-09-12 21:18:13 +02:00
Zvonimir Sabljic
53f90fed86 Improved log 2023-09-12 21:17:06 +02:00
Zvonimir Sabljic
05eeda5e34 Fix for setting up file path and name 2023-09-12 21:07:37 +02:00
Zvonimir Sabljic
d802443c59 TEMP FIX to make sure we don't select any files from the database that either are empty ('') or don't have any snapshot saved 2023-09-12 21:07:10 +02:00
Zvonimir Sabljic
33c38985bf Added a question at the beginning of a project rerun so user can decide if they want to update files with their latest changes they made 2023-09-12 21:06:06 +02:00
Zvonimir Sabljic
6e977590c3 Replace file content in all messages each time we load a branch in AgentConvo - REFACTOR eventually so we don't deal with strings but with real data 2023-09-12 21:03:10 +02:00
Zvonimir Sabljic
43d8c5511d Added current high level step to saved command runs, user inputs and dev steps because we skip high level steps in one way and then in the coding step, we skip them with these functions. REFACTOR eventually so that we skip everything with saved steps since the beginning of the project. 2023-09-12 20:57:11 +02:00
Zvonimir Sabljic
6a46851b20 Added catching and retrying when there is an error with Token limit 2023-09-08 18:03:54 +02:00
Zvonimir Sabljic
6b8f8fb2dc Fix 2023-09-08 18:00:27 +02:00
Zvonimir Sabljic
9c751d247b Revert "Revert "Added back the functionality for tech lead to break down the project and the developer to code task by task""
This reverts commit f91da2b5eb.
2023-09-07 19:48:16 +02:00
LeonOstrez
44a05b49b5 collect telemetry and ask user for feedback 2023-09-07 13:01:44 +02:00
LeonOstrez
3e957b9bd8 disable microservices when creating app 2023-09-06 21:00:01 +02:00
LeonOstrez
83378033be remove checking for tokens before openai api request and handle too many tokens in response 2023-09-06 16:46:08 +02:00
LeonOstrez
f383e6c16e delete all development steps if project continued from step before 'coding' 2023-09-06 16:43:11 +02:00
LeonOstrez
677dd35617 Merge branch 'main' into sqlite 2023-09-06 09:45:00 +02:00
LeonOstrez
d343f2edea add sqlite db 2023-09-06 09:16:35 +02:00
Zvonimir Sabljic
f91da2b5eb Revert "Added back the functionality for tech lead to break down the project and the developer to code task by task"
This reverts commit 990eb0d182.
2023-09-05 23:13:09 +02:00
Zvonimir Sabljic
83ebd7939d Merge branch 'main' into sander110419-main 2023-09-05 22:52:01 +02:00
Zvonimir Sabljic
a9ead6ecbb Fix to enable regular OpenAI access 2023-09-05 22:50:48 +02:00
Dani Acosta
af6a972cba Add OPENAI_MODEL env var
Adds a env variable OPENAI_MODEL to be able to use different models to GPT-4
2023-09-05 00:15:21 +02:00
rajveer43
c4299dac34 push 2023-09-04 20:10:20 +05:30
Zvonimir Sabljic
c4a5bbf1f2 IMPORTANT: Fix for shell built-in commands - this will need to be improved down the line 2023-09-02 17:34:05 +02:00
Zvonimir Sabljic
f8f7006e68 Added description to human intervention log 2023-09-02 17:33:30 +02:00
Zvonimir Sabljic
8e3fecfb33 Fix 2023-09-02 17:33:02 +02:00
Zvonimir Sabljic
9967df02e8 HARDCODED: we don't want to create directories in any other way than by running a mkdir command 2023-09-02 17:32:52 +02:00
Zvonimir Sabljic
990eb0d182 Added back the functionality for tech lead to break down the project and the developer to code task by task 2023-09-02 17:29:20 +02:00
Zvonimir Sabljic
190230a0e5 Changed position of saving files 2023-09-02 17:27:35 +02:00
Zvonimir Sabljic
4ba3986237 Improved prompts by removing unnecessary new lines 2023-09-02 17:26:41 +02:00
Zvonimir Sabljic
827f18a27d Typo fix 2023-09-02 17:24:46 +02:00
Sander Hilven
34a5397209 Added MAX_TOKENS to the .env as a variable 2023-09-01 10:41:39 +02:00
Sander Hilven
a4d520763f Added model selection to .env and update readme 2023-09-01 10:34:12 +02:00
Sander Hilven
660047a071 Hardcoded model in endpoint URL, now fixed. 2023-09-01 09:56:39 +02:00
Sander Hilven
984379fe71 Adde Azure OpenAI endpoint.
Tested and confirmed working.
2023-09-01 09:53:17 +02:00
Zvonimir Sabljic
4638a209b2 Fix 2023-08-31 14:41:31 +02:00
Zvonimir Sabljic
7e3f912a9e Added db init file and updated README 2023-08-31 14:33:47 +02:00
LeonOstrez
538f2e03a6 Merge pull request #5 from scoobie-bot/main
Update cli.py
2023-08-28 16:52:33 +02:00
LeonOstrez
f294babec3 cleanup PR 2023-08-28 16:49:20 +02:00
Zvonimir Sabljic
be49e007ea fix 2023-08-25 14:21:52 +02:00
Zvonimir Sabljic
f4dc07407e Made logging look nicer 2023-08-25 14:21:41 +02:00
scooobie
1df39a2cb5 Update cli.py
added windows version of the os.killpg
2023-08-24 13:34:41 +08:00
scooobie
d636d86219 Update cli.py
had issues using setsid on Windows, so this detects windows/Unix and uses the correct version of run_command
2023-08-24 12:28:54 +08:00
Zvonimir Sabljic
f0cc8cdc59 Enabled update_files_before_start flag 2023-08-23 14:50:19 +02:00
Zvonimir Sabljic
41b6bd23e2 Fixes 2023-08-23 14:50:00 +02:00
Zvonimir Sabljic
1defc7d126 Show stderr in real time 2023-08-23 14:47:54 +02:00
Zvonimir Sabljic
fe139504f6 Merge branch 'main' of github.com:Pythagora-io/gpt-pilot 2023-08-17 16:20:42 +02:00
Zvonimir Sabljic
50bae8ed95 Updates 2023-08-17 09:13:42 +02:00
LeonOstrez
46b74de697 fix creating database 2023-08-16 20:24:06 +02:00