From 10301a1f795c4ec7cbc25a885de172ab51832de6 Mon Sep 17 00:00:00 2001 From: icarus Date: Thu, 4 Sep 2025 13:02:58 +0800 Subject: [PATCH] =?UTF-8?q?docs(types):=20=E6=B7=BB=E5=8A=A0prompt?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E7=9A=84=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/types/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/types/index.ts b/src/renderer/src/types/index.ts index e8a60c412d..a9755c2686 100644 --- a/src/renderer/src/types/index.ts +++ b/src/renderer/src/types/index.ts @@ -1317,7 +1317,8 @@ type MessagesParams = BaseParams & { type PromptParams = BaseParams & { messages?: never - // prompt: StreamTextParams['prompt'] + // prompt: Just use string for convinience. Native prompt type unite more types, including messages type. + // we craete a non-intersecting prompt type to discriminate them. // see https://github.com/vercel/ai/issues/8363 prompt: string }