diff --git a/components/copilot.tsx b/components/copilot.tsx index b229f919..2096b26a 100644 --- a/components/copilot.tsx +++ b/components/copilot.tsx @@ -133,15 +133,15 @@ export const Copilot: React.FC = ({ className="flex items-center space-x-1.5 mb-2" > handleOptionChange(option?.label as string) } /> diff --git a/components/header.tsx b/components/header.tsx index b76d52e1..c091bab6 100644 --- a/components/header.tsx +++ b/components/header.tsx @@ -12,7 +12,7 @@ export const Header: React.FC = () => {
- Metamorphic + Morphic
diff --git a/lib/agents/inquire.tsx b/lib/agents/inquire.tsx index bf6c9d7d..1313b813 100644 --- a/lib/agents/inquire.tsx +++ b/lib/agents/inquire.tsx @@ -18,11 +18,16 @@ export async function inquire( maxTokens: 2500, system: `You are a professional web researcher tasked with deepening your understanding of the user's input through further inquiries. Only ask additional questions if absolutely necessary after receiving an initial response from the user. - 'names' should be an array of English identifiers for the options provided. Structure your inquiry as follows: + Structure your inquiry as follows: e.g., { "inquiry": "What specific information are you seeking about Rivian?", - "options": ["History", "Products", "Investors", "Partnerships", "Competitors"], - "names": ["history", "products", "investors", "partnerships", "competitors"], + "options": [ + {"value": "history", "label": "History"}, + {"value": "products", "label": "Products"}, + {"value": "investors", "label": "Investors"}, + {"value": "partnerships", "label": "Partnerships"}, + {"value": "competitors", "label": "Competitors"} + ], "allowsInput": true, "inputLabel": "If other, please specify", "inputPlaceholder": "e.g., Specifications" diff --git a/lib/schema/inquiry.tsx b/lib/schema/inquiry.tsx index 3600ff0d..2d929c4a 100644 --- a/lib/schema/inquiry.tsx +++ b/lib/schema/inquiry.tsx @@ -5,7 +5,7 @@ export const inquirySchema = z.object({ inquiry: z.string().describe(''), options: z.array( z.object({ - name: z.string(), + value: z.string(), label: z.string() }) ),