feat: 🎸 API support

Add support for ChatGPT API (for pro only)
This commit is contained in:
Grey_D
2023-03-19 19:13:33 +08:00
parent 0d928517a1
commit a3e4d5696c
13 changed files with 1268 additions and 39 deletions

View File

@@ -0,0 +1,13 @@
from utils.chatgpt import ChatGPT
from config.chatgpt_config import ChatGPTConfig
import loguru
logger = loguru.logger
# format: {name: {description: str, sample_curl: str, sample_response: str}}
API_description = {}
if __name__ == "__main__":
chatGPTAgent = ChatGPT()