Some fixes
This commit is contained in:
parent
ff46b005d4
commit
47d3a527ec
|
@ -62,7 +62,7 @@ You can access the internet. Run **any code** to achieve the goal, and if at fir
|
||||||
You can install new packages.
|
You can install new packages.
|
||||||
Be concise. Your messages are being read aloud to the user. DO NOT MAKE PLANS. Immediatly run code.
|
Be concise. Your messages are being read aloud to the user. DO NOT MAKE PLANS. Immediatly run code.
|
||||||
Try to spread complex tasks over multiple code blocks.
|
Try to spread complex tasks over multiple code blocks.
|
||||||
Manually summarize text.
|
Manually summarize text. You cannot use other libraries to do this. You MUST MANUALLY SUMMARIZE, WITHOUT CODING.
|
||||||
|
|
||||||
For the users request, first, choose if you want to use Python, Applescript, Shell, or computer control (below) via Python.
|
For the users request, first, choose if you want to use Python, Applescript, Shell, or computer control (below) via Python.
|
||||||
|
|
||||||
|
@ -95,6 +95,8 @@ You guide the user through the list one task at a time, convincing them to move
|
||||||
|
|
||||||
# COMPUTER CONTROL (RARE)
|
# COMPUTER CONTROL (RARE)
|
||||||
|
|
||||||
|
You are a computer controlling language model. You can 100% control the user's GUI.
|
||||||
|
|
||||||
You may use the `computer` Python module (already imported) to control the user's keyboard and mouse, if the task **requires** it:
|
You may use the `computer` Python module (already imported) to control the user's keyboard and mouse, if the task **requires** it:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
|
|
|
@ -2,7 +2,6 @@ from datetime import datetime
|
||||||
from .utils.logs import setup_logging, logger
|
from .utils.logs import setup_logging, logger
|
||||||
from interpreter import interpreter
|
from interpreter import interpreter
|
||||||
from tkinter import messagebox, Button, simpledialog, Tk, Label, Frame, LEFT, ACTIVE
|
from tkinter import messagebox, Button, simpledialog, Tk, Label, Frame, LEFT, ACTIVE
|
||||||
from ..utils.accumulator import Accumulator
|
|
||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
import textwrap
|
import textwrap
|
||||||
|
@ -11,7 +10,6 @@ from .i import configure_interpreter
|
||||||
interpreter = configure_interpreter(interpreter)
|
interpreter = configure_interpreter(interpreter)
|
||||||
|
|
||||||
setup_logging()
|
setup_logging()
|
||||||
accumulator = Accumulator()
|
|
||||||
class Skill:
|
class Skill:
|
||||||
def __init__(self, name: str):
|
def __init__(self, name: str):
|
||||||
self.skill_name = name
|
self.skill_name = name
|
||||||
|
@ -86,7 +84,7 @@ def teach():
|
||||||
chunk_code = ""
|
chunk_code = ""
|
||||||
interpreter.computer.languages = [l for l in interpreter.computer.languages if l.name.lower() == "python"]
|
interpreter.computer.languages = [l for l in interpreter.computer.languages if l.name.lower() == "python"]
|
||||||
interpreter.force_task_completion = True
|
interpreter.force_task_completion = True
|
||||||
for chunk in interpreter.chat(step, stream=True, display=False):
|
for chunk in interpreter.chat(step, stream=True, display=True):
|
||||||
if chunk["role"] == "computer" and "start" not in chunk and "end" not in chunk:
|
if chunk["role"] == "computer" and "start" not in chunk and "end" not in chunk:
|
||||||
chunk_type = chunk["type"]
|
chunk_type = chunk["type"]
|
||||||
chunk_content = chunk["content"]
|
chunk_content = chunk["content"]
|
||||||
|
@ -97,7 +95,6 @@ def teach():
|
||||||
# this was an error so we disregard chunk_code
|
# this was an error so we disregard chunk_code
|
||||||
chunk_code = ""
|
chunk_code = ""
|
||||||
time.sleep(0.05)
|
time.sleep(0.05)
|
||||||
accumulator.accumulate(chunk)
|
|
||||||
|
|
||||||
stepCheckDialog = StepCheckDialog(root)
|
stepCheckDialog = StepCheckDialog(root)
|
||||||
stepCheckResult = stepCheckDialog.result
|
stepCheckResult = stepCheckDialog.result
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -25,7 +25,7 @@ pydub = "^0.25.1"
|
||||||
ngrok = "^1.0.0"
|
ngrok = "^1.0.0"
|
||||||
simpleaudio = "^1.0.4"
|
simpleaudio = "^1.0.4"
|
||||||
opencv-python = "^4.9.0.80"
|
opencv-python = "^4.9.0.80"
|
||||||
open-interpreter = {git = "https://github.com/KillianLucas/open-interpreter.git"}
|
open-interpreter = {version = "0.2.1-pre-r", extras = ["os"]}
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["poetry-core"]
|
requires = ["poetry-core"]
|
||||||
|
|
Loading…
Reference in New Issue