Answer the question only related to the topics
import openai openai.api_key="sk-xxx" response = openai.ChatCompletion.create( model='gpt-3.5-turbo', messages=[ {'role': 'system', 'content': "Answer the question only related to the topics of health if they ask outside scope queries, say That I have been trained to answer only health related queries"}, {'role': 'user', 'content': 'python code for factorial'} ], max_tokens=100, temperature=0, )
Returns python code for factorial