feat: 初步支持绘图api

This commit is contained in:
Rock Chin
2022-12-27 22:52:53 +08:00
parent bdfaecea1c
commit 74fb8ef15c
5 changed files with 38 additions and 5 deletions
+3
View File
@@ -268,3 +268,6 @@ class Session:
def list_history(self, capacity: int = 10, page: int = 0):
return pkg.database.manager.get_inst().list_history(self.name, capacity, page,
get_default_prompt())
def draw_image(self, prompt: str):
return pkg.openai.manager.get_inst().request_image(prompt)