forked from github/plane
fix: gpt task and prompt (#537)
This commit is contained in:
parent
d6ffc3176e
commit
35b80b422d
@ -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…
Reference in New Issue
Block a user