We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec8d6df commit c929ea7Copy full SHA for c929ea7
openai_test.go
@@ -31,7 +31,7 @@ func setupAzureTestServer() (client *openai.Client, server *test.ServerTest, tea
31
// This function approximates based on the rule of thumb stated by OpenAI:
32
// https://beta.openai.com/tokenizer
33
//
34
-// TODO: implement an actual tokenizer for GPT-3 and Codex (once available)
+// TODO: implement an actual tokenizer for GPT-3 and Codex (once available).
35
func numTokens(s string) int {
36
return int(float32(len(s)) / 4)
37
}
0 commit comments