mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-20 02:24:59 +00:00
test: e2e /reranker endpoint (#2211)
Create a simple e2e test for the /reranker api \\ go mod tidy Signed-off-by: Dave Lee <dave@gray101.com>
This commit is contained in:
parent
3b7a78adda
commit
219078a5e0
3 changed files with 50 additions and 2 deletions
|
@ -40,7 +40,8 @@ var _ = BeforeSuite(func() {
|
|||
if apiEndpoint == "" {
|
||||
startDockerImage()
|
||||
defaultConfig = openai.DefaultConfig(apiKey)
|
||||
defaultConfig.BaseURL = "http://localhost:" + apiPort + "/v1"
|
||||
apiEndpoint = "http://localhost:" + apiPort + "/v1" // So that other tests can reference this value safely.
|
||||
defaultConfig.BaseURL = apiEndpoint
|
||||
} else {
|
||||
fmt.Println("Default ", apiEndpoint)
|
||||
defaultConfig = openai.DefaultConfig(apiKey)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue