Skip to content

Fix slash handling in PromptLayer API path segments#325

Open
Jorel97 wants to merge 3 commits into
MagnivOrg:masterfrom
Jorel97:codex/fix-slash-path-segments-254
Open

Fix slash handling in PromptLayer API path segments#325
Jorel97 wants to merge 3 commits into
MagnivOrg:masterfrom
Jorel97:codex/fix-slash-path-segments-254

Conversation

@Jorel97
Copy link
Copy Markdown

@Jorel97 Jorel97 commented May 30, 2026

Closes #254

Summary

  • add a shared path-segment encoder that double-encodes / so prompt and workflow names survive one edge/router decode pass
  • use it for sync and async prompt template fetches
  • use it when resolving workflow names
  • add regression coverage for slash-containing prompt and workflow names

Verification

  • python -m pytest tests\test_get_prompt_template.py tests\test_agents\test_arun_workflow_request.py -q
  • python -m ruff check promptlayer\utils.py tests\test_get_prompt_template.py tests\test_agents\test_arun_workflow_request.py
  • python -m ruff format --check promptlayer\utils.py tests\test_get_prompt_template.py tests\test_agents\test_arun_workflow_request.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Client fails to fetch prompts with names containing slash

1 participant