Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

initial commit #69

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions ui/src/chat-with-kg/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ function App() {
const [modalIsOpen, setModalIsOpen] = useState(false);
const [apiKey, setApiKey] = useState(loadKeyFromStorage() || "");
const [sampleQuestions, setSampleQuestions] = useState<string[]>([]);
const [text2cypherModel, setText2cypherModel] = useState<string>("gpt-3.5-turbo-0613");
const [text2cypherModel, setText2cypherModel] =
useState<string>("gpt-3.5-turbo-0613");

const showContent = serverAvailable && !needsApiKeyLoading;

Expand Down Expand Up @@ -258,8 +259,8 @@ function App() {
};

const handleModelChange = (e: ChangeEvent<HTMLSelectElement>) => {
setText2cypherModel(e.target.value)
}
setText2cypherModel(e.target.value);
};

return (
<div className="flex flex-col min-w-[800px] min-h-[100vh] bg-palette-neutral-bg-strong">
Expand All @@ -268,12 +269,12 @@ function App() {
<button onClick={openModal}>API Key</button>
</div>
)}
<div className="flex justify-end mr-4">
<div className="flex justify-end mr-4">
<select value={text2cypherModel} onChange={handleModelChange}>
<option value="gpt-3.5-turbo-0613">gpt-3.5-turbo</option>
<option value="gpt-4">gpt-4</option>
<option value="gpt-3.5-turbo-0613">gpt-3.5-turbo</option>
<option value="gpt-4">gpt-4</option>
</select>
</div>
</div>
<div className="p-6 mx-auto mt-20 rounded-lg bg-palette-neutral-bg-weak min-h-[6rem] min-w-[18rem] max-w-4xl ">
{!serverAvailable && (
<div>Server is unavailable, please reload the page to try again.</div>
Expand Down