mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: Rename
This commit is contained in:
parent
797c0bb8d6
commit
9406a2c1da
|
|
@ -228,14 +228,14 @@ class OpenAIChatSerializer(serializers.Serializer):
|
|||
else:
|
||||
chat_info = ChatInfo.get_cache(chat_id)
|
||||
if chat_info is None:
|
||||
ser = ChatSerializers(data={
|
||||
open_chat = ChatSerializers(data={
|
||||
'chat_id': chat_id,
|
||||
'chat_user_id': chat_user_id,
|
||||
'chat_user_type': chat_user_type,
|
||||
'application_id': application_id
|
||||
})
|
||||
ser.is_valid(raise_exception=True)
|
||||
chat_info = ser.re_open_chat(chat_id)
|
||||
open_chat.is_valid(raise_exception=True)
|
||||
chat_info = open_chat.re_open_chat(chat_id)
|
||||
chat_info.set_cache()
|
||||
return chat_id
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue