Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf51385 commit 88b267bCopy full SHA for 88b267b
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