Skip to content

Commit

Permalink
merge copilot code
Browse files Browse the repository at this point in the history
  • Loading branch information
gptlang committed Feb 1, 2024
1 parent 32db5c2 commit 9377afe
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 423 deletions.
10 changes: 5 additions & 5 deletions rplugin/python3/handlers/chat_handler.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Optional, cast

import mycopilot.prompts as prompts
from mycopilot.mycopilot import Copilot
import prompts as prompts
from copilot import Copilot
from mypynvim.core.buffer import MyBuffer
from mypynvim.core.nvim import MyNvim

Expand Down Expand Up @@ -99,7 +99,7 @@ def _add_regular_start_separator(
code_height = len(code.split("\n"))

start_separator = f"""### User
SYSTEM PROMPT:
```
{system_prompt}
Expand Down Expand Up @@ -138,8 +138,8 @@ def _add_start_separator_with_token_count(
code_height = len(code.split("\n"))

start_separator = f"""### User
SYSTEM PROMPT: {num_system_tokens} Tokens
SYSTEM PROMPT: {num_system_tokens} Tokens
```
{system_prompt}
```
Expand Down
2 changes: 1 addition & 1 deletion rplugin/python3/handlers/inplace_chat_handler.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import mycopilot.prompts as system_prompts
import prompts as system_prompts
from handlers.chat_handler import ChatHandler
from mypynvim.core.buffer import MyBuffer
from mypynvim.core.nvim import MyNvim
Expand Down
176 changes: 0 additions & 176 deletions rplugin/python3/mycopilot/mycopilot.py

This file was deleted.

152 changes: 0 additions & 152 deletions rplugin/python3/mycopilot/prompts.py

This file was deleted.

7 changes: 0 additions & 7 deletions rplugin/python3/mycopilot/typings.py

This file was deleted.

Loading

0 comments on commit 9377afe

Please sign in to comment.