Skip to content

Commit

Permalink
🔧 Update OpenAI API request format and test cassettes
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
TechNickAI committed Jan 19, 2025
1 parent 840cb44 commit d2a0d34
Show file tree
Hide file tree
Showing 6 changed files with 779 additions and 816 deletions.
5 changes: 1 addition & 4 deletions aicodebot/commands/commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
class CommitMessage(BaseModel):
# Note we get better results if the message_detail is first.
git_message_detail: str | None = Field(
default="",
description="An optional detailed explanation of the changes made in this commit,"
" if the summary doesn't provide enough context",
)
Expand Down Expand Up @@ -57,9 +56,7 @@ def commit(response_token_size, yes, skip_pre_commit, files): # noqa: PLR0915
files = unstaged_files
else:
# The list of files to be committed is the same as the list of staged files
console.print(
"The following files have been staged and are ready for commit:\n\t" + "\n\t".join(staged_files)
)
console.print("The following files have been staged and are ready for commit:\n\t" + "\n\t".join(staged_files))

files = staged_files

Expand Down
Loading

0 comments on commit d2a0d34

Please sign in to comment.