Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
yuiseki committed Dec 8, 2024
1 parent b305ea3 commit 9c1ef99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ export default function Home() {

const invokeOverpass = useCallback(
async (history: string[]) => {
setMapping(true);
setResponding(true);
// invoke inner layer
const innerRes = await nextPostJson("/api/ai/inner", {
pastMessages: JSON.stringify(history),
Expand Down Expand Up @@ -242,8 +244,6 @@ export default function Home() {
setMapping(false);
return;
} else if (ability === "overpass-api") {
setMapping(true);
setResponding(true);
await invokeOverpass(surfaceResJson.history);
}
}, [
Expand Down

0 comments on commit 9c1ef99

Please sign in to comment.