(input: string, isTemperature?:boolean, isTopP?:boolean )
| 63 | } |
| 64 | |
| 65 | function 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 | |
| 73 | interface ThreadGPT { |
| 74 | nodeId: string |