handler v4
#4
by
vikram-fresche
- opened
- handler.py +1 -1
handler.py
CHANGED
@@ -55,7 +55,7 @@ class EndpointHandler:
|
|
55 |
logger.info("Processing new request")
|
56 |
logger.info(f"Input data: {data}")
|
57 |
|
58 |
-
messages = data.get("
|
59 |
if not messages:
|
60 |
logger.warning("No input messages provided")
|
61 |
return [{"role": "assistant", "content": "No input messages provided"}]
|
|
|
55 |
logger.info("Processing new request")
|
56 |
logger.info(f"Input data: {data}")
|
57 |
|
58 |
+
messages = data.get("inputs", [])
|
59 |
if not messages:
|
60 |
logger.warning("No input messages provided")
|
61 |
return [{"role": "assistant", "content": "No input messages provided"}]
|