MCPcopy
hub / github.com/lm-sys/FastChat / ChatCompletionResponse

Class ChatCompletionResponse

fastchat/protocol/openai_api_protocol.py:88–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86
87
88class ChatCompletionResponse(BaseModel):
89 id: str = Field(default_factory=lambda: f"chatcmpl-{shortuuid.random()}")
90 object: str = "chat.completion"
91 created: int = Field(default_factory=lambda: int(time.time()))
92 model: str
93 choices: List[ChatCompletionResponseChoice]
94 usage: UsageInfo
95
96
97class DeltaMessage(BaseModel):

Callers 1

create_chat_completionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…