fix: 🚸 use default model in default config.py

This commit is contained in:
Nate Sesti 2023-07-30 22:07:41 -07:00
parent 685b1ce062
commit 1bc5777ed1

View file

@ -29,12 +29,9 @@ class CommitMessageStep(Step):
diff = subprocess.check_output(
["git", "diff"], cwd=dir).decode("utf-8")
# Ask gpt-3.5-16k to write a commit message,
# Ask the LLM to write a commit message,
# and set it as the description of this step
gpt3516k = OpenAI(model="gpt-3.5-turbo-0613")
await sdk.start_model(gpt3516k)
self.description = await gpt3516k.complete(
self.description = await sdk.models.default.complete(
f"{diff}\n\nWrite a short, specific (less than 50 chars) commit message about the above changes:")