mirror of https://github.com/aliasrobotics/cai.git
fix: respect CAI_TELEMETRY=false for intermediate log uploads
This commit is contained in:
parent
87cc46f46f
commit
bc8994c4ea
|
|
@ -3573,6 +3573,8 @@ class OpenAIChatCompletionsModel(Model):
|
|||
|
||||
def _intermediate_logs(self):
|
||||
"""Intermediate logging if conditions are met."""
|
||||
if os.getenv("CAI_TELEMETRY", "true").lower() == "false":
|
||||
return
|
||||
if (
|
||||
self.logger
|
||||
and self.interaction_counter > 0
|
||||
|
|
|
|||
Loading…
Reference in New Issue