Zack Saadioui
8/22/2024
1
2
3
4
5
6
7
8
9
python
def chat_gpt_response(prompt):
response = openai.ChatCompletion.create(
model='gpt-3.5-turbo',
messages=[
{'role': 'user', 'content': prompt}
]
)
return response.choices[0].message['content']
1
prompt
1
2
bash
pip install slack_sdk
Copyright © Arsturn 2024