MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / Int

Method Int

module/ai-api/dto/output.go:18–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16}
17
18func (m ModelType) Int() int {
19 switch m {
20 case ModelTypeOnline:
21 return 0
22 case ModelTypeLocal:
23 return 1
24 default:
25 return -1
26 }
27}
28
29func FromModelType(m int) ModelType {
30 switch m {

Callers 2

CreateMethod · 0.45
EditMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected