Commit Graph

374 Commits

Author SHA1 Message Date
Zvonimir Sabljic
ffe4fbeba9 Enabled catching of max token limit errors from OpenAI's response 2023-09-18 19:18:54 -07:00
Zvonimir Sabljic
3e20f52b8a Changed log 2023-09-18 19:18:00 -07:00
Zvonimir Sabljic
5aac5e0385 Import os 2023-09-18 19:17:48 -07:00
LeonOstrez
67209b5b27 merge master into debugging_ipc branch 2023-09-18 19:09:37 -07:00
Zvonimir Sabljic
6d83952750 Merge branch 'debugging_ipc' of github.com:Pythagora-io/gpt-pilot into debugging_ipc 2023-09-18 18:39:43 -07:00
Zvonimir Sabljic
ab20b7a71c Fixed return values 2023-09-18 18:37:56 -07:00
Zvonimir Sabljic
52e60b1376 Added print 2023-09-18 18:37:20 -07:00
Zvonimir Sabljic
dfbdae7062 Removed setting last_development_step because it's set in save_development_step function 2023-09-18 18:37:10 -07:00
Zvonimir Sabljic
3e5b87f2a9 Don't update db on conflict 2023-09-18 18:36:18 -07:00
Zvonimir Sabljic
aa63fa1988 Enable exception to be thrown even during the restoring phase of the project 2023-09-18 18:35:50 -07:00
zvone187
2d0b741a93 Merge pull request #97 from gravypower/main
Fixed docker compose health check on the database and update readme
2023-09-18 16:28:25 -07:00
LeonOstrez
3da60f5c8a add script for packaging repo 2023-09-18 07:49:27 -07:00
Aaron Job
322a003bd2 fixed doker link 2023-09-15 22:36:47 +00:00
Aaron Job
242db9c4b2 fixed docker health check 2023-09-15 22:33:03 +00:00
Zvonimir Sabljic
48af667cc0 Fixed a couple of return statements 2023-09-15 17:58:28 +02:00
Zvonimir Sabljic
b1e0356432 Create a branch name if no name is provided - we should refactor all other places not to send any specific name 2023-09-15 17:52:58 +02:00
Zvonimir Sabljic
915464386f Fixed deleting subsequent steps 2023-09-15 17:52:21 +02:00
Zvonimir Sabljic
0dd6b6d996 Changed development_steps, command_runs, and user_inputs models - we don't need to hash any data - we can just use it as is 2023-09-15 17:51:24 +02:00
Zvonimir Sabljic
0e739f350f Fix 2023-09-15 09:46:35 +02:00
Zvonimir Sabljic
bf36106ee7 Fixed getting developer's help upon TooDeepRecursionError 2023-09-15 09:44:09 +02:00
Zvonimir Sabljic
65135344ab Converted colored leftovers 2023-09-15 09:43:30 +02:00
Zvonimir Sabljic
9a7c15e0c5 Merge branch 'ipc' into debugging_ipc 2023-09-14 09:40:36 +02:00
Zvonimir Sabljic
e1e483c5f2 Cimmitting missing files 2023-09-13 09:14:59 +02:00
Zvonimir Sabljic
1f41e64c26 Better logging of errors 2023-09-12 21:39:43 +02:00
Zvonimir Sabljic
0619b53d18 Necessary flag so 33c38985bf works 2023-09-12 21:35:07 +02:00
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
LeonOstrez
80914f0722 Merge pull request #81 from nalbion/feature/should_execute_step
Refactored `execute_step()` as per #80
2023-09-12 12:57:52 +02:00
LeonOstrez
b023205a53 Merge pull request #85 from alter123/patch-1
Add check when the response is empty
2023-09-12 08:40:07 +02:00
LeonOstrez
9ffcdf79bb Merge pull request #82 from nalbion/feature/test_CodeMonkey
Feature/test code monkey
2023-09-12 08:09:12 +02:00
LeonOstrez
1d7c37324f Merge pull request #74 from gravypower/main
Added in ablity to quickley get going with docker and docker compose
2023-09-11 22:27:26 +02:00
LeonOstrez
cf99e5954e Merge pull request #69 from mrgoonie/main
feat(llm_connection): add openrouter api endpoint
2023-09-11 22:26:40 +02:00
Jay
74cbe33421 Add check when the response is empty
{
  "id": "",
  "object": "",
  "created": 0,
  "model": "",
  "prompt_annotations": [
    {
      "prompt_index": 0,
      "content_filter_results": {
        "hate": { "filtered": false, "severity": "safe" },
        "self_harm": { "filtered": false, "severity": "safe" },
        "sexual": { "filtered": false, "severity": "safe" },
        "violence": { "filtered": false, "severity": "safe" }
      }
    }
  ],
  "choices": [],
  "usage": null
}


In newer versions of models, at times choices array can be empty
2023-09-12 00:01:13 +05:30
zvone187
d9959f9c49 Update README.md 2023-09-11 20:00:19 +02:00
zvone187
8b16391704 Update README.md 2023-09-11 19:21:47 +02:00
zvone187
921a3a696d Merge pull request #4 from Zafiro12/main
Added table of contents to readme
2023-09-11 19:20:18 +02:00
zvone187
834df52b5e Merge branch 'main' into main 2023-09-11 19:19:15 +02:00
zvone187
b90a7473fe Update README.md 2023-09-11 19:08:38 +02:00
Zvonimir Sabljic
3408d02a36 Remove the legacy line 2023-09-11 15:58:12 +02:00
Nicholas Albion
e9e5532295 tidy up 2023-09-11 22:16:22 +10:00
Nicholas Albion
a94cbf9209 added documentation 2023-09-11 22:15:26 +10:00
Nicholas Albion
eea510a1e8 unit tests for CodeMonkey 2023-09-11 22:12:50 +10:00