improve programmer prompt
This commit is contained in:
parent
469f09423b
commit
a1d521c5e2
|
|
@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
- Fix one shot completion signaling.
|
- Fix one shot completion signaling.
|
||||||
- Clean up error outputs.
|
- Clean up error outputs.
|
||||||
- Update prompt for better performance on large/monorepo projects.
|
- Update prompt for better performance on large/monorepo projects.
|
||||||
|
- Update programmer prompt so we don't use it to delete files.
|
||||||
|
|
||||||
## [0.6.2]
|
## [0.6.2]
|
||||||
- Allow shell commands to be run in read-only mode.
|
- Allow shell commands to be run in read-only mode.
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,8 @@ def initialize_expert_llm(provider: str = "openai", model_name: str = "o1-previe
|
||||||
elif provider == "anthropic":
|
elif provider == "anthropic":
|
||||||
return ChatAnthropic(
|
return ChatAnthropic(
|
||||||
api_key=os.getenv("EXPERT_ANTHROPIC_API_KEY"),
|
api_key=os.getenv("EXPERT_ANTHROPIC_API_KEY"),
|
||||||
model_name=model_name
|
model_name=model_name,
|
||||||
|
max_tokens=200000
|
||||||
)
|
)
|
||||||
elif provider == "openrouter":
|
elif provider == "openrouter":
|
||||||
return ChatOpenAI(
|
return ChatOpenAI(
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
from pathlib import Path
|
from typing import List, Tuple
|
||||||
from typing import List, Tuple, Optional
|
|
||||||
import fnmatch
|
import fnmatch
|
||||||
from git import Repo
|
from git import Repo
|
||||||
from git.exc import InvalidGitRepositoryError
|
|
||||||
from fuzzywuzzy import process
|
from fuzzywuzzy import process
|
||||||
from langchain_core.tools import tool
|
from langchain_core.tools import tool
|
||||||
from rich.console import Console
|
from rich.console import Console
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,9 @@ def run_programming_task(input: RunProgrammingTaskInput) -> Dict[str, Union[str,
|
||||||
If any new files are created, remember to emit them using the emit_related_files tool once this tool completes.
|
If any new files are created, remember to emit them using the emit_related_files tool once this tool completes.
|
||||||
|
|
||||||
Additionally, before invoking this tool, make sure all existing related files have been emitted using the emit_related_files tool.
|
Additionally, before invoking this tool, make sure all existing related files have been emitted using the emit_related_files tool.
|
||||||
|
|
||||||
|
The programmer can add or modify files, but cannot remove them. Use the run_shell_command tool to remove files.
|
||||||
|
If you need the programmer to reference files you intend to delete, delete them after the programmer finises their work.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
instructions: Instructions for the programming task
|
instructions: Instructions for the programming task
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue