feat: migrate templates from llama-cloud-services to llama-cloud (#240)

This commit is contained in:
Adrian Lyjak
2026-03-18 16:28:30 -04:00
committed by GitHub
parent b5d688dd72
commit 16efa46090
4 changed files with 15 additions and 7 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ readme = "README.md"
authors = []
requires-python = ">=3.12"
dependencies = [
"llama-index-workflows[server]>=2.5.0,<3.0.0",
"llama-index-workflows>=2.16.0,<3.0.0",
"ruff>=0.13.0",
]
+2 -2
View File
@@ -14,7 +14,8 @@
"all-fix": "pnpm i && pnpm run lint && pnpm run format && pnpm run build"
},
"dependencies": {
"@llamaindex/workflows-client": "^1.7.0",
"@llamaindex/ui": "^4.1.3",
"@llamaindex/workflows-client": "^1.8.3",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-markdown": "^10.1.0",
@@ -22,7 +23,6 @@
"react-router-dom": "^7.8.0"
},
"devDependencies": {
"@llamaindex/ui": "~3.6.1",
"@tailwindcss/postcss": "^4",
"@tailwindcss/typography": "^0.5.16",
"@types/canvas-confetti": "^1.9.0",
+11 -4
View File
@@ -2,7 +2,12 @@ import { Routes, Route, Link, useLocation } from "react-router-dom";
import Home from "./pages/Home";
import FanOutPage from "./pages/fanout/page";
import SnapshotQueryPage from "./pages/state/query-page";
import { ApiProvider, ApiClients, createWorkflowsClient } from "@llamaindex/ui";
import {
ApiProvider,
ApiClients,
createWorkflowsClient,
createWorkflowsConfig,
} from "@llamaindex/ui";
import SignalPage from "./pages/state/signal-page";
import StreamPage from "./pages/stream/page";
import PausePage from "./pages/pause/page";
@@ -11,9 +16,11 @@ import HooksReferencePage from "./pages/hooks-reference/page";
const deploymentName =
import.meta.env.VITE_LLAMA_DEPLOY_DEPLOYMENT_NAME || "default";
const api: ApiClients = {
workflowsClient: createWorkflowsClient({
baseUrl: `/deployments/${deploymentName}`,
}),
workflowsClient: createWorkflowsClient(
createWorkflowsConfig({
baseUrl: `/deployments/${deploymentName}`,
}),
),
};
function BackHomeButton() {
+1
View File
@@ -2,6 +2,7 @@ import React from "react";
import ReactDOM from "react-dom/client";
import { HashRouter } from "react-router-dom";
import App from "./App";
import "@llamaindex/ui/styles.css";
import "./index.css";
ReactDOM.createRoot(document.getElementById("root")!).render(