MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / getMaxFileSize

Function getMaxFileSize

cmd/wsh/cmd/wshcmd-ai.go:59–67  ·  view source on GitHub ↗
(mimeType string)

Source from the content-addressed store, hash-verified

57}
58
59func getMaxFileSize(mimeType string) (int, string) {
60 if mimeType == "application/pdf" {
61 return 5 * 1024 * 1024, "5MB"
62 }
63 if strings.HasPrefix(mimeType, "image/") {
64 return 7 * 1024 * 1024, "7MB"
65 }
66 return 200 * 1024, "200KB"
67}
68
69func aiRun(cmd *cobra.Command, args []string) (rtnErr error) {
70 defer func() {

Callers 1

aiRunFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected