(value: string)
| 134 | // https://community.openai.com/t/how-to-calculate-the-tokens-when-using-function-call/266573/10 |
| 135 | function countToolsTokens(tools: Tool[], modelName: string): number { |
| 136 | const count = (value: string) => |
| 137 | encodingForModel(modelName).encode(value).length; |
| 138 | |
| 139 | let numTokens = 12; |
| 140 |
no test coverage detected