MCPcopy
hub / github.com/wavetermdev/waveterm / isLocalEndpoint

Function isLocalEndpoint

pkg/aiusechat/usechat.go:66–72  ·  view source on GitHub ↗
(endpoint string)

Source from the content-addressed store, hash-verified

64}
65
66func isLocalEndpoint(endpoint string) bool {
67 if endpoint == "" {
68 return false
69 }
70 endpointLower := strings.ToLower(endpoint)
71 return strings.Contains(endpointLower, "localhost") || strings.Contains(endpointLower, "127.0.0.1")
72}
73
74func getWaveAISettings(premium bool, builderMode bool, rtInfo waveobj.ObjRTInfo, aiModeName string) (*uctypes.AIOptsType, error) {
75 maxTokens := DefaultMaxTokens

Callers 1

RunAIChatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected