ci: fix strict TS overloaded parameter matching inside useChat and payload tool bindings
Some checks failed
Monorepo Pipeline / ⚡ Prioritize Release (push) Successful in 2s
Monorepo Pipeline / 🧪 Test (push) Successful in 1m14s
Monorepo Pipeline / 🧹 Lint (push) Failing after 2m4s
Monorepo Pipeline / 🏗️ Build (push) Successful in 2m39s
Monorepo Pipeline / 🚀 Release (push) Has been skipped
Monorepo Pipeline / 🐳 Build Gatekeeper (Product) (push) Has been skipped
Monorepo Pipeline / 🐳 Build Build-Base (push) Has been skipped
Monorepo Pipeline / 🐳 Build Production Runtime (push) Has been skipped
Some checks failed
Monorepo Pipeline / ⚡ Prioritize Release (push) Successful in 2s
Monorepo Pipeline / 🧪 Test (push) Successful in 1m14s
Monorepo Pipeline / 🧹 Lint (push) Failing after 2m4s
Monorepo Pipeline / 🏗️ Build (push) Successful in 2m39s
Monorepo Pipeline / 🚀 Release (push) Has been skipped
Monorepo Pipeline / 🐳 Build Gatekeeper (Product) (push) Has been skipped
Monorepo Pipeline / 🐳 Build Build-Base (push) Has been skipped
Monorepo Pipeline / 🐳 Build Production Runtime (push) Has been skipped
This commit is contained in:
@@ -42,14 +42,13 @@ const ChatWindow: React.FC = () => {
|
||||
}
|
||||
}, [isOpen]); // Refresh context when chat is opened
|
||||
|
||||
// @ts-expect-error - AI hook version mismatch between core and react packages
|
||||
const { messages, input, handleInputChange, handleSubmit } = useChat({
|
||||
api: "/api/mcp-chat",
|
||||
initialMessages: [],
|
||||
body: {
|
||||
pageContext,
|
||||
},
|
||||
} as any);
|
||||
} as any) as any;
|
||||
|
||||
// Basic implementation to toggle chat window and submit messages
|
||||
return (
|
||||
|
||||
@@ -118,7 +118,6 @@ export const handleMcpChat = async (req: PayloadRequest) => {
|
||||
|
||||
try {
|
||||
const result = streamText({
|
||||
// @ts-expect-error - AI SDK type mismatch
|
||||
model: openrouter("google/gemini-3.0-flash"),
|
||||
messages,
|
||||
tools: activeTools,
|
||||
|
||||
Reference in New Issue
Block a user