File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 99from dotenv import load_dotenv
1010from tqdm .asyncio import tqdm as tqdm_async
1111
12- from graphgen .models import NetworkXStorage , OpenAIModel , Tokenizer
12+ from graphgen .models import NetworkXStorage , OpenAIClient , Tokenizer
1313from graphgen .utils import create_event_loop
1414
1515QA_GENERATION_PROMPT = """
@@ -54,7 +54,7 @@ def _post_process(text: str) -> dict:
5454
5555@dataclass
5656class 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" ),
You can’t perform that action at this time.
0 commit comments