Skip to content

Commit

Permalink
v1.4.3 fix download images and files
Browse files Browse the repository at this point in the history
  • Loading branch information
lanqian528 committed Aug 15, 2024
1 parent 6464161 commit 5dc1f45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chatgpt/ChatService.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ async def send_conversation(self):
raise HTTPException(status_code=500, detail=str(e))

async def get_download_url(self, file_id):
url = f"https://new.oaifree.com/backend-api/files/{file_id}/download"
url = f"{self.base_url}/files/{file_id}/download"
headers = self.base_headers.copy()
try:
r = await self.s.get(url, headers=headers, timeout=5)
Expand Down Expand Up @@ -453,7 +453,7 @@ async def check_upload(self, file_id):

async def get_response_file_url(self, conversation_id, message_id, sandbox_path):
try:
url = f"https://new.oaifree.com/backend-api/conversation/{conversation_id}/interpreter/download"
url = f"{self.base_url}/conversation/{conversation_id}/interpreter/download"
params = {
"message_id": message_id,
"sandbox_path": sandbox_path
Expand Down

0 comments on commit 5dc1f45

Please sign in to comment.