From 63bd9e64e511bc4a11572220e74d3b490414f5b1 Mon Sep 17 00:00:00 2001 From: Adrian Lyjak Date: Mon, 18 Aug 2025 16:39:42 -0400 Subject: [PATCH] don't require an api url (was defaulting to localhost), and avoid the broken versions of llamactl --- pyproject.toml.jinja | 3 +-- test-proj/pyproject.toml | 3 +-- test-proj/ui/src/lib/client.ts | 2 +- ui/src/lib/client.ts | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/pyproject.toml.jinja b/pyproject.toml.jinja index e372615..939ad81 100644 --- a/pyproject.toml.jinja +++ b/pyproject.toml.jinja @@ -19,12 +19,11 @@ export-types = "{{project_name_snake}}.export_types:export_types" [dependency-groups] dev = [ "ruff>=0.11.10", - "llama_deploy", "typescript>=0.0.12", "ty>=0.0.1a16", "pytest>=8.4.1", "hatch>=1.14.1", - "llamactl>=0.3.0a3" + "llamactl==0.3.0a4" ] [build-system] diff --git a/test-proj/pyproject.toml b/test-proj/pyproject.toml index b79e8d9..1f2e1db 100644 --- a/test-proj/pyproject.toml +++ b/test-proj/pyproject.toml @@ -19,12 +19,11 @@ export-types = "test_proj.export_types:export_types" [dependency-groups] dev = [ "ruff>=0.11.10", - "llama_deploy", "typescript>=0.0.12", "ty>=0.0.1a16", "pytest>=8.4.1", "hatch>=1.14.1", - "llamactl>=0.3.0a3" + "llamactl==0.3.0a4" ] [build-system] diff --git a/test-proj/ui/src/lib/client.ts b/test-proj/ui/src/lib/client.ts index 09e6bc8..6b79034 100644 --- a/test-proj/ui/src/lib/client.ts +++ b/test-proj/ui/src/lib/client.ts @@ -15,7 +15,7 @@ const projectId = import.meta.env.VITE_LLAMA_DEPLOY_PROJECT_ID; // Configure the platform client cloudApiClient.setConfig({ - baseUrl: apiBaseUrl, + ...(apiBaseUrl && { baseUrl: apiBaseUrl }), headers: { // optionally use a backend API token scoped to a project. For local development, ...(platformToken && { authorization: `Bearer ${platformToken}` }), diff --git a/ui/src/lib/client.ts b/ui/src/lib/client.ts index 09e6bc8..6b79034 100644 --- a/ui/src/lib/client.ts +++ b/ui/src/lib/client.ts @@ -15,7 +15,7 @@ const projectId = import.meta.env.VITE_LLAMA_DEPLOY_PROJECT_ID; // Configure the platform client cloudApiClient.setConfig({ - baseUrl: apiBaseUrl, + ...(apiBaseUrl && { baseUrl: apiBaseUrl }), headers: { // optionally use a backend API token scoped to a project. For local development, ...(platformToken && { authorization: `Bearer ${platformToken}` }),