MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / ToMap

Method ToMap

dto/openai_request.go:67–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65}
66
67func (r *GeneralOpenAIRequest) ToMap() map[string]any {
68 result := make(map[string]any)
69 data, _ := common.Marshal(r)
70 _ = common.Unmarshal(data, &result)
71 return result
72}
73
74type ToolCallRequest struct {
75 ID string `json:"id,omitempty"`

Callers 2

ConvertOpenAIRequestMethod · 0.80
ConvertOpenAIRequestMethod · 0.80

Calls 2

MarshalFunction · 0.92
UnmarshalFunction · 0.92

Tested by

no test coverage detected