Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,26 @@ A command-line tool designed to assist developers in managing and interacting wi

- **OpenAI API Key**: Obtain an API key from [OpenAI](https://platform.openai.com/).

- **pipx**: Install pipx if you haven't already. [pipx installation guide](https://pypa.github.io/pipx/installation/)

### 🔧 Steps

#### Option 1: Install with pipx (Recommended)

1. **Install the package using pipx**:

```bash
pipx install https://github.com/Doriandarko/o1-engineer/archive/main.zip
```

2. **Run the tool**:

```bash
o1-engineer
```

#### Option 2: Manual Installation

1. **Clone the Repository**:

```bash
Expand Down
Binary file added dist/o1_engineer-0.1.0-py3-none-any.whl
Binary file not shown.
Binary file added dist/o1_engineer-0.1.0.tar.gz
Binary file not shown.
Empty file added o1_engineer/__init__.py
Empty file.
5 changes: 4 additions & 1 deletion o1-eng.py → o1_engineer/o1_eng.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@

MODEL = "o1-mini"
# Initialize OpenAI client
client = OpenAI(api_key="YOUR KEY")

import os

client = OpenAI(api_key=os.getenv('OPENAI_API_KEY'))


CREATE_SYSTEM_PROMPT = """You are an advanced o1 engineer designed to create files and folders based on user instructions. Your primary objective is to generate the content of the files to be created as code blocks. Each code block should specify whether it's a file or folder, along with its path.
Expand Down
507 changes: 507 additions & 0 deletions poetry.lock

Large diffs are not rendered by default.

28 changes: 28 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[tool.poetry]
name = "o1-engineer"
version = "0.1.0"
description = ""
authors = ["Your Name <you@example.com>"]
readme = "README.md"
packages = [{include = "o1_engineer"}]


[tool.poetry.dependencies]
python = "^3.12"
openai = "^1.50.2"
termcolor = "^2.4.0"
prompt-toolkit = "^3.0.48"
rich = "^13.8.1"

[tool.poetry.scripts]
o1-engineer = "o1_engineer.o1_eng:main"

[tool.poetry.group.dev.dependencies]
pipx = "^1.2.0"

[tool.poetry.scripts]
install-with-pipx = "scripts.install_with_pipx:main"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"