mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 18:36:41 +02:00
cleanup
This commit is contained in:
parent
547132e820
commit
bbbd9f20f3
9 changed files with 35 additions and 51 deletions
|
@ -44,11 +44,11 @@ type Token struct {
|
|||
func (t *Token) Type() int32 {
|
||||
switch {
|
||||
case t.Special:
|
||||
return 3
|
||||
return tokenTypeControl
|
||||
case t.UserDefined:
|
||||
return 4
|
||||
return tokenTypeUserDefined
|
||||
default:
|
||||
return 1
|
||||
return tokenTypeNormal
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue