Skip to content

Commit 515df3a

Browse files
committed
fix: linting issues
1 parent 81475ef commit 515df3a

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

comps/chathistory/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,11 @@ The Chat History microservice supports MCP integration, allowing AI agents to di
2424
### MCP Configuration
2525

2626
#### Environment Variables
27+
2728
- `ENABLE_MCP`: Set to `true`, `1`, or `yes` to enable MCP support (default: `false`)
2829

2930
#### Docker Compose
31+
3032
```yaml
3133
services:
3234
chathistory-mongo:
@@ -35,6 +37,7 @@ services:
3537
```
3638
3739
#### Kubernetes
40+
3841
```yaml
3942
chathistory:
4043
ENABLE_MCP: true
@@ -66,6 +69,7 @@ tools = await tools_manager.get_available_tools()
6669
### MCP Endpoint
6770

6871
When MCP is enabled, the service exposes an additional SSE endpoint:
72+
6973
- `/sse` - Server-Sent Events endpoint for MCP communication
7074

7175
---

tests/utils/validate_svc_with_mcp.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
#!/bin/bash
2-
# Copyright (C) 2025 Intel Corporation
1+
#!/usr/bin/env python3
2+
# Copyright (C) 2024 Intel Corporation
33
# SPDX-License-Identifier: Apache-2.0
44

55
import asyncio
66
import base64
77
import json
8-
import os
98
import random
109
import sys
1110

@@ -22,7 +21,10 @@ async def validate_svc(ip_address, service_port, service_type):
2221
async with ClientSession(*streams) as session:
2322
result = await session.initialize()
2423
if service_type == "asr":
25-
url = "https://github.com/intel/intel-extension-for-transformers/raw/main/intel_extension_for_transformers/neural_chat/assets/audio/sample.wav"
24+
url = (
25+
"https://github.com/intel/intel-extension-for-transformers/raw/main/"
26+
"intel_extension_for_transformers/neural_chat/assets/audio/sample.wav"
27+
)
2628
response = requests.get(url)
2729
response.raise_for_status() # Ensure the download succeeded
2830
binary_data = response.content
@@ -79,7 +81,9 @@ async def validate_svc(ip_address, service_port, service_type):
7981
elif service_type == "lvm":
8082
input_dict = {
8183
"request": {
82-
"image": "iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAFUlEQVR42mP8/5+hnoEIwDiqkL4KAcT9GO0U4BxoAAAAAElFTkSuQmCC",
84+
"image": (
85+
"iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAFUlEQVR42mP8/5+hnoEIwDiqkL4KAcT9GO0U4BxoAAAAAElFTkSuQmCC"
86+
),
8387
"prompt": "What is this?",
8488
}
8589
}

0 commit comments

Comments
 (0)