Adjust ask-code

This commit is contained in:
kagami 2024-05-09 21:40:09 +08:00
parent dabd12f5cf
commit 17d55bd324
4 changed files with 7 additions and 5 deletions

View File

@ -3,10 +3,7 @@ import sys
from chat.ask_codebase.chains.smart_qa import SmartQA from chat.ask_codebase.chains.smart_qa import SmartQA
sys.path.append(os.path.join(os.path.dirname(__file__), "..", "libs")) from lib.ide_service import IDEService
sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "libs"))
from ide_services import IDEService # noqa: E402
def query(question, lsp_brige_port): def query(question, lsp_brige_port):

View File

@ -1,4 +1,8 @@
description: Ask questions about the current project's codebase, which requires proactive acquisition of additional context information to answer. description: Ask questions about the current project's codebase, which requires proactive acquisition of additional context information to answer.
input: required input: required
workflow_python:
env_name: ask-code-123
version: 3.11.0
dependencies: requirements.txt
steps: steps:
- run: $command_python $command_path/ask-code.py query "$input" - run: $workflow_python $command_path/ask-code.py query "$input"

View File

@ -0,0 +1 @@
devchat-ask>=0.1.11,<0.2