feat: USE_FULL_PROJECT_PROMPT + extracting code from ```#105
feat: USE_FULL_PROJECT_PROMPT + extracting code from ```#105goooseman wants to merge 9 commits intosmol-ai:mainfrom
Conversation
USE_FULL_PROJECT_PROMPT If enabled for each file generation prompt we will include all the files generated before Also, sometimes GPT-3.5 still returns some words around the content of the file This change extracts code from ``` blocks Also, OPENAI_DEFAULT_MODEL and OPENAI_DEFAULT_MAX_TOKENS env vars added
…-developer into feat/full-codebase-prompt
smol-ai/developer#105 DEFAULT_MAX_TOKENS=0
smol-ai/developer#105 DEFAULT_MAX_TOKENS=0
New feat: spoilers! smol-ai/developer#105 DEFAULT_MAX_TOKENS=0
|
@CodiumAI-Agent please review |
PR Analysis
PR Feedback
How to use
|
Changes:
USE_FULL_PROJECT_PROMPTenv var. If enabled for each file generation prompt we will include all the files generated beforeOPENAI_DEFAULT_MODELandOPENAI_DEFAULT_MAX_TOKENSenv vars addedThe change is tested with
USE_FULL_PROJECT_PROMPT=True OPENAI_DEFAULT_MODEL=gpt-3.5-turbo-16k-0613 OPENAI_DEFAULT_MAX_TOKENS=9000andUSE_FULL_PROJECT_PROMPTmakes a big change for small projects. My generated project is ~5000 tokens, so I'm safe to include full project files in the prompt.