File size: 191 Bytes
1ba2d7b
 
 
 
 
1
2
3
4
5
6
// Stub implementation for OpenAI utils
export function countGPTToken(text: string): number {
  // Simple approximation: roughly 4 characters per token
  return Math.ceil(text.length / 4);
}