Skip to content

Commit

Permalink
Add LLMFunctionWithPrompt to __init__
Browse files Browse the repository at this point in the history
  • Loading branch information
Winston-503 committed Sep 19, 2024
1 parent 582fdfe commit 03a7620
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions council/llm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
ExecuteLLMRequest,
)
from .llm_function import LLMFunction, LLMFunctionError, FunctionOutOfRetryError
from .llm_function_with_prompt import LLMFunctionWithPrompt
from .monitored_llm import MonitoredLLM

from .chat_gpt_configuration import ChatGPTConfigurationBase
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/llm/test_llm_function_with_prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import dotenv

from council import AzureLLM
from council.llm.llm_function_with_prompt import LLMFunctionWithPrompt
from council.llm import LLMFunctionWithPrompt
from council.prompt import LLMPromptConfigObject
from tests import get_data_filename
from tests.integration.llm.test_llm_function import SQLResult
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/llm/test_llm_response_parser_yaml_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def test_no_block(self):

assert str(e.exception).strip().endswith("json block is not found")

def test_incorrect_yaml(self):
def test_incorrect_json(self):
llm = MockLLM.from_response(
"""
```json
Expand Down

0 comments on commit 03a7620

Please sign in to comment.