Commit Graph

19 Commits

Author SHA1 Message Date
UmerHA
19a4c10b6e Langchain integration (#512)
* Added LangChain integration

* Fixed issue created by git checkin process

* Added ':' to characters to remove from end of file path

* Tested initial migration to LangChain, removed comments and logging used for debugging

* Tested initial migration to LangChain, removed comments and logging used for debugging

* Converted camelCase to snake_case

* Turns out we need the exception handling

* Testing Hugging Face Integrations via LangChain

* Added LangChain loadable models

* Renames "qa" prompt to "clarify", since it's used in the "clarify" step, asking for clarification

* Fixed loading model yaml files

* Fixed streaming

* Added modeldir cli option

* Fixed typing

* Fixed interaction with token logging

* Fix spelling + dependency issues + typing

* Fix spelling + tests

* Removed unneeded logging which caused test to fail

* Cleaned up code

* Incorporated feedback

- deleted unnecessary functions & logger.info
- used LangChain ChatLLM instead of LLM to naturally communicate with gpt-4
- deleted loading model from yaml file, as LC doesn't offer this for ChatModels

* Update gpt_engineer/steps.py

Co-authored-by: Anton Osika <anton.osika@gmail.com>

* Incorporated feedback

- Fixed failing test
- Removed parsing complexity by using # type: ignore
- Replace every ocurence of ai.last_message_content with its content

* Fixed test

* Update gpt_engineer/steps.py

---------

Co-authored-by: H <holden.robbins@gmail.com>
Co-authored-by: Anton Osika <anton.osika@gmail.com>
2023-07-23 23:30:09 +02:00
UmerHA
8fd315d264 Implemented logging token usage (solves #322) (#438)
* Implemented logging token usage

Token usage is now tracked and logged into memory/logs/token_usage

* Step names are now inferred from function name

* Incorporated Anton's feedback

- Made LogUsage a dataclass
- For token logging, step name is now inferred via inspect module

* Formatted (black/ruff)

* Update gpt_engineer/ai.py

Co-authored-by: Anton Osika <anton.osika@gmail.com>

* formatting

---------

Co-authored-by: Anton Osika <anton.osika@gmail.com>
2023-07-03 21:28:34 +02:00
Anton Osika
2b8e056d5d Add flow to ask for consent to share learnings – finally (#471)
* Consent flow

* Fix pre-commit

* Fix ruff

* Remove codespell

* Remove codespell fully

* whitespace
2023-07-02 19:17:15 +02:00
Yaroslav Halchenko
088fa3b44c codespell: workflow, config + 1 single uno only typo fixed! (#426)
* Add github action to codespell main on push and PRs

* Add rudimentary codespell config

* Add pre-commit definition for codespell

* Fixed a single typo codespell identifier
2023-07-02 16:47:31 +02:00
Artem Moskvin
d4e9ba9270 Add benchmark report (#463)
* Add benchmark report

* Update scripts/benchmark.py

---------

Co-authored-by: Artem Moskvin <artemm@spotify.com>
Co-authored-by: Anton Osika <anton.osika@gmail.com>
2023-07-02 15:14:33 +02:00
Plamen Ivanov
196361dfcd update pyptoject and revert suppress KeyboardInterrupt (#376)
* build: update pyptoject

* revert: suppress KeyboardInterrupt

* fix: imports
2023-06-25 16:39:40 +02:00
sweep-ai[bot]
ec5dfecba0 Resolve Dependency Conflicts for Google Colab (#392)
* Update pyproject.toml

* Update pyproject.toml

---------

Co-authored-by: sweep-ai[bot] <128439645+sweep-ai[bot]@users.noreply.github.com>
Co-authored-by: Anton Osika <anton.osika@gmail.com>
2023-06-25 16:21:13 +02:00
Anton Osika
7f16abecb3 Make sure benchmark runs and be more strict about collecting feedback (#397)
* Update benchmark script

* Bump version
2023-06-25 15:53:34 +02:00
Anton Osika
8b2ea8ef58 First step in collecting learnings 2023-06-25 10:51:11 +02:00
Anton Osika
f159dc45f2 First step in making gpt-engineer learn. Rename main_prompt -> prompt (#381)
* First step in collecting learnings

* Rename prompts

* remove requirements, use pip install -e . instead

* Add requirements

* Fix tests
2023-06-24 17:53:04 +02:00
Anton Osika
abb9f2332d Distribute preprompt files 2023-06-22 11:28:37 +02:00
Anton Osika
ed1a7da296 Dont require to be in the same folder as the repo to run, v0.0.5 2023-06-22 10:42:35 +02:00
Anton Osika
8a9962a8f8 Update version 2023-06-21 00:38:21 +02:00
Patilla Code
dc834e6ad2 Add pytest pre commit hook (#210) 2023-06-20 11:56:57 +02:00
george
52a021f8de fix(bug): toml misconfiguration (#189) 2023-06-19 13:09:15 +02:00
Anton Osika
a8daabd78a Bump version 2023-06-18 23:31:01 +02:00
Anton Osika
3487363a23 Simplify 2023-06-17 11:04:46 +02:00
Jack Eadie
6f8e976a42 Make gpt-engineer pip installable/runnable (#60) 2023-06-16 13:25:29 +02:00
PatillaCode
12b280fbbb add ruff and black configurations under pyproject.toml 2023-06-15 18:33:24 +02:00