Skip to content

Commit d2a0d34

Browse files
committed
🔧 Update OpenAI API request format and test cassettes
Modernize OpenAI API request format with updated parameters and service tier headers. Update test cassettes to match new API response structure. Remove default empty string for git_message_detail.
1 parent 840cb44 commit d2a0d34

File tree

6 files changed

+779
-816
lines changed

6 files changed

+779
-816
lines changed

aicodebot/commands/commit.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
class CommitMessage(BaseModel):
1313
# Note we get better results if the message_detail is first.
1414
git_message_detail: str | None = Field(
15-
default="",
1615
description="An optional detailed explanation of the changes made in this commit,"
1716
" if the summary doesn't provide enough context",
1817
)
@@ -57,9 +56,7 @@ def commit(response_token_size, yes, skip_pre_commit, files): # noqa: PLR0915
5756
files = unstaged_files
5857
else:
5958
# The list of files to be committed is the same as the list of staged files
60-
console.print(
61-
"The following files have been staged and are ready for commit:\n\t" + "\n\t".join(staged_files)
62-
)
59+
console.print("The following files have been staged and are ready for commit:\n\t" + "\n\t".join(staged_files))
6360

6461
files = staged_files
6562

0 commit comments

Comments
 (0)