Commit Graph

111 Commits

Author SHA1 Message Date
Zvonimir Sabljic
5b76ea2aa2 Don't let it halucinate files 2023-08-04 13:31:55 +02:00
Zvonimir Sabljic
f70fc83c08 Added command runs model 2023-08-04 10:18:50 +02:00
Zvonimir Sabljic
d2b491757b Merge branch 'main' of github.com:Pythagora-io/copilot 2023-08-04 10:16:37 +02:00
Zvonimir Sabljic
69a0d153bf While initializing a project, restore files from a specific dev step 2023-08-04 10:15:14 +02:00
Zvonimir Sabljic
08187cd93f Make timeout at least 2000ms while running commands 2023-08-04 10:13:52 +02:00
Zvonimir Sabljic
68a847a827 When restoring files, first, clear the entire directory of previously created files + while updating a file, create a parent directory if it doesn't exist 2023-08-04 10:13:23 +02:00
Zvonimir Sabljic
400281fb66 Smaller fixes 2023-08-04 10:12:07 +02:00
Zvonimir Sabljic
72e4a1cf64 Implemented initial version for debugging 2023-08-04 08:23:21 +02:00
Zvonimir Sabljic
1ed59ed820 Remove explanation about available values when enum is defined 2023-08-04 08:21:14 +02:00
Zvonimir Sabljic
c348d6994b Milisecond -> millisecond 2023-08-04 08:20:29 +02:00
Zvonimir Sabljic
ef03879f86 Added human intervention step + renamed verification to intervention 2023-08-03 21:23:30 +02:00
Zvonimir Sabljic
c940bb9594 Small fixes 2023-08-03 21:20:30 +02:00
Zvonimir Sabljic
1c52b64a8d Enabled streaming of LLM response 2023-08-03 20:45:11 +02:00
Zvonimir Sabljic
ce56224270 Fix: replace functions in the data that's being hashed 2023-08-03 20:44:39 +02:00
Zvonimir Sabljic
5b493accf9 escape special characters in the GPT response - currently hardcoded to json.loads() but we might need it in the future 2023-08-03 20:44:06 +02:00
Zvonimir Sabljic
6395f6fba7 Added saving command run responses and restoring them 2023-08-03 20:40:49 +02:00
Zvonimir Sabljic
f451f5053f Simplifying the flow - updated prompts 2023-08-03 18:54:38 +02:00
Zvonimir Sabljic
38ccbd8581 Simplifying the flow - renamed from milisecond to millisecond 2023-08-03 18:53:59 +02:00
Zvonimir Sabljic
548913a066 Simplifying the flow - changed processing command timeout from seconds to miliseconds 2023-08-03 18:52:40 +02:00
Zvonimir Sabljic
187a19b44d Simplifying the flow - implemented the simpler communication between the developer and the code monkey 2023-08-03 18:52:00 +02:00
Zvonimir Sabljic
3bfae8a97e Simplifying the flow - added logs 2023-08-03 18:47:21 +02:00
Zvonimir Sabljic
5c27d407b8 Simplifying the flow - updating function calls 2023-08-03 18:45:58 +02:00
LeonOstrez
749f9bf663 merge 2023-08-03 17:27:34 +02:00
LeonOstrez
208fba56a9 fix saving user and app, update user stories and user tasks to be generated one by one 2023-08-03 17:24:59 +02:00
Zvonimir Sabljic
3345f37bb3 Smaller fixes 2023-08-03 16:21:34 +02:00
Zvonimir Sabljic
5720a915a6 Fixed running commands (it was hanging while getting the stderr) 2023-08-03 16:20:03 +02:00
Zvonimir Sabljic
fec1ce48b6 Changed so development steps are hashed by the prompt path, prompt data and an llm request number + added functionality for resuming from a specific development step 2023-08-03 16:18:18 +02:00
Zvonimir Sabljic
82bfb2bd3e Removed comments and hardcoded lines 2023-08-03 11:25:34 +02:00
Zvonimir Sabljic
186b1312f6 Implemented testing of code changes 2023-08-03 11:20:50 +02:00
Zvonimir Sabljic
7496dceb7d Fixed code monkey code writing 2023-08-03 11:20:11 +02:00
Zvonimir Sabljic
f5bc046e1c Fixed code changes prompt for Code Monkey 2023-08-03 11:19:15 +02:00
Zvonimir Sabljic
fb5afd3417 If there is only one function call, force GPT to use it and if there are multiple, use 'auto' 2023-08-03 11:17:48 +02:00
Zvonimir Sabljic
270f5f9e2a Added root folder parameter from which commands will be ran 2023-08-03 11:17:06 +02:00
Zvonimir Sabljic
60805a5408 Added ask_for_human_verification and get_test_directory_tree to the Project class + added so that directory tree is created from within the folder 2023-08-03 11:16:17 +02:00
Zvonimir Sabljic
3904c0bf03 Fixed some of the function calls 2023-08-03 11:10:07 +02:00
Zvonimir Sabljic
3a74273abb Implemented saving and restoring project snapshots 2023-08-02 16:47:52 +02:00
Zvonimir Sabljic
3f6ea24dae Added root_path + removed unused imports 2023-08-02 16:30:03 +02:00
Zvonimir Sabljic
cdb6f83c61 Added functionality for saving and restoring project files 2023-08-02 16:29:36 +02:00
Zvonimir Sabljic
6cf8de709c Added files helper 2023-08-02 16:04:18 +02:00
Zvonimir Sabljic
0a19f2f54f Added return_files 2023-08-02 16:02:37 +02:00
Zvonimir Sabljic
3e0789a508 Removed API bakery from Architect's technology stack 2023-08-02 16:00:09 +02:00
Zvonimir Sabljic
7674a04b3f Adding code monkey prompts 2023-08-02 14:56:08 +02:00
Zvonimir Sabljic
b9f7497178 Prompt changes 2023-08-02 14:55:30 +02:00
Zvonimir Sabljic
7648dfd310 Added function calls for different conversations 2023-08-02 14:54:37 +02:00
Zvonimir Sabljic
2dc2c1e86f committing CodeMonkey class 2023-08-02 14:27:02 +02:00
Zvonimir Sabljic
69abec1b8c committing Developer class 2023-08-02 14:26:20 +02:00
Zvonimir Sabljic
de96fba775 Enable file fetching and updating from the Project class 2023-08-02 14:25:44 +02:00
Zvonimir Sabljic
8e3f6c8753 Get the correct response when returning tuples (REMOVE LATER ON) 2023-08-02 14:24:43 +02:00
Zvonimir Sabljic
6c84d15b44 Finished implementation for saving and loading development steps 2023-08-02 11:52:19 +02:00
Zvonimir Sabljic
96633f2b57 Updated DevelopmentSteps model 2023-08-02 11:39:22 +02:00