Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ permissions:
contents: read
pages: write
id-token: write
administration: write

concurrency:
group: pages
Expand Down Expand Up @@ -39,3 +40,7 @@ jobs:
steps:
- id: deployment
uses: actions/deploy-pages@v4
- name: Update repo homepage
run: gh api -X PATCH repos/${{ github.repository }} -f homepage="${{ steps.deployment.outputs.page_url }}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 10 additions & 0 deletions graph/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,14 @@ def create_llm(config: LangGraphConfig) -> ChatOpenAI:
# AIMessageChunks with usage_metadata=None and we can't emit
# the cost-v1 DataPart on the terminal artifact.
stream_usage=True,
# Cloudflare's managed WAF blocks the OpenAI SDK's default
# `OpenAI/Python <ver>` User-Agent (observed 403 "Your request
# was blocked" against api.proto-labs.ai). Override with the
# same identifier `tools/lg_tools.py` uses for outbound fetches
# so every protoAgent egress presents a consistent, allowlisted
# UA. If you self-host behind a different edge, this is safe to
# keep.
default_headers={
"User-Agent": "protoAgent/0.1 (+https://github.com/protoLabsAI/protoAgent)",
},
)
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "protoagent"
version = "0.1.0"
version = "0.2.1"
description = "protoAgent — LangGraph + A2A template for spawning protoLabs agents"
requires-python = ">=3.11"

Expand Down