MCPcopy Create free account
hub / github.com/docker/model-test / ChatCompletionRequest

Struct ChatCompletionRequest

models/test_case.go:59–66  ·  view source on GitHub ↗

ChatCompletionRequest represents the request sent to OpenAI

Source from the content-addressed store, hash-verified

57
58// ChatCompletionRequest represents the request sent to OpenAI
59type ChatCompletionRequest struct {
60 Model string `json:"model"`
61 Messages []openai.ChatCompletionMessageParamUnion `json:"messages"`
62 Tools []openai.ChatCompletionToolParam `json:"tools"`
63 Temperature *float32 `json:"temperature,omitempty"`
64 TopP *float32 `json:"top_p,omitempty"`
65 MaxTokens *int `json:"max_tokens,omitempty"`
66}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected