-
I am trying to create a custom GPT to prohibit answering those questions that are not related to the Software Engineering as follows: In [26]: c = client.chat.completions.create(
...: messages=[
...: {"role": "system", "content": "You are not allowed to answer questions in fields other than Software Engineering."},
...: {"role": "user", "content": "Can you explain to me the functionality of integral in mathematics?"},
...: ],
...: model="gpt-3.5-turbo",
...: ) But still, it explains! Out:
|
Beta Was this translation helpful? Give feedback.
Answered by
agn-7
Dec 26, 2023
Replies: 1 comment
-
I tried out with |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rattrayalex
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried out with
gpt-4
model, and now it does!