starting feedback
This commit is contained in:
parent
d058ca3c36
commit
4086afe5b5
5 changed files with 19 additions and 4 deletions
|
|
@ -52,6 +52,11 @@ class ContinueConfig(BaseModel):
|
|||
name="pytest",
|
||||
description="Write pytest unit tests for the current file",
|
||||
step_name="WritePytestsRecipe",
|
||||
),
|
||||
SlashCommand(
|
||||
name="feedback",
|
||||
description="Send feedback to improve Continue",
|
||||
step_name="FeedbackStep",
|
||||
)
|
||||
]
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ from ...recipes.DDtoBQRecipe.main import DDtoBQRecipe
|
|||
from ...recipes.AddTransformRecipe.main import AddTransformRecipe
|
||||
from ...recipes.WritePytestsRecipe.main import WritePytestsRecipe
|
||||
from ...steps.comment_code import CommentCodeStep
|
||||
from ...steps.feedback import FeedbackStep
|
||||
|
||||
step_name_to_step_class = {
|
||||
"UserInputStep": UserInputStep,
|
||||
|
|
@ -19,6 +20,7 @@ step_name_to_step_class = {
|
|||
"DDtoBQRecipe": DDtoBQRecipe,
|
||||
"WritePytestsRecipe": WritePytestsRecipe,
|
||||
"CommentCodeStep": CommentCodeStep,
|
||||
"FeedbackStep": FeedbackStep,
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -35,8 +35,8 @@ parser.add_argument("-p", "--port", help="server port", type=int, default=8000)
|
|||
args = parser.parse_args()
|
||||
|
||||
|
||||
log_file = open('output.log', 'a')
|
||||
sys.stdout = log_file
|
||||
# log_file = open('output.log', 'a')
|
||||
# sys.stdout = log_file
|
||||
|
||||
|
||||
def run_server():
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ from textwrap import dedent
|
|||
from typing import Coroutine, List, Union
|
||||
|
||||
from ...models.main import Range
|
||||
from ...libs.util.calculate_diff import calculate_diff2, apply_edit_to_str, line_by_line_diff
|
||||
from ...libs.llm.prompt_utils import MarkdownStyleEncoderDecoder
|
||||
from ...models.filesystem_edit import EditDiff, FileEdit, FileEditWithFullContents, FileSystemEdit
|
||||
from ...models.filesystem import FileSystem, RangeInFile, RangeInFileWithContents
|
||||
|
|
@ -204,7 +203,6 @@ class DefaultModelEditCodeStep(Step):
|
|||
elif line.startswith(" "):
|
||||
index += 1
|
||||
|
||||
|
||||
await sdk.ide.applyFileSystemEdit(FileEdit(
|
||||
filepath=rif.filepath,
|
||||
range=rif.range,
|
||||
|
|
|
|||
10
continuedev/src/continuedev/steps/feedback.py
Normal file
10
continuedev/src/continuedev/steps/feedback.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
from ..core.main import Step
|
||||
from ..core.sdk import ContinueSDK
|
||||
from ..libs.util.telemetry import capture_event
|
||||
|
||||
|
||||
class FeedbackStep(Step):
|
||||
user_input: str
|
||||
|
||||
async def run(self, sdk: ContinueSDK):
|
||||
capture_event("feedback", {"feedback": self.user_input})
|
||||
Loading…
Add table
Reference in a new issue