mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-21 14:05:17 +02:00
Merge pull request #694 from garylin2099/llm_mock
enforce mock on online test
This commit is contained in:
commit
d4d4a1639a
3 changed files with 7 additions and 5 deletions
|
|
@ -23,9 +23,9 @@ from metagpt.utils.git_repository import GitRepository
|
|||
from tests.mock.mock_llm import MockLLM
|
||||
|
||||
RSP_CACHE_NEW = {} # used globally for producing new and useful only response cache
|
||||
ALLOW_OPENAI_API_CALL = os.environ.get(
|
||||
"ALLOW_OPENAI_API_CALL", True
|
||||
) # NOTE: should change to default False once mock is complete
|
||||
ALLOW_OPENAI_API_CALL = int(
|
||||
os.environ.get("ALLOW_OPENAI_API_CALL", 1)
|
||||
) # NOTE: should change to default 0 (False) once mock is complete
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue