pipelines
pipelines copied to clipboard
Remove back quotes when receiving a function response
The function response returns an object in Markdown format. Added code removing this markup in the response.
An example of the operation of pipelines via ollama:
pipe:blueprints.function_calling_blueprint
{'id': 'fb0adde5-cf56-41b1-a9f9-67136f6af085', 'email': '[email protected]', 'name': 'Ivan Grigorev', 'role': 'admin'}
---------------------------------incorrect format---------------------------------
```{"name": "get_current_time", "parameters": {}}```
---------------------------------correct format------------------------------------
{"name": "get_current_time", "parameters": {}}
------------------------------------------------------------------------------------
{'name': 'get_current_time', 'parameters': {}}
{'name': 'get_current_time', 'parameters': {}}
INFO: 172.19.0.5:60154 - "POST /function_calling/filter/inlet HTTP/1.1" 200 OK
INFO: 172.19.0.5:41772 - "GET /models HTTP/1.1" 200 OK
INFO: 172.19.0.5:41786 - "POST /function_calling/filter/outlet HTTP/1.1" 200 OK
pipe:blueprints.function_calling_blueprint
{'id': 'fb0adde5-cf56-41b1-a9f9-67136f6af085', 'email': '[email protected]', 'name': 'Ivan Grigorev', 'role': 'admin'}
🕰️ Current Time Response
{}
INFO: 172.19.0.5:41802 - "POST /function_calling/filter/inlet HTTP/1.1" 200 OK
pipe:blueprints.function_calling_blueprint
{'id': 'fb0adde5-cf56-41b1-a9f9-67136f6af085', 'email': '[email protected]', 'name': 'Ivan Grigorev', 'role': 'admin'}
---------------------------------incorrect format---------------------------------
/```json
{
"tags": [
"Technology",
"General",
"Health"
]
}
/```
---------------------------------correct format------------------------------------
{
"tags": [
"Technology",
"General",
"Health"
]
}
------------------------------------------------------------------------------------
{'tags': ['Technology', 'General', 'Health']}
{'tags': ['Technology', 'General', 'Health']}
INFO: 172.19.0.5:41814 - "POST /function_calling/filter/inlet HTTP/1.1" 200 OK