Gemini Backend (#9)

Co-authored-by: Ying Sheng <sqy1415@gmail.com>
This commit is contained in:
shiyi.c_98
2024-01-16 22:29:37 -08:00
committed by GitHub
co-authored by Ying Sheng
parent c4707f1bb5
commit fd7c479239
13 changed files with 311 additions and 2 deletions
+1
View File
@@ -428,6 +428,7 @@ class StreamExecutor:
self.messages_.append(last_msg)
self.cur_images = []
else:
# OpenAI chat API format
self.messages_.append({"role": expr.role, "content": new_text})
self.cur_role = None