fix: gpt task and prompt (#537)

This commit is contained in:
pablohashescobar 2023-03-27 23:36:00 +05:30 committed by GitHub
parent d6ffc3176e
commit 35b80b422d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ class GPTIntegrationEndpoint(BaseAPIView):
status=status.HTTP_400_BAD_REQUEST,
)
final_text = task + prompt
final_text = task + "\n" + prompt
openai.api_key = settings.OPENAI_API_KEY
response = openai.Completion.create(