Skip to content

Commit

Permalink
fix: add warn log in glm
Browse files Browse the repository at this point in the history
  • Loading branch information
zhayujie committed Apr 9, 2024
1 parent c662fa4 commit c889645
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bot/zhipuai/zhipu_ai_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ def __init__(self, session_id, system_prompt=None, model="glm-4"):
super().__init__(session_id, system_prompt)
self.model = model
self.reset()
if not system_prompt:
logger.warn("[ZhiPu] `character_desc` can not be empty")

def discard_exceeding(self, max_tokens, cur_tokens=None):
precise = True
Expand Down

0 comments on commit c889645

Please sign in to comment.