MCPcopy Create free account
hub / github.com/LumaAI-API/Luma-API / GeneralOpenAIRequest

Struct GeneralOpenAIRequest

common/openai_tools.go:12–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10)
11
12type GeneralOpenAIRequest struct {
13 Model string `json:"model,omitempty"`
14 Messages []Message `json:"messages,omitempty"`
15 Stream bool `json:"stream,omitempty"`
16 MaxTokens uint `json:"max_tokens,omitempty"`
17 Temperature float64 `json:"temperature,omitempty"`
18 TopP float64 `json:"top_p,omitempty"`
19 TopK int `json:"top_k,omitempty"`
20 FunctionCall interface{} `json:"function_call,omitempty"`
21 FrequencyPenalty float64 `json:"frequency_penalty,omitempty"`
22 PresencePenalty float64 `json:"presence_penalty,omitempty"`
23 ToolChoice string `json:"tool_choice,omitempty"`
24 Tools []Tool `json:"tools,omitempty"`
25}
26
27type Message struct {
28 Role string `json:"role"`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected