MCPcopy
hub / github.com/zai-org/ChatGLM3 / ChatCompletionResponse

Class ChatCompletionResponse

openai_api_demo/api_server.py:163–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161
162
163class ChatCompletionResponse(BaseModel):
164 model: str
165 id: str
166 object: Literal["chat.completion", "chat.completion.chunk"]
167 choices: List[Union[ChatCompletionResponseChoice, ChatCompletionResponseStreamChoice]]
168 created: Optional[int] = Field(default_factory=lambda: int(time.time()))
169 usage: Optional[UsageInfo] = None
170
171
172@app.get("/health")

Callers 4

create_chat_completionFunction · 0.70
predictFunction · 0.70
predict_streamFunction · 0.70
parse_output_textFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected