From 0c4d4caee31f4f22d8fae8d4d414eb51846ef8d7 Mon Sep 17 00:00:00 2001 From: Bobholamovic Date: Mon, 15 Jan 2024 14:02:02 +0800 Subject: [PATCH] Fix base url of AIStudioFileClient --- erniebot-agent/src/erniebot_agent/file/remote_file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erniebot-agent/src/erniebot_agent/file/remote_file.py b/erniebot-agent/src/erniebot_agent/file/remote_file.py index 1357564d9..d2f9d2742 100644 --- a/erniebot-agent/src/erniebot_agent/file/remote_file.py +++ b/erniebot-agent/src/erniebot_agent/file/remote_file.py @@ -139,7 +139,7 @@ class AIStudioFileClient(RemoteFileClient): """ - _BASE_URL: Final[str] = "https://sandbox-aistudio.baidu.com" + _BASE_URL: Final[str] = "https://aistudio.baidu.com" _UPLOAD_ENDPOINT: Final[str] = "/llm/lmapp/files" _RETRIEVE_ENDPOINT: Final[str] = "/llm/lmapp/files/{file_id}" _RETRIEVE_CONTENTS_ENDPOINT: Final[str] = "/llm/lmapp/files/{file_id}/content"