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
ec14f6ce
"server/text_generation_server/adapters/__init__.py" did not exist on "a2a97b05d6c59bb95e54124a68c69b17851d3480"
Unverified
Commit
ec14f6ce
authored
May 11, 2024
by
Michael Yang
Committed by
GitHub
May 11, 2024
Browse files
case sensitive filepaths (#4366)
parent
c60a0866
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
types/model/name.go
types/model/name.go
+3
-5
types/model/name_test.go
types/model/name_test.go
+2
-2
No files found.
types/model/name.go
View file @
ec14f6ce
...
...
@@ -291,11 +291,9 @@ func (n Name) Filepath() string {
panic
(
"illegal attempt to get filepath of invalid name"
)
}
return
filepath
.
Join
(
strings
.
ToLower
(
filepath
.
Join
(
n
.
Host
,
n
.
Namespace
,
n
.
Model
,
)),
n
.
Tag
,
)
}
...
...
types/model/name_test.go
View file @
ec14f6ce
...
...
@@ -276,9 +276,9 @@ func TestFilepathAllocs(t *testing.T) {
allocs
:=
testing
.
AllocsPerRun
(
1000
,
func
()
{
n
.
Filepath
()
})
var
allowedAllocs
float64
=
3
var
allowedAllocs
float64
=
1
if
runtime
.
GOOS
==
"windows"
{
allowedAllocs
=
5
allowedAllocs
=
3
}
if
allocs
>
allowedAllocs
{
t
.
Errorf
(
"allocs = %v; allowed %v"
,
allocs
,
allowedAllocs
)
...
...
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