11 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
David Cameron
0d0aaaa9b0 Handle newlines between filename (#250) 2023-06-20 18:43:12 +02:00
David Cameron
9b3db78b95 Additional filename handling (#221) 2023-06-20 12:09:28 +02:00
David Cameron
613aab8ef7 Fix square bracket file name issue 2023-06-19 07:07:59 -04:00
Anton Osika
8180f0346c Fix the errors with parsing 2023-06-18 22:34:31 +02:00
Carl Thomé
502756bb58 black 2023-06-18 15:04:30 +02:00
Emil Ahlbäck
57a8700825 fix to_files 2023-06-18 14:54:06 +02:00
Enzo Martin
8b3862d94d Fix linting 2023-06-18 10:34:35 +02:00
Enzo Martin
e7df947b98 Add support for directory paths in filenames and improve code splitting
- Enforce an explicit markdown code block format
- Add a token to split the output to clearly detect when the code blocks start
- Save all non-code output to a `README.md` file
- Update RegEx to extract and strip text more reliably and clean up the output
- Update the identify prompts appropriately
2023-06-18 10:06:36 +02:00
Anton Osika
5cb6b4539b Execute step 2023-06-17 14:10:29 +02:00
Jack Eadie
6f8e976a42 Make gpt-engineer pip installable/runnable (#60) 2023-06-16 13:25:29 +02:00