MCPcopy
hub / github.com/sligter/LandPPT / ChatMessage

Class ChatMessage

src/landppt/api/models.py:12–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10# OpenAI Compatible Models
11
12class ChatMessage(BaseModel):
13 role: Literal["system", "user", "assistant"] = Field(..., description="The role of the message author")
14 content: str = Field(..., description="The content of the message")
15 name: Optional[str] = Field(None, description="The name of the author of this message")
16
17class ChatCompletionRequest(BaseModel):
18 model: str = Field(..., description="ID of the model to use")

Callers 1

create_chat_completionFunction · 0.85

Calls 1

FieldFunction · 0.85

Tested by

no test coverage detected