Skip to content

Commit

Permalink
added example requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Bianca Wentzel committed Oct 2, 2024
1 parent 38e66ef commit 75bd8d3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions assets/js/Containers/FrevaGPT/exampleRequests.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
};
2 changes: 1 addition & 1 deletion assets/js/Containers/FrevaGPT/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 75bd8d3

Please sign in to comment.