pedroreyesalavrado commented on code in PR #8637:
URL: https://github.com/apache/texera/pull/8637#discussion_r4212084101
##########
frontend/src/app/workspace/component/result-panel/result-panel.component.ts:
##########
@@ -314,6 +343,15 @@ export class ResultPanelComponent implements OnInit,
OnDestroy {
component: ErrorFrameComponent,
componentInputs: { operatorId },
});
+ // The AI tab only offers the analysis: the model is called when the user
asks for it,
+ // never on render, because this method runs again on every re-render of
the panel.
+ // The LiteLLM proxy rejects the call outright when the copilot feature is
off.
+ if (this.config.env.copilotEnabled) {
+ this.frameComponentConfigs.set("AI Fix", {
+ component: AiFixFrameComponent,
+ componentInputs: { operatorId },
+ });
Review Comment:
Removed in c6157cb. Dead with an operator selected, and a disabled tab
without one.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]