Datasets:
File size: 621 Bytes
06f0c14 | 1 2 3 4 5 | {
"source_url": "https://salt.sunbird.ai/sunflower/sunflower/#__codelineno-3-1",
"chunk_id": "100_16",
"text": " system message self . messages msg for msg in self . messages if msg role ! system Add new system message at the beginning self . messages . insert ( 0 , role system , content message ) def addusermessage ( self , content ) Add a user message to the conversation self . messages . append ( role user , content content ) def getresponse ( self , modeltype qwen , temperature 0.3 ) Get AI response and add it to conversation url f self . baseurl taskssunflowerinference headers Auth"
} |