mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-05 20:41:30 +08:00
docs(types): 添加prompt类型的注释
This commit is contained in:
parent
b8cefb8e85
commit
10301a1f79
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user