File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -728,6 +728,7 @@ def start_chat(
728
728
* ,
729
729
max_output_tokens : int = _DEFAULT_MAX_OUTPUT_TOKENS ,
730
730
temperature : float = _DEFAULT_TEMPERATURE ,
731
+ message_history : Optional [List [ChatMessage ]] = None ,
731
732
) -> "CodeChatSession" :
732
733
"""Starts a chat session with the code chat model.
733
734
@@ -742,6 +743,7 @@ def start_chat(
742
743
model = self ,
743
744
max_output_tokens = max_output_tokens ,
744
745
temperature = temperature ,
746
+ message_history = message_history
745
747
)
746
748
747
749
@@ -916,12 +918,14 @@ def __init__(
916
918
model : CodeChatModel ,
917
919
max_output_tokens : int = CodeChatModel ._DEFAULT_MAX_OUTPUT_TOKENS ,
918
920
temperature : float = CodeChatModel ._DEFAULT_TEMPERATURE ,
921
+ message_history : Optional [List [ChatMessage ]] = None ,
919
922
):
920
923
super ().__init__ (
921
924
model = model ,
922
925
max_output_tokens = max_output_tokens ,
923
926
temperature = temperature ,
924
927
is_code_chat_session = True ,
928
+ message_history = message_history ,
925
929
)
926
930
927
931
def send_message (
You can’t perform that action at this time.
0 commit comments