Skip to content

Commit

Permalink
(fix)[common]: llm checker (#20)
Browse files Browse the repository at this point in the history
* fix buidler init

* fix llm checker
  • Loading branch information
northmachine authored Nov 4, 2024
1 parent 7b2cc22 commit 0ff65c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kag/common/llm/llm_config_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
# or implied.

import json
from kag.common.llm.client import LLMClient


class LLMConfigChecker(object):
Expand All @@ -32,6 +31,7 @@ def check(self, config: str) -> str:
:rtype: str
:raises RuntimeError: if the config is invalid
"""
from kag.common.llm.client import LLMClient
config = json.loads(config)
llm_client = LLMClient.from_config(config)
try:
Expand Down

0 comments on commit 0ff65c2

Please sign in to comment.