File tree Expand file tree Collapse file tree 1 file changed +14
-28
lines changed Expand file tree Collapse file tree 1 file changed +14
-28
lines changed Original file line number Diff line number Diff line change @@ -1232,20 +1232,6 @@ def _create_completion(
1232
1232
}
1233
1233
],
1234
1234
}
1235
- yield {
1236
- "id" : completion_id ,
1237
- "object" : "text_completion" ,
1238
- "created" : created ,
1239
- "model" : model_name ,
1240
- "choices" : [
1241
- {
1242
- "text" : "" ,
1243
- "index" : 0 ,
1244
- "logprobs" : None ,
1245
- "finish_reason" : finish_reason ,
1246
- }
1247
- ],
1248
- }
1249
1235
break
1250
1236
returned_tokens += 1
1251
1237
yield {
@@ -1264,20 +1250,20 @@ def _create_completion(
1264
1250
}
1265
1251
],
1266
1252
}
1267
- yield {
1268
- "id" : completion_id ,
1269
- "object" : "text_completion" ,
1270
- "created" : created ,
1271
- "model" : model_name ,
1272
- "choices" : [
1273
- {
1274
- "text" : "" ,
1275
- "index" : 0 ,
1276
- "logprobs" : None ,
1277
- "finish_reason" : finish_reason ,
1278
- }
1279
- ],
1280
- }
1253
+ yield {
1254
+ "id" : completion_id ,
1255
+ "object" : "text_completion" ,
1256
+ "created" : created ,
1257
+ "model" : model_name ,
1258
+ "choices" : [
1259
+ {
1260
+ "text" : "" ,
1261
+ "index" : 0 ,
1262
+ "logprobs" : None ,
1263
+ "finish_reason" : finish_reason ,
1264
+ }
1265
+ ],
1266
+ }
1281
1267
if self .cache :
1282
1268
if self .verbose :
1283
1269
print ("Llama._create_completion: cache save" , file = sys .stderr )
You can’t perform that action at this time.
0 commit comments