Skip to content

Commit 97ec0d4

Browse files
authored
don't require an api url (was defaulting to localhost), and avoid the broken versions of llamactl (#18)
1 parent 50826e8 commit 97ec0d4

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

pyproject.toml.jinja

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,11 @@ export-types = "{{project_name_snake}}.export_types:export_types"
1919
[dependency-groups]
2020
dev = [
2121
"ruff>=0.11.10",
22-
"llama_deploy",
2322
"typescript>=0.0.12",
2423
"ty>=0.0.1a16",
2524
"pytest>=8.4.1",
2625
"hatch>=1.14.1",
27-
"llamactl>=0.3.0a3"
26+
"llamactl==0.3.0a4"
2827
]
2928

3029
[build-system]

test-proj/pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,11 @@ export-types = "test_proj.export_types:export_types"
1919
[dependency-groups]
2020
dev = [
2121
"ruff>=0.11.10",
22-
"llama_deploy",
2322
"typescript>=0.0.12",
2423
"ty>=0.0.1a16",
2524
"pytest>=8.4.1",
2625
"hatch>=1.14.1",
27-
"llamactl>=0.3.0a3"
26+
"llamactl==0.3.0a4"
2827
]
2928

3029
[build-system]

test-proj/ui/src/lib/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const projectId = import.meta.env.VITE_LLAMA_DEPLOY_PROJECT_ID;
1515

1616
// Configure the platform client
1717
cloudApiClient.setConfig({
18-
baseUrl: apiBaseUrl,
18+
...(apiBaseUrl && { baseUrl: apiBaseUrl }),
1919
headers: {
2020
// optionally use a backend API token scoped to a project. For local development,
2121
...(platformToken && { authorization: `Bearer ${platformToken}` }),

ui/src/lib/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const projectId = import.meta.env.VITE_LLAMA_DEPLOY_PROJECT_ID;
1515

1616
// Configure the platform client
1717
cloudApiClient.setConfig({
18-
baseUrl: apiBaseUrl,
18+
...(apiBaseUrl && { baseUrl: apiBaseUrl }),
1919
headers: {
2020
// optionally use a backend API token scoped to a project. For local development,
2121
...(platformToken && { authorization: `Bearer ${platformToken}` }),

0 commit comments

Comments
 (0)