We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bb86df commit ed679fbCopy full SHA for ed679fb
openai/api_resources/file.py
@@ -138,14 +138,9 @@ def __prepare_file_download(
138
139
if typed_api_type in (ApiType.AZURE, ApiType.AZURE_AD):
140
base = cls.class_url()
141
- url = "/%s%s/%s?api-version=%s" % (
142
- cls.azure_api_prefix,
143
- base,
144
- id,
145
- api_version,
146
- )
+ url = f"/{cls.azure_api_prefix}{base}/{id}/content?api-version={api_version}"
147
elif typed_api_type == ApiType.OPEN_AI:
148
- url = "%s/%s" % (cls.class_url(), id)
+ url = f"{cls.class_url()}/{id}/content"
149
else:
150
raise error.InvalidAPIType("Unsupported API type %s" % api_type)
151
0 commit comments