Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
18
func
(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
29
func
FromModelType(m int) ModelType {
30
switch
m {
Callers
2
Create
Method · 0.45
Edit
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected