{"action":"created","issue":{"url":"https://api.github.com/repos/gunthercox/ChatterBot/issues/1257","repository_url":"https://api.github.com/repos/gunthercox/ChatterBot","labels_url":"https://api.github.com/repos/gunthercox/ChatterBot/issues/1257/labels{/name}","comments_url":"https://api.github.com/repos/gunthercox/ChatterBot/issues/1257/comments","events_url":"https://api.github.com/repos/gunthercox/ChatterBot/issues/1257/events","html_url":"https://github.com/gunthercox/ChatterBot/issues/1257","id":307532738,"node_id":"MDU6SXNzdWUzMDc1MzI3Mzg=","number":1257,"title":"accommodate low confidence adapter default response","user":{"login":"vkosuri","id":13664257,"node_id":"MDQ6VXNlcjEzNjY0MjU3","avatar_url":"https://avatars3.githubusercontent.com/u/13664257?v=4","gravatar_id":"","url":"https://api.github.com/users/vkosuri","html_url":"https://github.com/vkosuri","followers_url":"https://api.github.com/users/vkosuri/followers","following_url":"https://api.github.com/users/vkosuri/following{/other_user}","gists_url":"https://api.github.com/users/vkosuri/gists{/gist_id}","starred_url":"https://api.github.com/users/vkosuri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkosuri/subscriptions","organizations_url":"https://api.github.com/users/vkosuri/orgs","repos_url":"https://api.github.com/users/vkosuri/repos","events_url":"https://api.github.com/users/vkosuri/events{/privacy}","received_events_url":"https://api.github.com/users/vkosuri/received_events","type":"User","site_admin":false},"labels":[{"id":133189200,"node_id":"MDU6TGFiZWwxMzMxODkyMDA=","url":"https://api.github.com/repos/gunthercox/ChatterBot/labels/enhancement","name":"enhancement","color":"2196F3","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-22T07:28:15Z","updated_at":"2018-10-03T10:59:58Z","closed_at":null,"author_association":"COLLABORATOR","body":"The [Low confidence adapter works](https://chatterbot.readthedocs.io/en/stable/logic/index.html#low-confidence-response-adapter) as expected when a user configured with some threshold value and default response. The response correctly filtering out.\r\n\r\nThe problems is here if a response falls under specified threshold value, the low confidence adapter **default response** didn't updated in the conversation instead it returning an empty value like below\r\n\r\n``` JSON\r\n{\"conversation\": [], \"detail\": \"You should make a POST request to this endpoint.\", \"name\": \"ChatterBot\"},\r\n```\r\n\r\nTo reproduce this issue, you may use below configuration in Django training\r\n``` Python\r\nCHATTERBOT = {\r\n    'logic_adapters' : [\r\n        {\r\n            'import_path': \"chatterbot.logic.BestMatch\"\r\n        },\r\n        {\r\n        'import_path': 'chatterbot.logic.LowConfidenceAdapter',\r\n        'threshold': 0.5,\r\n        'default_response': 'You can ask other question'\r\n        }\r\n    ]\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/gunthercox/ChatterBot/issues/comments/426595046","html_url":"https://github.com/gunthercox/ChatterBot/issues/1257#issuecomment-426595046","issue_url":"https://api.github.com/repos/gunthercox/ChatterBot/issues/1257","id":426595046,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNjU5NTA0Ng==","user":{"login":"gunthercox","id":2030578,"node_id":"MDQ6VXNlcjIwMzA1Nzg=","avatar_url":"https://avatars1.githubusercontent.com/u/2030578?v=4","gravatar_id":"","url":"https://api.github.com/users/gunthercox","html_url":"https://github.com/gunthercox","followers_url":"https://api.github.com/users/gunthercox/followers","following_url":"https://api.github.com/users/gunthercox/following{/other_user}","gists_url":"https://api.github.com/users/gunthercox/gists{/gist_id}","starred_url":"https://api.github.com/users/gunthercox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gunthercox/subscriptions","organizations_url":"https://api.github.com/users/gunthercox/orgs","repos_url":"https://api.github.com/users/gunthercox/repos","events_url":"https://api.github.com/users/gunthercox/events{/privacy}","received_events_url":"https://api.github.com/users/gunthercox/received_events","type":"User","site_admin":false},"created_at":"2018-10-03T10:59:58Z","updated_at":"2018-10-03T10:59:58Z","author_association":"OWNER","body":"@vkosuri Do you know if this will still be an issue in the latest version?"}}
{"actor":{"display_login":"gunthercox"}}