SuriRaja commited on
Commit
091b1fd
·
verified ·
1 Parent(s): 90e84d0

Delete ChatbotController.cls

Browse files
Files changed (1) hide show
  1. ChatbotController.cls +0 -14
ChatbotController.cls DELETED
@@ -1,14 +0,0 @@
1
- public class ChatbotController {
2
- public String query { get; set; }
3
- public String answer { get; set; }
4
-
5
- public void submitQuery() {
6
- if (String.isNotBlank(query)) {
7
- // Send query to Hugging Face API
8
- answer = HuggingFaceAPI.queryHuggingFace(query);
9
-
10
- // Log the query and answer in Salesforce
11
- HuggingFaceAPI.logQuery(UserInfo.getUserId(), query, answer, 'DocumentLinkHere', 95); // Example values
12
- }
13
- }
14
- }