| 10 | ) |
| 11 | |
| 12 | type 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 | |
| 27 | type Message struct { |
| 28 | Role string `json:"role"` |
nothing calls this directly
no outgoing calls
no test coverage detected