From 653af16659519e5c42c8e7aed3c07ec476af1dd7 Mon Sep 17 00:00:00 2001 From: Aryan Motgi Date: Fri, 22 May 2026 17:40:57 -0700 Subject: [PATCH] fix: correct RFC 3986 section reference in path_template docstring --- src/openai/_utils/_path.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openai/_utils/_path.py b/src/openai/_utils/_path.py index 4d6e1e4cbc..64a38a7b3a 100644 --- a/src/openai/_utils/_path.py +++ b/src/openai/_utils/_path.py @@ -89,7 +89,7 @@ def path_template(template: str, /, **kwargs: Any) -> str: Placeholders in path and fragment portions are percent-encoded where the `segment` and `fragment` sets from RFC 3986 respectively are considered safe. Placeholders in the query portion are percent-encoded where the `query` set from - RFC 3986 §3.3 is considered safe except for = and & characters. + RFC 3986 §3.4 is considered safe except for = and & characters. Raises: KeyError: If a placeholder is not found in `kwargs`.