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

perf: enable built-in AI to set usage status and dict option #525

Merged
merged 8 commits into from
Apr 29, 2024

Conversation

tisfeng
Copy link
Owner

@tisfeng tisfeng commented Apr 28, 2024

image

@tisfeng
Copy link
Owner Author

tisfeng commented Apr 28, 2024

I just refactored some code related to OpenAI, mainly allowing dynamic keys to be created based on the type of service, and then storing the configuration items for the service. This has reduced a lot of duplicated code.

@phlpsong There is still room for further optimization in the code here, like Defaults.Keys in the Configuration+Defaults file, these can be handled in later issues, such as #479 and #497.

@tisfeng tisfeng enabled auto-merge (squash) April 29, 2024 11:42
@tisfeng tisfeng requested a review from phlpsong April 29, 2024 11:42
@tisfeng
Copy link
Owner Author

tisfeng commented Apr 29, 2024

I'm going to merge this PR, are there any questions?

@tisfeng tisfeng merged commit 78ab3ff into dev Apr 29, 2024
5 checks passed
@tisfeng tisfeng deleted the improve-built-in-ai branch April 29, 2024 15:13
@phlpsong
Copy link
Collaborator

Nice work👍

I have been busy recently, I will schedule some time to take a look at these optimization issues later.

@tisfeng
Copy link
Owner Author

tisfeng commented Apr 29, 2024

ok

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.

2 participants