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: add a base class LLMStreamService #561

Merged
merged 10 commits into from
May 25, 2024
Merged

Conversation

tisfeng
Copy link
Owner

@tisfeng tisfeng commented May 22, 2024

This PR has no functional changes.

In order to better add and optimize other LLM services in the future, like #559, I've rewritten and optimized the LLM-related services. The main content includes:

  • Added a LLM service base class LLMStreamService.
  • Modified BaseOpenAIService to inherit from LLMStreamService.
  • Refactored and modified GeminiService to inherit from LLMStreamService.
  • Updated swiftlint.yml, and remove unnecessary swiftlint:disable code.

@tisfeng tisfeng requested a review from phlpsong May 25, 2024 10:08
@tisfeng tisfeng merged commit 4d9eb5a into dev May 25, 2024
5 checks passed
@tisfeng tisfeng deleted the refactor-LLMStreamService branch May 25, 2024 12:29
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.

None yet

2 participants