Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: client initialization across multiple files #175

Merged
merged 1 commit into from
Jun 2, 2024
Merged

Conversation

appleboy
Copy link
Owner

@appleboy appleboy commented Jun 2, 2024

  • Remove errors import from commit.go
  • Replace inline client initialization with GetClient function in commit.go
  • Add errors and core imports to openai.go
  • Implement GetClient function in openai.go to handle different providers
  • Add core import to review.go
  • Replace inline client initialization with GetClient function in review.go
  • Move model logging to after client initialization in review.go

- Remove `errors` import from `commit.go`
- Replace inline client initialization with `GetClient` function in `commit.go`
- Add `errors` and `core` imports to `openai.go`
- Implement `GetClient` function in `openai.go` to handle different providers
- Add `core` import to `review.go`
- Replace inline client initialization with `GetClient` function in `review.go`
- Move model logging to after client initialization in `review.go`

Signed-off-by: appleboy <appleboy.tw@gmail.com>
@appleboy appleboy merged commit 2022f9f into main Jun 2, 2024
11 checks passed
@appleboy appleboy deleted the client branch June 2, 2024 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant