Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Massive Front End Update and Optimizations #78

Merged
merged 44 commits into from
Apr 25, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
226a15c
In-progress double-sided popout;
JamesonRGrieve Apr 24, 2023
fb3d122
Updated UI in preparation for chains and prompts;
JamesonRGrieve Apr 24, 2023
e90bfc5
Update provider endpoint
Josh-XT Apr 25, 2023
af816a1
Replace on prompts to get rid of .txt
Josh-XT Apr 25, 2023
06937ff
Updated GUI;
JamesonRGrieve Apr 25, 2023
4b1d899
Fixed markdown file refs;
JamesonRGrieve Apr 25, 2023
12b37ed
Fixed markdown file folder;
JamesonRGrieve Apr 25, 2023
8b69d44
yarn lock
Josh-XT Apr 25, 2023
d2ec8e4
Pointed docs back to main branch;
JamesonRGrieve Apr 25, 2023
f7fbbf3
Updated README;
JamesonRGrieve Apr 25, 2023
f717169
Merge branch 'nextjs-2' of https://github.com/Josh-XT/Agent-LLM into …
JamesonRGrieve Apr 25, 2023
6f194cc
Added contact email to README;
JamesonRGrieve Apr 25, 2023
8596672
Added Facebook group;
JamesonRGrieve Apr 25, 2023
857518b
Added Twitter;
JamesonRGrieve Apr 25, 2023
0cb1daa
Reordered links;
JamesonRGrieve Apr 25, 2023
47a7328
Modifying task output
Josh-XT Apr 25, 2023
1e6bd06
Merge branch 'nextjs-2' of https://github.com/Josh-XT/AgentLLM into n…
Josh-XT Apr 25, 2023
725c5bd
naming
Josh-XT Apr 25, 2023
222bf8e
Fixed per Josh request;
JamesonRGrieve Apr 25, 2023
82667fd
Merge branch 'nextjs-2' of https://github.com/Josh-XT/Agent-LLM into …
JamesonRGrieve Apr 25, 2023
ac6d776
Changed a couple lines of README;
JamesonRGrieve Apr 25, 2023
a4080db
README updates;
JamesonRGrieve Apr 25, 2023
4b32fda
Still broken but less
Josh-XT Apr 25, 2023
8c23ef9
Merge branch 'nextjs-2' of https://github.com/Josh-XT/AgentLLM into n…
Josh-XT Apr 25, 2023
9ebab95
Fixed objective return;
JamesonRGrieve Apr 25, 2023
593a7e8
Add output list back
Josh-XT Apr 25, 2023
70f88e3
Updates
Josh-XT Apr 25, 2023
d11bd11
Added todo;
JamesonRGrieve Apr 25, 2023
026d1c8
super kill that task!
Josh-XT Apr 25, 2023
ed5f265
Merge branch 'nextjs-2' of https://github.com/Josh-XT/AgentLLM into n…
Josh-XT Apr 25, 2023
994591f
Reorg task agent
Josh-XT Apr 25, 2023
8e54ca6
Updates
Josh-XT Apr 25, 2023
f323436
Attempt to fix threading;
JamesonRGrieve Apr 25, 2023
1b9f625
Attempted fix;
JamesonRGrieve Apr 25, 2023
681308f
Attempted fix 2;
JamesonRGrieve Apr 25, 2023
28739a3
Partial rewrite of BabyAGI engine;
JamesonRGrieve Apr 25, 2023
2fbcc9d
A couple more fixes;
JamesonRGrieve Apr 25, 2023
ae31acd
maybe?
Josh-XT Apr 25, 2023
42e2f5a
cleanup
Josh-XT Apr 25, 2023
9c2bc7f
Fixed, hopefully;
JamesonRGrieve Apr 25, 2023
1e13093
Cleaned up prints;
JamesonRGrieve Apr 25, 2023
fc980e0
Demoved dequeue;
JamesonRGrieve Apr 25, 2023
ab90e64
Spacing;
JamesonRGrieve Apr 25, 2023
8e0c66f
Spacing again;
JamesonRGrieve Apr 25, 2023
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
Prev Previous commit
Next Next commit
Pointed docs back to main branch;
  • Loading branch information
JamesonRGrieve committed Apr 25, 2023
commit d2ec8e4a7fec852d39fd9bbaf4f90dc6ab64073f
4 changes: 1 addition & 3 deletions frontend/components/agent/AgentObjective.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*

import { useState, useEffect, useCallback } from "react";
import { useRouter } from "next/router";
import axios from "axios";
Expand Down Expand Up @@ -72,5 +72,3 @@ export default function AgentObjective() {
</>
);
};
*/
export {};
2 changes: 2 additions & 0 deletions frontend/components/agent/AgentPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ export default function AgentPanel() {
const tabs = [
<AgentChat key="chat" />,
<AgentInstruct key="instruct" />,
<AgentObjective key="objective" />,
<AgentAdmin key="admin" />
];
return (
<>
<Tabs value={tab} onChange={handleTabChange} sx={{ mb: "0.5rem" }}>
<Tab label="Chat With Agent" />
<Tab label="Instruct Agent" />
<Tab label="Set Agent Objective" />
<Tab label="Administrate Agent" />
</Tabs>
{tabs[tab]}
Expand Down
2 changes: 1 addition & 1 deletion frontend/pages/agent/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import ContentSWR from '@/components/content/ContentSWR';
import DoubleSidedMenu from '@/components/content/DoubleSidedMenu';
import MenuAgentList from '@/components/agent/AgentList';
export default function Home() {
const docs = useSWR('docs/prompt', async () => (await axios.get("https://raw.githubusercontent.com/Josh-XT/Agent-LLM/nextjs-2/docs/concepts/AGENT.md")).data);
const docs = useSWR('docs/prompt', async () => (await axios.get("https://raw.githubusercontent.com/Josh-XT/Agent-LLM/main/docs/concepts/AGENT.md")).data);
const agents = useSWR('agent', async () => (await axios.get(`${process.env.NEXT_PUBLIC_API_URI ?? 'http://localhost:5000'}/api/agent`)).data.agents);
return <DoubleSidedMenu title={"Agent Homepage"} leftHeading={"Agents"} leftSWR={agents} leftMenu={MenuAgentList} rightHeading={null} rightSWR={null} rightMenu={null} content={() => <Container>
<ContentSWR swr={docs} content={({ data }) => (
Expand Down
2 changes: 1 addition & 1 deletion frontend/pages/chain/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import ContentSWR from '@/components/content/ContentSWR';
import DoubleSidedMenu from '@/components/content/DoubleSidedMenu';
import ChainList from '@/components/chain/ChainList';
export default function Home() {
const docs = useSWR('docs/prompt', async () => (await axios.get("https://raw.githubusercontent.com/Josh-XT/Agent-LLM/nextjs-2/docs/concepts/CHAIN.md")).data);
const docs = useSWR('docs/prompt', async () => (await axios.get("https://raw.githubusercontent.com/Josh-XT/Agent-LLM/main/docs/concepts/CHAIN.md")).data);
const chains = useSWR('chain', async () => (await axios.get(`${process.env.NEXT_PUBLIC_API_URI ?? 'http://localhost:5000'}/api/chain`)).data);
return <DoubleSidedMenu title={"Chain Homepage"} leftHeading={"Chains"} leftSWR={chains} leftMenu={ChainList} rightHeading={null} rightSWR={null} rightMenu={null} content={() => <Container>
<ContentSWR swr={docs} content={({ data }) => (
Expand Down
2 changes: 1 addition & 1 deletion frontend/pages/prompt/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import PromptList from '@/components/prompt/PromptList';
import {useRouter} from 'next/router';
export default function Home() {
const router = useRouter();
const docs = useSWR('docs/prompt', async () => (await axios.get("https://raw.githubusercontent.com/Josh-XT/Agent-LLM/main/docs/nextjs-2/concepts/PROMPT.md")).data);
const docs = useSWR('docs/prompt', async () => (await axios.get("https://raw.githubusercontent.com/Josh-XT/Agent-LLM/main/docs/main/concepts/PROMPT.md")).data);
const prompts = useSWR('prompt', async () => (await axios.get(`${process.env.NEXT_PUBLIC_API_URI ?? 'http://localhost:5000'}/api/prompt`)).data.prompts);
return <DoubleSidedMenu title={"Prompt Homepage"} leftHeading={"Prompts"} leftSWR={prompts} leftMenu={PromptList} rightHeading={null} rightSWR={null} rightMenu={null} content={() => <Container>
<ContentSWR swr={docs} content={({ data }) => (
Expand Down
3 changes: 2 additions & 1 deletion frontend/pages/provider/[provider].js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ import ContentSWR from '@/components/content/ContentSWR';
import DoubleSidedMenu from '@/components/content/DoubleSidedMenu';
import ProviderList from '@/components/provider/ProviderList';
import { Container } from '@mui/material';
import ReactMarkdown from 'react-markdown';
export default function Provider() {
const providerName = useRouter().query.provider;
const docs = useSWR('docs/provider/'+providerName, async () => (await axios.get("https://raw.githubusercontent.com/Josh-XT/Agent-LLM/nextjs-2/docs/providers/"+providerName.toUpperCase()+".md")).data);
const docs = useSWR('docs/provider/'+providerName, async () => (await axios.get("https://raw.githubusercontent.com/Josh-XT/Agent-LLM/main/docs/providers/"+providerName.toUpperCase()+".md")).data);
const providers = useSWR('provider', async () => (await axios.get(`${process.env.NEXT_PUBLIC_API_URI ?? 'http://localhost:5000'}/api/provider`)).data.providers);
return <DoubleSidedMenu title={"Provider Homepage"} leftHeading={"Providers"} leftSWR={providers} leftMenu={ProviderList} rightHeading={null} rightSWR={null} rightMenu={null} content={() => <Container>
<ContentSWR swr={docs} content={({ data }) => (
Expand Down
2 changes: 1 addition & 1 deletion frontend/pages/provider/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import ContentSWR from '@/components/content/ContentSWR';
import DoubleSidedMenu from '@/components/content/DoubleSidedMenu';
import ProviderList from '@/components/provider/ProviderList';
export default function Home() {
const docs = useSWR('docs/prompt', async () => (await axios.get("https://raw.githubusercontent.com/Josh-XT/Agent-LLM/nextjs-2/docs/concepts/PROVIDER.md")).data);
const docs = useSWR('docs/prompt', async () => (await axios.get("https://raw.githubusercontent.com/Josh-XT/Agent-LLM/main/docs/concepts/PROVIDER.md")).data);
const providers = useSWR('provider', async () => (await axios.get(`${process.env.NEXT_PUBLIC_API_URI ?? 'http://localhost:5000'}/api/provider`)).data.providers);
return <DoubleSidedMenu title={"Provider Homepage"} leftHeading={"Providers"} leftSWR={providers} leftMenu={ProviderList} rightHeading={null} rightSWR={null} rightMenu={null} content={() => <Container>
<ContentSWR swr={docs} content={({ data }) => (
Expand Down