fix: gpt task and prompt (#537)
This commit is contained in:
parent
d6ffc3176e
commit
35b80b422d
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ class GPTIntegrationEndpoint(BaseAPIView):
|
||||||
status=status.HTTP_400_BAD_REQUEST,
|
status=status.HTTP_400_BAD_REQUEST,
|
||||||
)
|
)
|
||||||
|
|
||||||
final_text = task + prompt
|
final_text = task + "\n" + prompt
|
||||||
|
|
||||||
openai.api_key = settings.OPENAI_API_KEY
|
openai.api_key = settings.OPENAI_API_KEY
|
||||||
response = openai.Completion.create(
|
response = openai.Completion.create(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue