🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
ci(sdk-api-spec): skip SDK score compat patch scripts when absent (#18689)
Hassieb Pakzad5b8e347ee10b
diff --git a/.github/workflows/sdk-api-spec.yml b/.github/workflows/sdk-api-spec.ymlindex 7cdc443d15..77c81014e7 100644--- a/.github/workflows/sdk-api-spec.yml+++ b/.github/workflows/sdk-api-spec.yml@@ -100,7 +100,9 @@ jobs:uv add --no-sync "typing-extensions>=4.12.2,<5"fiuv sync --all-extras --frozen- uv run python scripts/patch_generated_score_compat.py+ if [ -f scripts/patch_generated_score_compat.py ]; then+ uv run python scripts/patch_generated_score_compat.py+ fiuv run ruff format langfuse/api# Check for changes and show diff for debugging@@ -146,8 +148,11 @@ jobs:# Copy generated TypeScript SDK filescp -r ../langfuse/generated/typescript/* packages/core/src/api/- # Preserve backwards-compatible score creation aliases- node scripts/patch-generated-score-create-alias.mjs+ # Preserve backwards-compatible score creation aliases on SDK+ # branches that still ship the alias patch script+ if [ -f scripts/patch-generated-score-create-alias.mjs ]; then+ node scripts/patch-generated-score-create-alias.mjs+ fi# Patch compilation error inducing output# Without this patch, the JS SDK will not build due to