Skip to content

Commit

Permalink
Fix compilation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
delasy committed Nov 4, 2024
1 parent 370b9b6 commit e11d28d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/play/[level]/test-mode.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { useState } from "react";
import { ReloadIcon } from "@radix-ui/react-icons";
import { useAction } from "convex/react";
import { Map } from "@/components/Map";
import { Visualizer } from "@/components/Visualizer";
import { Button } from "@/components/ui/button";
Expand All @@ -11,7 +10,6 @@ import {
SelectTrigger,
SelectValue,
} from "@/components/ui/select";
import { api } from "@/convex/_generated/api";
import { AI_MODELS } from "@/convex/constants";
import { useAITesting } from "@/hooks/useAITesting";

Expand All @@ -21,7 +19,9 @@ interface TestModeProps {
}

export default function TestMode({ level, map }: TestModeProps) {
const [selectedModel, setSelectedModel] = useState(AI_MODELS[0].model);
const [selectedModel, setSelectedModel] = useState<string>(
AI_MODELS["gpt-4o"].slug,
);
const [showOriginalMap, setShowOriginalMap] = useState(true);
const {
isSimulating,
Expand Down Expand Up @@ -60,8 +60,8 @@ export default function TestMode({ level, map }: TestModeProps) {
<SelectValue placeholder="Select AI model" />
</SelectTrigger>
<SelectContent>
{AI_MODELS.map((model) => (
<SelectItem key={model.model} value={model.model}>
{Object.values(AI_MODELS).map((model) => (
<SelectItem key={model.slug} value={model.slug}>
{model.name}
</SelectItem>
))}
Expand Down

0 comments on commit e11d28d

Please sign in to comment.