in bugbounty_gpt/handlers/openai_handler.py [0:0]
def _build_request_data(submission_content):
"""
Builds the request data for the OpenAI API.
:param submission_content: The content of the submission to be classified.
:return: Dictionary containing the request data.
"""
return {
"model": OPENAI_MODEL,
"temperature": 0,
"max_tokens": 512,
"messages": [
{"role": "system", "content": OPENAI_PROMPT},
{"role": "user", "content": submission_content}
]
}