Skip to content

Commit 3d9ff21

Browse files
authored
fix(py): fixed embedders and reflection health check (#3969)
1 parent 70e9c4e commit 3d9ff21

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

‎py/packages/genkit/src/genkit/ai/_server.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838

3939
import structlog
4040

41+
from genkit.core.constants import DEFAULT_GENKIT_VERSION
42+
4143
logger = structlog.get_logger(__name__)
4244

4345

@@ -87,6 +89,7 @@ def create_runtime(
8789
'reflectionApiSpecVersion': 1,
8890
'id': f'{os.getpid()}',
8991
'pid': os.getpid(),
92+
'genkitVersion': 'py/' + DEFAULT_GENKIT_VERSION,
9093
'reflectionServerUrl': reflection_server_spec.url,
9194
'timestamp': f'{current_datetime.isoformat()}',
9295
})

‎py/packages/genkit/src/genkit/core/reflection.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def do_GET(self) -> None: # noqa: N802
113113
For the /api/actions endpoint, returns a JSON object mapping action
114114
keys to their metadata, including input/output schemas.
115115
"""
116-
if self.path == '/api/__health':
116+
if urllib.parse.urlparse(self.path).path == '/api/__health':
117117
self.send_response(200, 'OK')
118118
self.end_headers()
119119

0 commit comments

Comments
 (0)