Skip to content

Commit 3fb56dc

Browse files
fix: fix OpenAIClient import error
1 parent b8ad101 commit 3fb56dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

baselines/BDS/bds.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from dotenv import load_dotenv
1010
from tqdm.asyncio import tqdm as tqdm_async
1111

12-
from graphgen.models import NetworkXStorage, OpenAIModel, Tokenizer
12+
from graphgen.models import NetworkXStorage, OpenAIClient, Tokenizer
1313
from graphgen.utils import create_event_loop
1414

1515
QA_GENERATION_PROMPT = """
@@ -54,7 +54,7 @@ def _post_process(text: str) -> dict:
5454

5555
@dataclass
5656
class BDS:
57-
llm_client: OpenAIModel = None
57+
llm_client: OpenAIClient = None
5858
max_concurrent: int = 1000
5959

6060
def generate(self, tasks: List[dict]) -> List[dict]:
@@ -105,7 +105,7 @@ async def job(item):
105105
tokenizer_instance: Tokenizer = Tokenizer(
106106
model_name=os.getenv("TOKENIZER_MODEL", "cl100k_base")
107107
)
108-
llm_client = OpenAIModel(
108+
llm_client = OpenAIClient(
109109
model_name=os.getenv("SYNTHESIZER_MODEL"),
110110
api_key=os.getenv("SYNTHESIZER_API_KEY"),
111111
base_url=os.getenv("SYNTHESIZER_BASE_URL"),

0 commit comments

Comments
 (0)