Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
yuiseki committed Nov 9, 2024
1 parent 69169f9 commit ed7fcc8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export default function Home() {
await sleep(200);
scrollToBottom();

// invoke surface layer
const surfaceRes = await nextPostJson("/api/ai/surface", {
query: newInputText,
pastMessages: pastMessages ? JSON.stringify(pastMessages) : undefined,
Expand All @@ -128,6 +129,8 @@ export default function Home() {
);
setMapping(true);
setResponding(true);

// invoke inner layer
const innerRes = await nextPostJson("/api/ai/inner", {
pastMessages: JSON.stringify(surfaceResJson.history),
bounds: JSON.stringify(mapRef.current?.getBounds()),
Expand Down Expand Up @@ -161,6 +164,7 @@ export default function Home() {
setPageTitle(newMapTitle ? `${newMapTitle} | TRIDENT` : "TRIDENT");
}

// invoke deep layer by each item of linesWithAreaAndOrConcern
linesWithAreaAndOrConcern.map(async (line: string, idx: number) => {
let style = {};
Object.keys(styles).map((concern) => {
Expand Down

0 comments on commit ed7fcc8

Please sign in to comment.