diff --git a/assets/js/Containers/FrevaGPT/exampleRequests.js b/assets/js/Containers/FrevaGPT/exampleRequests.js index 578d6c16..103a51d1 100644 --- a/assets/js/Containers/FrevaGPT/exampleRequests.js +++ b/assets/js/Containers/FrevaGPT/exampleRequests.js @@ -31,4 +31,18 @@ export const botRequests = { thread: "2YNjKiekgLAGKHL5WrHa9JXe3Gknfxax", } ], + freva: [ + { + title: "Use the freva databrowser to extract the number of datasets for the project cmip5 and the variable cli", + thread: "faWvwiqUGwC6cJq9OL4bSmWytkLxyYkQ" + }, + { + title: "Which plugins are integrated into freva?", + thread: "66Rtx8qGrAHUza5DRjUBCkgblBGnE7yb" + }, + { + title: "What is freva?", + thread: "Pp6xO7lLI4j9LGx34AIGcPGbgxLFq5jE" + } + ] }; \ No newline at end of file diff --git a/assets/js/Containers/FrevaGPT/index.js b/assets/js/Containers/FrevaGPT/index.js index 7806724e..ee753a76 100644 --- a/assets/js/Containers/FrevaGPT/index.js +++ b/assets/js/Containers/FrevaGPT/index.js @@ -101,7 +101,7 @@ class FrevaGPT extends React.Component { }; // response of a new bot request is streamed - const response = await fetch(`/api/chatbot/streamresponse?` + helper.objectToQueryString(queryObject)); //, signal); + const response = await fetch(`/api/chatbot/streamresponse?` + objectToQueryString(queryObject)); //, signal); const reader = response.body.getReader(); const decoder = new TextDecoder('utf-8');