diff --git a/README.md b/README.md index 8904d9ed52..cedbc72337 100644 --- a/README.md +++ b/README.md @@ -410,7 +410,7 @@ completion = response.parse() # get the object that `chat.completions.create()` print(completion) ``` -These methods return an [`APIResponse`](https://github.com/openai/openai-python/src/openai/_response.py) object. +These methods return an [`APIResponse`](https://github.com/openai/openai-python/tree/main/src/openai/_response.py) object. ### Configuring the HTTP client diff --git a/src/openai/_files.py b/src/openai/_files.py index 94cd553135..bebfb19501 100644 --- a/src/openai/_files.py +++ b/src/openai/_files.py @@ -29,7 +29,7 @@ def assert_is_file_content(obj: object, *, key: str | None = None) -> None: if not is_file_content(obj): prefix = f"Expected entry at `{key}`" if key is not None else f"Expected file input `{obj!r}`" raise RuntimeError( - f"{prefix} to be bytes, an io.IOBase instance, PathLike or a tuple but received {type(obj)} instead. See https://github.com/openai/openai-python#file-uploads" + f"{prefix} to be bytes, an io.IOBase instance, PathLike or a tuple but received {type(obj)} instead. See https://github.com/openai/openai-python/tree/main#file-uploads" ) from None