Skip to content

Commit 1b07add

Browse files
author
Linh-nk
committed
fix-lint
1 parent cc185fe commit 1b07add

File tree

1 file changed

+1
-3
lines changed
  • sigllm/primitives/prompting

1 file changed

+1
-3
lines changed

sigllm/primitives/prompting/gpt.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
import json
44
import os
55

6-
import openai
76
import tiktoken
8-
from tqdm import tqdm
97
from openai import OpenAI
8+
from tqdm import tqdm
109

1110
PROMPT_PATH = os.path.join(
1211
os.path.dirname(os.path.abspath(__file__)),
@@ -64,7 +63,6 @@ def __init__(self, name='gpt-3.5-turbo', sep=',', anomalous_percent=0.5, temp=1,
6463

6564
self.tokenizer = tiktoken.encoding_for_model(self.name)
6665

67-
6866
valid_tokens = []
6967
for number in VALID_NUMBERS:
7068
token = self.tokenizer.encode(number)

0 commit comments

Comments
 (0)