mirror of
https://github.com/RockChinQ/QChatGPT.git
synced 2024-11-16 11:42:44 +08:00
17 lines
260 B
Python
17 lines
260 B
Python
from __future__ import annotations
|
|
|
|
import typing
|
|
import pydantic
|
|
|
|
from ...provider import entities
|
|
|
|
|
|
class Prompt(pydantic.BaseModel):
|
|
"""供AI使用的Prompt"""
|
|
|
|
name: str
|
|
"""名称"""
|
|
|
|
messages: list[entities.Message]
|
|
"""消息列表"""
|