Commit Graph

151 Commits

Author SHA1 Message Date
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
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
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
Nicholas Albion
5b7b621832 Refactored execute_step() as per #80 2023-09-11 14:09:16 +10:00
Goon
3b207987aa Merge remote-tracking branch 'upstream/main' 2023-09-11 10:26:05 +07:00
Goon
c39346868a fix(gitignore): rm cache 2023-09-11 10:08:57 +07:00
Goon
367caa1797 fix(gitignore): rm pilot-env and cache 2023-09-11 10:08:42 +07:00
LeonOstrez
b780a9f19c load environment asap so that other files have it available 2023-09-09 09:53:48 +02:00
Nicholas Albion
f2187b5a04 fixed tests for CI 2023-09-09 12:02:22 +10:00
Nicholas Albion
a38c7c4f6d linting 2023-09-09 11:54:16 +10:00
Nicholas Albion
4b64631bec linting 2023-09-09 11:50:55 +10:00
Nicholas Albion
3f36d04821 resolved deprecation warning 2023-09-09 11:44:19 +10:00
Nicholas Albion
c813d81d41 tests should pass in CI 2023-09-09 11:43:38 +10:00
Nicholas Albion
46b84315ec get_step_code_changes() is undefined, commented out for now 2023-09-09 11:16:11 +10:00
Nicholas Albion
8cec113df9 test_username_to_uuid() 2023-09-09 10:54:33 +10:00
Nicholas Albion
831e6a4265 Merge remote-tracking branch 'origin/main' into feature/get_email-from-gitconfig
# Conflicts:
#	pilot/utils/arguments.py
2023-09-09 10:54:02 +10: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
LeonOstrez
c724429905 Merge pull request #58 from nalbion/feature/use_app_type_in_prompts
use {{ app_type }} from project.args in prompts
2023-09-08 15:18:00 +02:00
LeonOstrez
fd1fae8c43 Merge branch 'main' into feature/user_id-from-getpass_getuser 2023-09-08 14:46:04 +02:00
LeonOstrez
d0fe3e3436 Merge pull request #65 from nalbion/feature/load-app-by-user-workspace
load app by user workspace
2023-09-08 14:35:48 +02:00
LeonOstrez
8b61c3206a Merge pull request #59 from nalbion/feature/workspace_configurable_in_args
workspace path can be specified in CLI args
2023-09-08 14:19:24 +02:00
Goon
2c567793c5 fix(env.example): correct model gpt-4 2023-09-08 18:07:06 +07:00
Goon
e5a71e884b fix(env): switch back to default env vars 2023-09-08 18:06:03 +07:00
Goon
02d334a750 fix(env.example): add openrouter env variables 2023-09-08 15:58:57 +07:00
Goon
02623b6353 fix(llm connection): add openrouter api endpoint 2023-09-08 15:52:29 +07:00
Nicholas Albion
95c6e26665 removed commented-out code 2023-09-08 15:20:32 +10:00
Nicholas Albion
e33616450d BaseModel.id is a UUIDField, create UUID from username 2023-09-08 15:19:47 +10:00
Nicholas Albion
891d153a2b BaseModel.id is a UUIDField, create UUID from username 2023-09-08 15:14:49 +10:00
Nicholas Albion
ee77f1ffac get_app_by_user_workspace(user_id, workspace) 2023-09-08 15:13:37 +10:00
RAMKRISHNA VERMA
03a96e2487 Fix : ValueError: Unsupported DATABASE_TYPE: postgres 2023-09-08 03:13:58 +05:30
Nicholas Albion
0ec6da74ab workspace path can be specified in CLI args 2023-09-08 06:29:46 +10:00
Zvonimir Sabljic
258e89a8e0 Better logs 2023-09-07 22:07:46 +02:00
Nicholas Albion
bd67695828 use {{ app_type }} from project.args in prompts 2023-09-08 05:25:30 +10:00
Nicholas Albion
720fa26bcf user_id defaults to OS username 2023-09-08 04:05:26 +10:00
Nicholas Albion
c4af2750ac user_id defaults to OS username 2023-09-08 04:01:46 +10: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
Zvonimir Sabljic
d52c674cf0 Fix 2023-09-07 19:47:05 +02:00
Nicholas Albion
cf94fcaebe reordered imports 2023-09-08 03:05:53 +10:00
Nicholas Albion
48edfae03c handle rate_limit_exceeded error 2023-09-08 03:05:26 +10:00