feat: 添加重试机制和消息转换器,并支持Gemini v1beta API

This commit is contained in:
yinpeng
2024-12-27 20:07:43 +08:00
parent 6e90463251
commit 870b1ecc17
12 changed files with 755 additions and 597 deletions
+4
View File
@@ -125,3 +125,7 @@ def get_embeddings_logger():
def get_request_logger():
return Logger.setup_logger("request")
def get_retry_logger():
return Logger.setup_logger("retry")