You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Notebook Migration] Add LLM client for notebook-to-workflow conversion #5259
Introduce the frontend LLM session class that converts a Jupyter notebook into a Texera workflow JSON plus a bidirectional cell to operator mapping, along with the prompt library it uses. The LLM session uses the already existing LiteLLM server in Texera.
Scope
Adds two files under frontend/src/app/workspace/service/notebook-migration/:
migration-llm.ts (~300 lines) — NotebookMigrationLLM injectable. Uses Vercel AI SDK (createOpenAI + generateText) pointed at the LiteLLM proxy already exposed on main at /api/chat/completion.
Public methods:
initialize(modelType, apiKey) seeds the session with Texera documentation as system messages
verifyConnection() does a 10-token ping to validate the API key
convertNotebookToWorkflow(notebook) makes two sequential LLM calls (workflow JSON, then cell↔operator mapping) and assembles a PythonUDFV2-operator workflow + bidirectional mapping
Activity
zyratlo commentedon May 28, 2026
/parent-issue #4301
feat(python-notebook-migration): add LLM client for notebook-to-workf…