-
Notifications
You must be signed in to change notification settings - Fork 378
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
Enable the duplicate ability for custom ai service #647
Enable the duplicate ability for custom ai service #647
Conversation
1b582f0
to
0207ccc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
0207ccc
to
ac2c37f
Compare
@Jerry23011 The issue should be fixed in latest code changes. |
@Jerry23011 Are you using the latest code? It works fine from my side. |
Yes I did, I also cleaned the build folder and cleared the local persistent data. Could be an issue on my end. Let's wait for someone else to test this. |
Ok, I will check it later. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now it works. LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- I am not sure if it is a side effect caused by copying custom AI services. The service list on the settings page cannot be dragged to modify the order. I also discovered before that changing the order of services would cause the copied custom AI services to disappear. Anyway, there are a lot of weird questions here.
iShot_2024-08-26_22.03.27.mp4
iShot_2024-08-26_22.12.09.mp4 |
Additionally, the issue #647 (comment) mentioned earlier also occurred here, where the Picker's model did not sync update. I haven't tried clearing the cache yet, will try later. |
Thanks for your input. For 1 & 2, they should be bugs that need to fix later. For 3, as far as I am concerned, current behavior looks more reasonable than copy that into all window type. Do you think we need to keep all service the same in different window types? If so, I think it's fine to duplicate one into all window type? For 4 I will confirm it later, based on my testing before this should not exist anymore. |
Yes, currently I think it's ok to treat the copied service as a separate service type, so it should be able to show up in other window types as well, it's just better to set the default off ( Currently all window types use the same service, e.g. changing the OpenAI service configuration in a mini window also affects the fixed window, which is probably not well designed, but I don't know how to improve it, and the code is a mess 😥 |
OK, will fix them later. |
Looks like no completion executed when no endpoint configured, that should be the root cause of issue 1, but not sure if this fix(fix: endpoint empty error result issue) is right, please kindly let me know what your thoughts. |
No, this should be a legacy bug caused by the default value of Previously, I intentionally did not add |
Yes, it has some issues in this part, I will try to fix it later. |
Please kindly continue to review this PR, much appreciate it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When clicking to query, the custom AI service copied is missing a loading animation, please compare and check.
iShot_2024-09-08_10.04.09.mp4
I noticed this odd behavior too yesterday, but not found the root cause. I will check it today. |
Thanks for the info above, the root cause is the index logic in |
初步测试下来,功能上暂时没问题了。 代码我还没仔细看,你们先看一下。 我准备先发一个简单修复版本,这个复制自定义 AI 功能稍后和自定义 prompt 一起上。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code looks good! Let's merge it 😃
I just renamed serviceTypeWithIdIfHave
to serviceTypeWithUniqueIdentifier
.
#479