Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ class Response:
|
|
18 |
self.api = api
|
19 |
self.comment = comment
|
20 |
self.language = language
|
21 |
-
self.max_token_num =
|
22 |
self.encoding = tiktoken.get_encoding("gpt2")
|
23 |
|
24 |
|
@@ -64,7 +64,7 @@ class Response:
|
|
64 |
]
|
65 |
try:
|
66 |
response = openai.ChatCompletion.create(
|
67 |
-
model="gpt-3.5-turbo",
|
68 |
messages=messages,
|
69 |
)
|
70 |
result = ''
|
|
|
18 |
self.api = api
|
19 |
self.comment = comment
|
20 |
self.language = language
|
21 |
+
self.max_token_num = 14096
|
22 |
self.encoding = tiktoken.get_encoding("gpt2")
|
23 |
|
24 |
|
|
|
64 |
]
|
65 |
try:
|
66 |
response = openai.ChatCompletion.create(
|
67 |
+
model="gpt-3.5-turbo-16k",
|
68 |
messages=messages,
|
69 |
)
|
70 |
result = ''
|