MCPcopy Create free account
hub / github.com/aurora-develop/aurora / ToAPIRequest

Method ToAPIRequest

typings/official/request.go:559–569  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

557}
558
559func (r ImageGenerationRequest) ToAPIRequest() APIRequest {
560 model := r.Model
561 if model == "" || strings.HasPrefix(model, "dall-e") {
562 model = "gpt-image-2"
563 }
564 prompt := "Generate an image for this request. Return only the generated image, not a text description.\n\n" + r.Prompt
565 return APIRequest{
566 Model: model,
567 Messages: []APIMessage{NewTextMessage("user", prompt)},
568 }
569}
570
571type ImageEditRequest struct {
572 Prompt string `json:"prompt"`

Callers

nothing calls this directly

Calls 1

NewTextMessageFunction · 0.85

Tested by

no test coverage detected