tiktoken-go icon indicating copy to clipboard operation
tiktoken-go copied to clipboard

go version of tiktoken

Results 15 tiktoken-go issues
Sort by recently updated
recently updated
newest added

# What's the PR for Include `o200k` and enable `gpt-4o`.

- support o200k_base encoding - fix benchmark for udhr url 404

Add the o200k_base, supporting gpt-4o.

最新的模型gpt-4o使用了新的编码器o200k_base,是否有计划支持更新?

Adding support for latest embedding models: - `text-embedding-3-small` - `text-embedding-3-large`

新增embedding模型

我的代码如下 ``` package main import ( "fmt" "log" "strings" "github.com/pkoukk/tiktoken-go" "github.com/sashabaranov/go-openai" ) func main() { ins := []openai.ChatCompletionMessage{ { Role: "user", Content: "Hello!", }, { Role: "assistant", Content: "Hello! How...

I'm not seeing where the `gpt2` model is handled similar to how it is done here: https://github.com/openai/tiktoken/blob/main/tiktoken_ext/openai_public.py#L10 A simple test like: ```patch +func TestGpt2Encoding(t *testing.T) { + if _, err...

Thanks for the project. Great so far. Is there support for counting tokens when using function calls? https://platform.openai.com/docs/guides/gpt/function-calling

Thank you for your efforts. I found that in the NewCoreBPE function, the result of the following code does not seem to be used anywhere, ``` sortedTokenBytes := make([][]byte, 0,...

enhancement