@Description BasicModelRequest contains the basic model request fields
| 7 | |
| 8 | // @Description BasicModelRequest contains the basic model request fields |
| 9 | type BasicModelRequest struct { |
| 10 | Model string `json:"model,omitempty" yaml:"model,omitempty"` |
| 11 | // TODO: Should this also include the following fields from the OpenAI side of the world? |
| 12 | // If so, changes should be made to core/http/middleware/request.go to match |
| 13 | |
| 14 | // Context context.Context `json:"-"` |
| 15 | // Cancel context.CancelFunc `json:"-"` |
| 16 | } |
| 17 | |
| 18 | func (bmr *BasicModelRequest) ModelName(s *string) string { |
| 19 | if s != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected