Skip to content
Merged

Dev #70

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
5 changes: 5 additions & 0 deletions .changeset/curly-owls-visit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"overide": minor
---

Now we are able to use response_format in case of OpenAi api
5 changes: 5 additions & 0 deletions .changeset/dry-peaches-bow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"overide": patch
---

Added support for `--path` option in `init` and `start` commands. This allows user to initialise and start overide in any target path on a system.
5 changes: 5 additions & 0 deletions .changeset/hungry-sheep-bathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"overide": minor
---

Rollback: Embeddings and Dependency graph support.
5 changes: 5 additions & 0 deletions .changeset/popular-ravens-laugh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"overide": major
---

This change removes all other platform support besides OpenAI, as well as some code refactoring.
17 changes: 5 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@
- [Community](#community)
- [License](#license)


## Key Features

- **IDE Agnostic**: Works with any IDE or text editor
- **AI-Powered Code Generation**: Uses OpenAI, DeepSeek, or Groq APIs
- **AI-Powered Code Generation**: Uses OpenAI API
- **Live File Monitoring**: Continuously monitors files for code generation prompts
- **Simple Prompting Syntax**: Uses intuitive `//> <//` patterns for code generation

Expand All @@ -44,18 +43,12 @@ For more installation options, see our [installation guide](https://github.com/O

### Adding API Key

Configure your AI platform credentials:
Configure your OpenAI credentials:

```bash
overide config --global
```

Select an active platform if you've configured multiple:

```bash
overide config --select-active
```

### Configure a Project

Configure Overide in your project directory:
Expand Down Expand Up @@ -85,7 +78,7 @@ Overide will generate and insert code:
```javascript
//- 'Hello, World!' Function
function helloWorld() {
console.log("Hello, World!");
console.log("Hello, World!");
}
//> Accept the changes (y/n): -//
```
Expand All @@ -96,8 +89,8 @@ Configure Overide using `oi-config.json`:

```json
{
"name": "project name",
"ignore": ["node_modules", "*.test.js"]
"name": "project name",
"ignore": ["node_modules", "*.test.js"]
}
```

Expand Down
50 changes: 12 additions & 38 deletions assets/prompt.structure.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,14 @@
{
"openai": {
"systemMessage": "Your task is to provide accurate and efficient code completions and respond in VALID JSON.",
"context": "Below is the current code context:",
"format": "```[\n{\n \"find\": [lines to find],\n \"replace\": [lines to replace]\n},\n{\n \"find\": [lines to find],\n \"replace\": [lines to replace]\n}\n]\n```",
"instructions": [
"Do not include comments explaining the changes.",
"Make sure that the structure of the file is maintained. Imports, Global Variables and should be placed at the top of the file below other imports or global variables.",
"Make sure that the {lines in find} accounts for empty spaces and empty lines in the existing code.",
"Include tabs and spaces in the replace lines to PROPERLY INDENT according to existing code.",
"Use the following JSON format to respond:"
]
},
"deepseek": {
"systemMessage": "You are a coding assistant API specialized in generating accurate and efficient code completions and responding in valid JSON.",
"context": "Below is the current code context:",
"format": "[\n{\n \"find\": [lines to find],\n \"replace\": [lines to replace]\n},\n{\n \"find\": [lines to find],\n \"replace\": [lines to replace]\n}\n]\n",
"instructions": [
"Do not include comments explaining the changes.",
"Please provide the entire code block that should be replaced, and the entire new code block as the replacement, as list of lines.",
"Return the JSON inside a markdown block quote using triple backticks (```).",
"If code to be replaced is separated by even ONE OR MORE empty line then return multiple {find, replace} structures in a list",
"Include proper indentation in code.",
"Use the following JSON format to respond:"
]
},
"groq": {
"systemMessage": "You are a coding assistant API specialized in generating accurate and efficient code completions and responding in valid JSON while following the instructions STRICTLY.",
"context": "Below is the current code context:",
"format": "[\n{\n \"find\": [lines to find],\n \"replace\": [lines to replace]\n},\n{\n \"find\": [lines to find],\n \"replace\": [lines to replace]\n}\n]\n",
"instructions": [
"Do not include comments explaining the changes.",
"Please provide the entire code block that should be replaced, and the entire new code block as the replacement, as list of lines.",
"Return the VALID JSON inside a markdown block quote using triple backticks (```).",
"If code to be replaced is separated by even ONE OR MORE empty line then return multiple {find, replace} structures in a list",
"Include proper indentation in code.",
"Use the following JSON format to respond:"
]
}
"openai": {
"systemMessage": "Your task is to provide accurate and efficient code completions and respond in VALID JSON.",
"context": "Below is the current code context:",
"format": "```[\n{\n \"find\": [lines to find],\n \"replace\": [lines to replace]\n},\n{\n \"find\": [lines to find],\n \"replace\": [lines to replace]\n}\n]\n```",
"instructions": [
"Do not include comments explaining the changes.",
"Make sure that the structure of the file is maintained. Imports, Global Variables and should be placed at the top of the file below other imports or global variables.",
"Make sure that the {lines in find} accounts for empty spaces and empty lines in the existing code.",
"Include tabs and spaces in the replace lines to PROPERLY INDENT according to existing code.",
"Use the following JSON format to respond:"
]
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"groq-sdk": "^0.7.0",
"inquirer": "^11.1.0",
"open": "^10.1.0",
"openai": "^4.67.2",
"openai": "^4.77.0",
"three": "^0.170.0",
"tree-sitter": "^0.22.0",
"tree-sitter-c": "^0.23.1",
Expand Down
13 changes: 8 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading