vikram-fresche
commited on
Commit
·
ff143df
1
Parent(s):
0e056a8
added custom handler v5
Browse files- 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"}]
|