Aidial-sdk

Latest version: v0.8.0

Safety actively analyzes 623586 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

0.8.0

Breaking changes

The prometheus export for metrics is disabled by default.

To enable it one needs to either:

1. manually set `prometheus_export=True` in `MetricsConfig`
2. configure the export via `OTEL_METRICS_EXPORTER=prometheus` env var

Features

The following OTEL env vars are supported:

* `OTEL_LOGS_EXPORTER` - comma-separated list, default - empty list, possible list values: "otlp"
* `OTEL_TRACES_EXPORTER` - comma-separated list, default - empty list, possible list values: "otlp"
* `OTEL_METRICS_EXPORTER` - comma-separated list, default - empty list, possible list values: "otlp" and "prometheus"
* `OTEL_PYTHON_LOG_CORRELATION` - boolean, default - False, if True then logs sent to console are amended with trace_id and span_id
* `OTEL_EXPORTER_PROMETHEUS_PORT` - integer, default - 9464, port to bind the prometheus exporter for metrics to

One could turn on the telemetry in the DIAL app configuration:

python
DIALApp(..., telemetry_config=TelemetryConfig())


and configure the OTEL exporters solely via env vars without the need to change the application code.

When no OTEL env vars are set, the export is disabled.

Other

* bump black from 23.9.1 to 24.3.0 (87)
* bump slash-command-dispatch from 3.0.1 to 4.0.0 (85)
* bump pillow from 10.2.0 to 10.3.0 (89, 90, 91)

0.7.0

Features

* supported display_message in the error schema and removed Null values from the error messages (78) (79)
* supported tokenize and truncate_prompt endpoints (50)

Fixes

* fastapi event listeners with enabled propagation_auth_headers (56) (80)

0.6.3

Fixes

* fixed header propagator middleware setup (75)

0.6.2

Docs

* added image-size and render-text examples (66, 68)

Other

* bump aiohttp from 3.9.0 to 3.9.2 (67)
* bump fastapi from 0.103.1 to 0.109.2 (72, 73)

0.6.1

Features:
* Make service name optional (63) (65)

0.6.0

Fixes:
* fixed typo in otlp_export parameter. Renamed oltp_export parameter to otlp_export (61)

Other:
* chore: Adjust the repository configuration for OSS Review Toolkit (57)

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.