#V1.5 BETA Feedbacks
1 messages · Page 1 of 1 (latest)
Those feedbacks are not blocking the chat, I can send messages to the langgraph agent, and the langgraph agent reponses are received in the chat
pnpm update
I got this warning:
❯ pnpm update
WARN 3 deprecated subdependencies found: [email protected], [email protected], [email protected]
Packages: +1 -1
+-
Progress: resolved 1109, reused 1058, downloaded 1, added 1, done
WARN Issues with peer dependencies found
.
├─┬ @copilotkit/runtime 1.50.0-beta.1
│ └─┬ @copilotkitnext/runtime 0.0.22
│ └── ✕ unmet peer openai@^5.9.0: found 4.104.0
└─┬ vaul 0.9.9
├── ✕ unmet peer react@"^16.8 || ^17.0 || ^18.0": found 19.2.0
└── ✕ unmet peer react-dom@"^16.8 || ^17.0 || ^18.0": found 19.2.0
Done in 17.4s using pnpm v10.19.0
Console log warning 1
Lit is in dev mode. Not recommended for production! See https://lit.dev/msg/dev-mode for more information.
Console log error 2
http://localhost:3001/api/copilotkit
Request Method
POST
Status Code
400 Bad Request
Remote Address
[::1]:3001
Referrer Policy
strict-origin-when-cross-origin
Payload:
{"threadId":"519839dc-598c-4f4d-95b3-8ba8cc184013","runId":"eeafc16d-46c8-4ffa-be8b-d50628bd9253","tools":[{"name":"copilotkitSuggest","description":"Suggest what the user could say next","parameters":{"type":"object","properties":{"suggestions":{"type":"array","description":"List of suggestions shown to the user as buttons.","items":{"type":"object","properties":{"title":{"type":"string","description":"The title of the suggestion. This is shown as a button and should be short."},"message":{"type":"string","description":"The message to send when the suggestion is clicked. This should be a clear, complete sentence and will be sent as an instruction to the AI."}},"required":["title","message"]}}},"required":["suggestions"]}}],"context":[],"forwardedProps":{"toolChoice":{"type":"function","function":{"name":"copilotkitSuggest"}}},"state":{},"messages":[{"id":"519839dc-598c-4f4d-95b3-8ba8cc184013","role":"user","content":"Suggest what the user could say next. Provide clear, highly relevant suggestions by calling the copilotkitSuggest tool.\nProvide at least 1 and at most 3 suggestions.\nThe user has the following tools available: [].\n Suggest what the user could say next. Provide clear, highly relevant suggestions. Do not literally suggest function calls."}]}
Response:
{"error":"invalid_request","message":"Missing method field"}
Console log error 3
Agent execution failed: Error: HTTP 400: {"error":"invalid_request","message":"Missing method field"}
at http-request.ts:35:30
at doInnerSub (mergeInternals.ts:71:15)
at outerNext (mergeInternals.ts:53:58)
at OperatorSubscriber._this._next (OperatorSubscriber.ts:70:13)
at Subscriber.next (Subscriber.ts:75:12)
at innerFrom.ts:90:24
and this is the line of the file
import type React from "react"
import type { Metadata } from "next"
import { Geist, Geist_Mono } from "next/font/google"
import { Comfortaa } from "next/font/google"
import "./globals.css"
import { CopilotKit } from "@copilotkit/react-core";
import "@copilotkit/react-ui/styles.css";
const _geist = Geist({ subsets: ["latin"] })
const _geistMono = Geist_Mono({ subsets: ["latin"] })
const _comfortaa = Comfortaa({ subsets: ["latin"], variable: "--font-comfortaa" })
export const metadata: Metadata = {
title: "SecureLife Insurance",
description: "Your trusted partner in insurance protection",
generator: "v0.app",
}
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode
}>) {
return (
<html lang="en">
<body className={`${_comfortaa.variable} font-sans antialiased`}>
<CopilotKit // <===== this line
runtimeUrl="/api/copilotkit"
showDevConsole={true}
agent="default" // the name of the agent you want to use
publicLicenseKey="ck_pub_4c2a*****5493"
// threadId="497cef48-f8a9-4eb5-b4f4-be66a04675dc"
>
{children}
</CopilotKit>
</body>
</html>
)
}
Console log warning 4
Error generating suggestions: Error: HTTP 400: {"error":"invalid_request","message":"Missing method field"} ai-assistant.tsx:338
at http-request.ts:35:30
at doInnerSub (mergeInternals.ts:71:15)
at outerNext (mergeInternals.ts:53:58)
at OperatorSubscriber._this._next (OperatorSubscriber.ts:70:13)
at Subscriber.next (Subscriber.ts:75:12)
at innerFrom.ts:90:24
<CopilotPopup>
AiAssistant @ ai-assistant.tsx:338
<AiAssistant>
Home @ page.tsx:20
"use client"
Function.all @ VM57875 <anonymous>:1
Inspector not working anymore
Message reloading not working
This exact combination makes the reload of the assistant message not working, and there is no console errors or warning when you click the reload button
<CopilotPopup labels={{title: "AI Assistant"}} defaultOpen={true}/>