perf: request llm api when only TEST_LLM=on
This commit is contained in:
@@ -296,7 +296,7 @@ class ProviderOpenAIOfficial(Provider):
|
||||
extra_conf: Dict = None,
|
||||
**kwargs
|
||||
) -> str:
|
||||
if os.environ.get("TEST_LLM", "off") == "on":
|
||||
if os.environ.get("TEST_LLM", "off") != "on":
|
||||
return "这是一个测试消息。"
|
||||
|
||||
super().accu_model_stat()
|
||||
|
||||
Reference in New Issue
Block a user