🪢 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
chore: add sdk-api-spec bot (#9192)
Hassieb Pakzad688659c597dc
diff --git a/.github/workflows/sdk-api-spec.yml b/.github/workflows/sdk-api-spec.ymlindex fb6cc2d147..7f6c8d4387 100644--- a/.github/workflows/sdk-api-spec.yml+++ b/.github/workflows/sdk-api-spec.yml@@ -41,7 +41,7 @@ jobs:- name: Update Python SDKenv:- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}run: |# Clone langfuse-python repositorygit clone https://github.com/langfuse/langfuse-python.git ../langfuse-python@@ -50,6 +50,8 @@ jobs:# Configure gitgit config user.name "api-spec-bot"git config user.email "[email protected]"+ echo "$GH_ACCESS_TOKEN" | gh auth login --with-token+ gh auth setup-git# Delete existing API contentsrm -rf langfuse/api/*@@ -59,16 +61,20 @@ jobs:# Install poetry and formatpip install poetry+ poetry install --all-extrascd langfuse/apipoetry run ruff format . || echo "Ruff format completed with warnings"cd ../..- # Check for changes+ # Check for changes and show diff for debuggingif git diff --quiet; thenecho "No changes detected in Python SDK"exit 0fi+ echo "Changes detected in Python SDK:"+ git diff+# Close existing api-spec-bot PRsgh pr list --author api-spec-bot --state open --json number --jq '.[].number' | xargs -I {} gh pr close {}@@ -84,7 +90,7 @@ jobs:- name: Update TypeScript SDKenv:- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}run: |# Clone langfuse-js repositorygit clone https://github.com/langfuse/langfuse-js.git ../langfuse-js@@ -93,7 +99,8 @@ jobs:# Configure gitgit config user.name "api-spec-bot"git config user.email "[email protected]"-+ echo "$GH_ACCESS_TOKEN" | gh auth login --with-token+ gh auth setup-git# Delete existing API contentsrm -rf packages/core/src/api/*@@ -105,12 +112,15 @@ jobs:pnpm installpnpm format || echo "Format completed with warnings"- # Check for changes+ # Check for changes and show diff for debuggingif git diff --quiet; thenecho "No changes detected in TypeScript SDK"exit 0fi+ echo "Changes detected in TypeScript SDK:"+ git diff+# Close existing api-spec-bot PRsgh pr list --author api-spec-bot --state open --json number --jq '.[].number' | xargs -I {} gh pr close {}