f370fe60 by Jeff

29286_token_usage

1 parent 30cf46e8
......@@ -51,6 +51,14 @@
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
<div id="modal-container" style="display: none">
<div id="modal-content">
<div id="modal-subtitle"></div>
<h2 id="modal-title"></h2>
<p id="modal-desc"></p>
<a id="modal-cta" href="#" target="_parent"></a>
</div>
</div>
</body>
<script>
window.onload = function() {
......
......@@ -71,6 +71,14 @@ function App() {
TPLogicRun();
}
// eslint-disable-next-line
btutil_getChatUsage();
// eslint-disable-next-line
let maxTokens = btutilCommon_getCookie("max-tokens");
if (maxTokens==='1'){
return;
}
const userInput = ['what', 'why', 'when', 'where' , 'which', 'did', 'do', 'how', 'can', 'are', 'who'];
const userInputRegex = new RegExp(`\\b(${userInput.join('|')})\\b`, 'gi');
const inputMatches = chatInput.match(userInputRegex);
......
import React, { useState } from "react";
import React from "react";
import SuggestedOptions from './suggestedOptions'
import ExportButton from "./ExportButton";
const ChatBox = ({chatLog, setChatInput, handleSubmit, chatInput, startedInteraction, setStartedInteraction}) => {
......
......@@ -4,7 +4,8 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node index.js"
},
"author": "",
"license": "ISC",
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!