-
Notifications
You must be signed in to change notification settings - Fork 93
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
feature: add interval on AI backend request #426
base: main
Are you sure you want to change the base?
feature: add interval on AI backend request #426
Conversation
1c5baf9
to
d2caa51
Compare
This commit introduces the ability to send the requests to the backend AI server at set intervals, independent of the reconciler's requeue requests. To utilize this feature, the `Interval` field in the `AI` settings must be set in the k8sgpt configuration object. Also, the specified interval must be greater than or equal to the reconciler's requeue interval as the llm requests should be called after the reconciler executes k8sgpt analyze. Fixes: k8sgpt-ai#419 Signed-off-by: VaibhavMalik4187 <[email protected]>
d2caa51
to
470c2dd
Compare
@AlexsJones, @JuHyung-Son, where do we intend to use the responses obtained from repeatedly calling the AI backend? |
what do you mean |
Sorry if it's a naive question, I referred to the results obtained when the AI backend is called outside the reconciler loop (at set intervals). How do we plan to use them? |
I'm sorry, but I don't think I understand the situation very well. |
No problem, I'll try again. So we're working on this feature to support calling the AI backend at set intervals independent of the reconciler loop. I approached this feature in the following manner:
|
📑 Description
This commit introduces the ability to send the requests to the backend AI server at set intervals, independent of the reconciler's requeue requests.
To utilize this feature, the
Interval
field in theAI
settings must be set in the k8sgpt configuration object. Also, the specified interval must be greater than or equal to the reconciler's requeue interval as the llm requests should be called after the reconciler executes k8sgpt analyze.Fixes: #419
✅ Checks