MCPcopy Create free account
hub / github.com/dtinth/ThreadGPT / convertToNumber

Function convertToNumber

src/App.tsx:65–71  ·  view source on GitHub ↗
(input: string, isTemperature?:boolean, isTopP?:boolean )

Source from the content-addressed store, hash-verified

63}
64
65function convertToNumber(input: string, isTemperature?:boolean, isTopP?:boolean ): number {
66 const number = Number(input);
67 if (isNaN(number)) {
68 throw new Error(`${input} is not a valid number`);
69 }
70 return number;
71}
72
73interface ThreadGPT {
74 nodeId: string

Callers 1

ThreadGPTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected