Spaces:
Runtime error
Runtime error
File size: 295 Bytes
e331e72 |
1 2 3 4 5 6 7 8 9 10 11 |
# Copyright (c) 2024 Microsoft Corporation.
# Licensed under the MIT License
from graphrag.llm import CompletionLLM, MockChatLLM
def create_mock_llm(
responses: list[str],
) -> CompletionLLM:
"""Creates a mock LLM that returns the given responses."""
return MockChatLLM(responses)
|