Changing system_instructions after model has been allready initialised ? help

how do i change system_instructions after model is initialised?

for example first initialisaiton:

knowledge_integration_model = genai.GenerativeModel(
       system_instruction=knowledge_integration_instruction,
       model_name=MODEL_NAME,
       tools=knowledge_integration_tools,
       safety_settings={"HARASSMENT": "block_none"}).start_chat(history=[])

after that at some point i would like to send_message(prompt, ??? system instruction???)

Hi @Dev_DevFuFu ,
Apologies for the delay. The system instruction is usually set at the start of a chat session and stays the same throughout. For more details about system instructions, please refer to this documentation.

Thank You

Not sure if i do things “right” but turns are fully controllable by you, and as such, sending a new system message is as simple as editing the history file (check for roles like ‘SYSTEM’), though it may be beneficial to get rid of the initial system message when inserting a new one. And keep in mind that editing context like this can cause some very interesting (even undesirable) results.