fix: added base Skills class and env var
This commit is contained in:
parent
b76bbc3e40
commit
502d26dd63
|
@ -5,6 +5,7 @@
|
||||||
# else we use whisper.cpp and piper local models
|
# else we use whisper.cpp and piper local models
|
||||||
ALL_LOCAL=False
|
ALL_LOCAL=False
|
||||||
WHISPER_MODEL_NAME="ggml-tiny.en.bin"
|
WHISPER_MODEL_NAME="ggml-tiny.en.bin"
|
||||||
|
TEACH_MODE=False
|
||||||
|
|
||||||
# Uncomment to set your OpenAI API key
|
# Uncomment to set your OpenAI API key
|
||||||
# OPENAI_API_KEY=sk-...
|
# OPENAI_API_KEY=sk-...
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
from datetime import datetime
|
||||||
|
|
||||||
|
class Skill:
|
||||||
|
def __init__(self, name: str):
|
||||||
|
self.skill_name = name
|
||||||
|
self.steps = []
|
||||||
|
|
||||||
|
def teach(self, code: str):
|
||||||
|
self.steps.append(code)
|
Loading…
Reference in New Issue