Skip to content

Commit 68b6e4e

Browse files
committed
Change request to copy _requestDict in getResponse()
The fix I implemented was not coying the dictionary, so making a request rewrote the model in the dictionary and broke the code. The change fixes that and it is working properly. The only thing left to fix is how the software interacts with the API key. Right now it can't set the API variable so I'll have to create another method.
1 parent 90c8f63 commit 68b6e4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openaiclient/model/request/completion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def __init__(self, module, models):
5858

5959
def getResponse(self):
6060

61-
request = self._requestDict
61+
request = dict(self._requestDict)
6262
request['model'] = request['model'].name
6363

6464
return Response(

0 commit comments

Comments
 (0)