Closed phlpsong closed 5 months ago
Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
Our GitHub checks need improvements? Share your feedbacks!
After updating the localization, it seems that the switch is being relocated.
It's strange which en string is longer than ch but its behavior is fine. I will add a minWidth constraint to fix this.
This icon looks bad in dark mode.
![]()
I have made a simple one to replace it, let me know what you think.
Looks bad in English mode.
If it's not appropriate to increase the width here, we could shorten the title spelling, Custom OpenAl Translate
--> Custom OpenAl
, which I think users should be able to understand.
Looks bad in English mode.
If it's not appropriate to increase the width here, we could shorten the title spelling,
Custom OpenAl Translate
-->Custom OpenAl
, which I think users should be able to understand.![]()
I think it's already fixed in prev commits. Could you build using the latest commit and take a look?
ok, it looks good now.
It's working well enough so far 😌
For custom OpenAI services, how about we show the model currently being used to the right of the header?
It's working well enough so far 😌
For custom OpenAI services, how about we show the model currently being used to the right of the header?
![]()
Good idea! Does OpenAI service need to apply this?
I'm not sure how the display effect of OpenAI will be, because the names of the two preset models are a bit long, but we can display it first and see the effect.
I'm not sure how the display effect of OpenAI will be, because the names of the two preset models are a bit long, but we can display it first and see the effect.
![]()
Custom OpenAI Translate
is too long in the mini & fix window which has the overlap issue, but it works well in Chinese.
After increasing the minimumWindowSize
, looks good now.
We can change Model to Models, users can manually enter multiple models separated by ,
, we internally save them in an array, the first one will be used as the selected model by default, and users can conveniently switch between models in the query window.
This is just my initial idea, there may be some things that are not well considered and need to be improved.
This is a chat service https://chat.izual.me/chat I built with lobe-chat.
I think using the comma to separate models is a bit complicated for users. I will check this later if have any other good ways to handle it.
In my opinion, letting the user manually input the custom model is already a relatively simple and general enough solution.
I know some services support API querying model lists, but the custom OpenAI service that we designed is very freestyle and shouldn't assume that it will support API querying model lists.
On the other hand, even if it did support API querying model lists, it's not necessarily suitable to directly use it in Easydict to display the NSMenu
, because the number of models that some services support is very large, for example OpenAI or Together AI, they return more than a dozen models., and not every model is suitable for translation.
If you have a better idea, let me know.
I just improved the model tag UI.
In my opinion, letting the user manually input the custom model is already a relatively simple and general enough solution.
I know some services support API querying model lists, but the custom OpenAI service that we designed is very freestyle and shouldn't assume that it will support API querying model lists.
On the other hand, even if it did support API querying model lists, it's not necessarily suitable to directly use it in Easydict to display the
NSMenu
, because the number of models that some services support is very large, for example OpenAI or Together AI, they return more than a dozen models., and not every model is suitable for translation.If you have a better idea, let me know.
Yes, I agree with you, there's no better way to do this.
I have implemented this logic in the latest commit, you could kindly take a look and let me know if you have any comments.
For models quick switch function in the query window, I could make this enhancement in a separate PR later. @tisfeng
For models quick switch function in the query window, I could make this enhancement in a separate PR later. @tisfeng
Ok, this PR has enough content, let's put the rest of the features in another PR.
I just removed the default API key in custom OpenAI service e763cc5f, I plan to add a separate built-in AI translation service later.
I just removed the default API key in custom OpenAI service e763cc5, I plan to add a separate built-in AI translation service later.
ok, I will take a look at the name update issue this day later.
Every time the settings service page is entered, serviceConfigChanged()
is triggered multiple times, posting update service notifications, which can cause the loss of query content.
https://github.com/tisfeng/Easydict/assets/25194972/2219afb0-c07b-4114-afca-5db4dacb096c
Every time the settings service page is entered,
serviceConfigChanged()
is triggered multiple times, posting update service notifications, which can cause the loss of query content.iShot_2024-03-10_13.49.19.mp4
Yes, I found this issue too, checking it now.
The notification trigger issue still exists, need more time than expected to investigate it.
ok, you can check this problem carefully.
Ok, it looks like there is no problem so far.
This PR code has a lot of code and has been modified a lot, so it is not easy to review.
Next time, we should cut it into smaller PRs to make it easier for everyone to review.
Ok, it looks like there is no problem so far.
This PR code has a lot of code and has been modified a lot, so it is not easy to review.
Next time, we should cut it into smaller PRs to make it easier for everyone to review.
Agree, it's a huge work both for author and reviewer.
Please review this PR.
Great job!
Next, I hope to be able to click on the model button to quickly switch models https://github.com/tisfeng/Easydict/issues/456
sure, I will do it later.
close https://github.com/tisfeng/Easydict/issues/387