28 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
Anton Osika
20ea0c126a Simplify archiving process (#469)
* simplify args

* Fix tests

* Black format
2023-07-02 16:43:13 +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
Anton Osika
5ac167b1b0 Revert part of PR 2023-06-25 16:40:51 +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
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
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
Emil Ahlbäck
05c685e7cb Merge pull request #286 from kbshal/opensource
refactor: Refactor loop for improved efficiency and readability
2023-06-23 14:21:37 +02:00
Plamen Ivanov
1b2831ab85 Refactoring and suggestions (#334) 2023-06-23 12:01:29 +02:00
abdelrhman yasser2020
9bde354940 edit on some typing (#341) 2023-06-23 01:09:18 +02:00
kafka
5d33593517 refactor: Refactor loop for improved efficiency and readabilit 2023-06-21 14:24:43 +05:45
Anton Osika
16dd96f50d Many small improvements, new benchmark results! 2023-06-21 00:37:18 +02:00
Romain d'Esparbès
698eb8a6fd Add mypy (#224) 2023-06-20 11:50:48 +02:00
LopeKinz
ac958df8d7 'Refactored by Sourcery' (#188) 2023-06-19 13:26:55 +02:00
Anton Osika
35c35b3ffa Simplify if statements 2023-06-19 00:03:13 +02:00
Anton Osika
e767edf108 Add a print logs script 2023-06-18 23:52:26 +02:00
Anton Osika
2fd5e78fd5 Revert "Benchmark is set to work as a standalone shape (#165)"
This reverts commit e0a3296660.
2023-06-18 22:35:05 +02:00
Anton Osika
8180f0346c Fix the errors with parsing 2023-06-18 22:34:31 +02:00
nwa
e0a3296660 Benchmark is set to work as a standalone shape (#165) 2023-06-18 21:47:50 +02:00
Junlin Liu
d237c175cd fix docstring #150 (#152) 2023-06-18 15:36:45 +02:00
Anton Osika
2e4baf7fe1 Update benchmarking 2023-06-18 15:16:20 +02:00
Patilla Code
084ce1759b make pre commit pass in the whole codebase (#149) 2023-06-18 14:46:03 +02:00
Anton Osika
2a7359202c Script to wipe all files apart from prompts from benchmark 2023-06-17 14:18:00 +02:00
Anton Osika
03d8fff5d2 Make steps configurable 2023-06-17 13:02:16 +02:00
Anton Osika
ee0737b6e3 Add benchmark script 2023-06-17 12:11:34 +02:00
PatillaCode
f4eb1e109f black formatted 2023-06-15 18:33:52 +02:00
Anton Osika
1c0747f6c6 Fix script 2023-06-04 00:21:39 +02:00
Anton Osika
6a31d875c7 Clean up clarifying question part 2023-05-30 08:39:38 +02:00