MCPcopy Create free account
hub / github.com/dabit3/react-native-ai / getFirstNCharsOrLess

Function getFirstNCharsOrLess

app/src/utils.ts:26–31  ·  view source on GitHub ↗
(text:string, numChars:number = 1000)

Source from the content-addressed store, hash-verified

24 type: string
25}) {
26 const es = new EventSource(`${DOMAIN}/chat/${type}`, {
27 headers: {
28 'Content-Type': 'application/json',
29 ...headers
30 },
31 method: 'POST',
32 body: JSON.stringify(body),
33 })
34

Callers 1

listenerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected