feat: sync AI Helm and ops features#19
Open
mlhiter wants to merge 13 commits into
Open
Conversation
| prompt += "\n\nResponse language:\n- Prefer replying in the same language as the user's latest message.\n- If the user's latest message language is unclear, respond in English unless the user explicitly asks for another language." | ||
| } | ||
|
|
||
| klog.V(4).Infof("system prompt %s", prompt) |
|
|
||
| func (s *pendingSessionStore) delete(sessionID string) { | ||
| if err := model.DeletePendingSession(sessionID); err != nil { | ||
| klog.Warningf("Failed to delete pending session %s: %v", sessionID, err) |
| } | ||
| node, err := cs.K8sClient.ClientSet.CoreV1().Nodes().Get(ctx, nodeName, metav1.GetOptions{}) | ||
| if err != nil { | ||
| klog.Errorf("Failed to get node %s: %v", nodeName, err) |
| return | ||
| } | ||
| if node == nil { | ||
| klog.Errorf("Node %s not found", nodeName) |
|
|
||
| // Ensure cleanup of the node agent pod | ||
| defer func() { | ||
| klog.Infof("Cleaning up node agent pod %s", nodeAgentName) |
| defer func() { | ||
| klog.Infof("Cleaning up node agent pod %s", nodeAgentName) | ||
| if err := h.cleanupNodeAgentPod(cs, nodeAgentName); err != nil { | ||
| klog.Errorf("Failed to cleanup node agent pod %s: %v", nodeAgentName, err) |
| }() | ||
|
|
||
| if err := waitForAgentPodReady(ctx, cs, ws, nodeAgentName, "ready!"); err != nil { | ||
| klog.Errorf("Failed to wait for pod ready: %v", err) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Verification
make testcd ui && pnpm run type-checkcd ui && pnpm run buildgit diff --check origin/main...HEADNotes
ui/package.jsonpackageManager metadata is intentionally not included in this PR.