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

Class CompletionResponse

fastchat/protocol/openai_api_protocol.py:178–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176
177
178class CompletionResponse(BaseModel):
179 id: str = Field(default_factory=lambda: f"cmpl-{shortuuid.random()}")
180 object: str = "text_completion"
181 created: int = Field(default_factory=lambda: int(time.time()))
182 model: str
183 choices: List[CompletionResponseChoice]
184 usage: UsageInfo
185
186
187class CompletionResponseStreamChoice(BaseModel):

Callers 1

create_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…