Skip to content

Commit dca04cd

Browse files
misc: pylint fixes
1 parent 821f644 commit dca04cd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

graphgen/models/llm/api/openai_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ def __init__(
6868

6969
def __post_init__(self):
7070

71-
api_name = self.backend.replace("_", " ")
71+
api_name = self.backend.replace("_", " ")
7272
assert self.api_key is not None, f"Please provide api key to access {api_name}."
73-
if self.backend == "openai_api":
73+
if self.backend == "openai_api":
7474
self.client = AsyncOpenAI(
7575
api_key=self.api_key or "dummy", base_url=self.base_url
7676
)

graphgen/operators/init/init_llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def create_llm_wrapper(backend: str, config: Dict[str, Any]) -> BaseLLMWrapper:
2929
return HTTPClient(**config)
3030
if backend in ("openai_api", "azure_openai_api"):
3131
from graphgen.models.llm.api.openai_client import OpenAIClient
32-
# pass in concrete backend to the OpenAIClient so that internally we can distinguish
32+
# pass in concrete backend to the OpenAIClient so that internally we can distinguish
3333
# between OpenAI and Azure OpenAI
3434
return OpenAIClient(**config, backend=backend)
3535
if backend == "ollama_api":

0 commit comments

Comments
 (0)