Refactor imports and remove duplicate code in main.py
This commit is contained in:
parent
13ac7c466a
commit
e45956edde
@ -2,10 +2,11 @@ import os
|
|||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from lib.ide_service import IDEService
|
|
||||||
from devchat.llm import chat
|
from devchat.llm import chat
|
||||||
from devchat.memory import FixSizeChatMemory
|
from devchat.memory import FixSizeChatMemory
|
||||||
|
|
||||||
|
from lib.ide_service import IDEService
|
||||||
|
|
||||||
PROMPT = """
|
PROMPT = """
|
||||||
file: {file_path}
|
file: {file_path}
|
||||||
```
|
```
|
||||||
|
@ -2,11 +2,11 @@ import os
|
|||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from lib.ide_service import IDEService
|
|
||||||
|
|
||||||
from devchat.llm import chat
|
from devchat.llm import chat
|
||||||
from devchat.memory import FixSizeChatMemory
|
from devchat.memory import FixSizeChatMemory
|
||||||
|
|
||||||
|
from lib.ide_service import IDEService
|
||||||
|
|
||||||
PROMPT = prompt = """
|
PROMPT = prompt = """
|
||||||
file: {file_path}
|
file: {file_path}
|
||||||
```
|
```
|
||||||
|
@ -2,11 +2,11 @@ import os
|
|||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from lib.ide_service import IDEService
|
|
||||||
|
|
||||||
from devchat.llm import chat
|
from devchat.llm import chat
|
||||||
from devchat.memory import FixSizeChatMemory
|
from devchat.memory import FixSizeChatMemory
|
||||||
|
|
||||||
|
from lib.ide_service import IDEService
|
||||||
|
|
||||||
PROMPT = prompt = """
|
PROMPT = prompt = """
|
||||||
file: {file_path}
|
file: {file_path}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user