Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
078f666f
Commit
078f666f
authored
Oct 23, 2024
by
Jesse Gross
Committed by
Jesse Gross
Oct 28, 2024
Browse files
tests: Add test for Unicode processing
parent
de1557a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
integration/basic_test.go
integration/basic_test.go
+18
-1
No files found.
integration/basic_test.go
View file @
078f666f
...
...
@@ -30,7 +30,24 @@ func TestOrcaMiniBlueSky(t *testing.T) {
GenerateTestHelper
(
ctx
,
t
,
req
,
[]
string
{
"rayleigh"
,
"scattering"
})
}
func
TestUnicodeOutput
(
t
*
testing
.
T
)
{
func
TestUnicode
(
t
*
testing
.
T
)
{
ctx
,
cancel
:=
context
.
WithTimeout
(
context
.
Background
(),
2
*
time
.
Minute
)
defer
cancel
()
// Set up the test data
req
:=
api
.
GenerateRequest
{
// DeepSeek has a Unicode tokenizer regex, making it a unicode torture test
Model
:
"deepseek-coder-v2:16b-lite-instruct-q2_K"
,
Prompt
:
"天空为什么是蓝色的?"
,
Stream
:
&
stream
,
Options
:
map
[
string
]
interface
{}{
"temperature"
:
0
,
"seed"
:
123
,
},
}
GenerateTestHelper
(
ctx
,
t
,
req
,
[]
string
{
"散射"
,
"频率"
})
}
func
TestExtendedUnicodeOutput
(
t
*
testing
.
T
)
{
ctx
,
cancel
:=
context
.
WithTimeout
(
context
.
Background
(),
2
*
time
.
Minute
)
defer
cancel
()
// Set up the test data
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment