Skip to content

Commit

Permalink
add a new api for models/bert
Browse files Browse the repository at this point in the history
  • Loading branch information
sunhailin-Leo committed Jun 5, 2023
1 parent 7e05e55 commit 3dfdbbf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions models/bert/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,14 @@ func (m *ModelService) SetModelName(modelPrefix, modelName string) *ModelService
// GetModelName Get model name.
func (m *ModelService) GetModelName() string { return m.modelName }

// SetSecondaryServerURL set secondary server url【Only HTTP】
func (m *ModelService) SetSecondaryServerURL(url string) *ModelService {
if m.tritonService != nil {
m.tritonService.SetSecondaryServerURL(url)
}
return m
}

////////////////////////////////////////////////// Flag Switch API //////////////////////////////////////////////////

///////////////////////////////////////// Bert Service Pre-Process Function /////////////////////////////////////////
Expand Down

0 comments on commit 3dfdbbf

Please sign in to comment.