uselotus / lotus

File .deepsource.toml not found in the default branch of the repository root. Please refer to the docs.

Loop variable used outside the loop PYL-W0631
Bug risk
Critical
2 occurrences in this check
Using possibly undefined loop variable 'tc'
377                    organization=organization,
378                    customer=customer,
379                    event_name="generate_text",
380                    time_created=tc,381                    idempotency_id=uuid.uuid4(),
382                    properties={
383                        "language": language,
Using possibly undefined loop variable 'tc'
390                    organization=organization,
391                    customer=customer,
392                    event_name="computation",
393                    time_created=tc,394                    idempotency_id=uuid.uuid4(),
395                    properties={
396                        "cost": abs(compute_time * random.gauss(0.05, 0.01)),