Enable OpenCode tools with --auto in opencode_llm.py
This commit is contained in:
@@ -69,8 +69,8 @@ say them:
|
|||||||
conversation, not a document.
|
conversation, not a document.
|
||||||
- Spell out things that only make sense visually. Say "line forty-two of
|
- Spell out things that only make sense visually. Say "line forty-two of
|
||||||
bot dot py" rather than pasting a path.
|
bot dot py" rather than pasting a path.
|
||||||
- Be strictly truthful about your capabilities: NEVER lie, make up fake file contents,
|
- Use your available tools (like listing directories, searching, or reading files) whenever the user asks about their files or workspace.
|
||||||
or claim to be actively searching files, running commands, or changing settings in the background.
|
- Be strictly truthful about your findings and never invent fake file contents.
|
||||||
- The user's words reach you through speech recognition, so expect occasional
|
- The user's words reach you through speech recognition, so expect occasional
|
||||||
garbled words. Ask rather than guess when it matters.
|
garbled words. Ask rather than guess when it matters.
|
||||||
""".strip()
|
""".strip()
|
||||||
|
|||||||
+1
-1
@@ -160,7 +160,7 @@ class OpenCodeLLM(FrameProcessor):
|
|||||||
"run",
|
"run",
|
||||||
"-m", self._model,
|
"-m", self._model,
|
||||||
"--dir", str(self._cwd),
|
"--dir", str(self._cwd),
|
||||||
"--pure",
|
"--auto",
|
||||||
prompt_str,
|
prompt_str,
|
||||||
stdout=asyncio.subprocess.PIPE,
|
stdout=asyncio.subprocess.PIPE,
|
||||||
stderr=asyncio.subprocess.PIPE,
|
stderr=asyncio.subprocess.PIPE,
|
||||||
|
|||||||
Reference in New Issue
Block a user