mirror of
https://github.com/snailyp/gemini-balance.git
synced 2026-07-08 17:11:54 +08:00
feat: 增加自定义picgo api url
This commit is contained in:
@@ -389,7 +389,7 @@ class ImageUploaderFactory:
|
||||
credentials["secret_key"]
|
||||
)
|
||||
elif provider == "picgo":
|
||||
api_url = credentials.get("api_url", "https://www.picgo.net/api/1/upload")
|
||||
api_url = credentials.get("api_url") or "https://www.picgo.net/api/1/upload"
|
||||
return PicGoUploader(credentials["api_key"], api_url)
|
||||
elif provider == "cloudflare_imgbed":
|
||||
return CloudFlareImgBedUploader(
|
||||
|
||||
Reference in New Issue
Block a user