smol-ai / developer

the first library to let you embed a developer agent in your own app!
https://twitter.com/SmolModels
MIT License
11.79k stars 1.03k forks source link

Bugfix/installation and main #120

Open anuk909 opened 1 year ago

anuk909 commented 1 year ago

Change few files to fix errors that new users will encounter:

jsbrown88 commented 1 year ago

Unfortunately this did not solve the "no openai" here is a full log :( any ideas ?

PS C:\Development\SMOLAI\developer> poetry run python main.py --prompt "a HTML/JS/CSS Tic Tac Toe Game"

Traceback (most recent call last): File "C:\Development\SMOLAI\developer\main.py", line 3, in from smol_dev.prompts import plan, specify_file_paths, generate_code_sync File "C:\Development\SMOLAI\developer\smol_dev__init__.py", line 1, in from smol_dev.prompts import * File "C:\Development\SMOLAI\developer\smol_dev\prompts.py", line 6, in import openai ModuleNotFoundError: No module named 'openai'

PS C:\Development\SMOLAI\developer> pip show openai Name: openai Version: 0.27.8 Summary: Python client library for the OpenAI API Home-page: https://github.com/openai/openai-python Author: OpenAI Author-email: support@openai.com License: Location: C:\Users\JSB-WIN\AppData\Local\Programs\Python\Python311\Lib\site-packages Requires: aiohttp, requests, tqdm Required-by:

anuk909 commented 1 year ago

Did you run poetry install before?