zyratlo commented on code in PR #8911:
URL: https://github.com/apache/texera/pull/8911#discussion_r4428837779
##########
frontend/src/app/workspace/service/notebook-migration/migration-llm.ts:
##########
@@ -235,6 +279,13 @@ export class NotebookMigrationLLM {
return this.config.env.pythonNotebookMigrationEnabled;
}
+ private promptsFor(language: MigrationLanguage): MigrationPromptSet {
+ if (language === "r" && !this.config.env.rNotebookMigrationEnabled) {
+ throw new Error("R notebook migration is disabled");
+ }
Review Comment:
Fixed in
[ebc8dc8](https://github.com/apache/texera/pull/8911/commits/ebc8dc8db09fd57856d9dd7b715c6b41dde8de55).
The service now rejects R before creating or pinging a client when the R flag
is off. The guard in promptsFor stays so the LLM class still checks on its own.
Added service tests for the notebook and script paths that assert no client is
created.
--
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]