We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea9e3d0 commit 7a05550Copy full SHA for 7a05550
graphgen/models/llm/openai_model.py
@@ -45,6 +45,8 @@ class OpenAIModel(TopkTokenModel):
45
46
def __post_init__(self):
47
assert self.api_key is not None, "Please provide api key to access openai api."
48
+ if self.api_key == "":
49
+ self.api_key = "none"
50
self.client = AsyncOpenAI(api_key=self.api_key, base_url=self.base_url)
51
52
def _pre_generate(self, text: str, history: List[str]) -> Dict:
0 commit comments