rag-sentinel 0.1.1__tar.gz → 0.1.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rag_sentinel-0.1.1/src/rag_sentinel.egg-info → rag_sentinel-0.1.2}/PKG-INFO +1 -1
- {rag_sentinel-0.1.1 → rag_sentinel-0.1.2}/pyproject.toml +1 -1
- {rag_sentinel-0.1.1 → rag_sentinel-0.1.2}/src/rag_sentinel/evaluator.py +16 -2
- {rag_sentinel-0.1.1 → rag_sentinel-0.1.2/src/rag_sentinel.egg-info}/PKG-INFO +1 -1
- {rag_sentinel-0.1.1 → rag_sentinel-0.1.2}/LICENSE +0 -0
- {rag_sentinel-0.1.1 → rag_sentinel-0.1.2}/MANIFEST.in +0 -0
- {rag_sentinel-0.1.1 → rag_sentinel-0.1.2}/README.md +0 -0
- {rag_sentinel-0.1.1 → rag_sentinel-0.1.2}/setup.cfg +0 -0
- {rag_sentinel-0.1.1 → rag_sentinel-0.1.2}/src/rag_sentinel/__init__.py +0 -0
- {rag_sentinel-0.1.1 → rag_sentinel-0.1.2}/src/rag_sentinel/cli.py +0 -0
- {rag_sentinel-0.1.1 → rag_sentinel-0.1.2}/src/rag_sentinel/templates/.env.template +0 -0
- {rag_sentinel-0.1.1 → rag_sentinel-0.1.2}/src/rag_sentinel/templates/config.ini.template +0 -0
- {rag_sentinel-0.1.1 → rag_sentinel-0.1.2}/src/rag_sentinel/templates/rag_eval_config.yaml +0 -0
- {rag_sentinel-0.1.1 → rag_sentinel-0.1.2}/src/rag_sentinel.egg-info/SOURCES.txt +0 -0
- {rag_sentinel-0.1.1 → rag_sentinel-0.1.2}/src/rag_sentinel.egg-info/dependency_links.txt +0 -0
- {rag_sentinel-0.1.1 → rag_sentinel-0.1.2}/src/rag_sentinel.egg-info/entry_points.txt +0 -0
- {rag_sentinel-0.1.1 → rag_sentinel-0.1.2}/src/rag_sentinel.egg-info/requires.txt +0 -0
- {rag_sentinel-0.1.1 → rag_sentinel-0.1.2}/src/rag_sentinel.egg-info/top_level.txt +0 -0
|
@@ -177,8 +177,22 @@ def get_metrics(config):
|
|
|
177
177
|
|
|
178
178
|
|
|
179
179
|
def get_auth_headers_and_cookies(config):
|
|
180
|
-
"""
|
|
181
|
-
|
|
180
|
+
"""
|
|
181
|
+
Get authentication headers and cookies from backend config.
|
|
182
|
+
|
|
183
|
+
Supports three authentication types:
|
|
184
|
+
- cookie: Session cookie authentication
|
|
185
|
+
- bearer: Bearer token authentication
|
|
186
|
+
- header: Custom header authentication
|
|
187
|
+
|
|
188
|
+
Args:
|
|
189
|
+
config: Full configuration dictionary
|
|
190
|
+
|
|
191
|
+
Returns:
|
|
192
|
+
tuple: (headers dict, cookies dict)
|
|
193
|
+
"""
|
|
194
|
+
# Auth config is nested under backend.auth in the YAML
|
|
195
|
+
auth_config = config.get('backend', {}).get('auth', {})
|
|
182
196
|
auth_type = auth_config.get('type', 'none').lower()
|
|
183
197
|
headers = {}
|
|
184
198
|
cookies = {}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|