Skip to content

Commit 2f19fef

Browse files
committed
fixups
1 parent e128cde commit 2f19fef

File tree

3 files changed

+7
-17
lines changed

3 files changed

+7
-17
lines changed

docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ services:
6363
dockerfile: Dockerfile.webui
6464
ports:
6565
- 8080:3000
66-
image: quay.io/mudler/localagi:master
66+
#image: quay.io/mudler/localagi:master
6767
environment:
6868
- LOCALAGI_MODEL=arcee-agent
6969
- LOCALAGI_LLM_API_URL=http://localai:8080

main.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/mudler/LocalAGI/webui"
1212
)
1313

14-
var testModel = os.Getenv("LOCALAGI_MODEL")
14+
var baseModel = os.Getenv("LOCALAGI_MODEL")
1515
var multimodalModel = os.Getenv("LOCALAGI_MULTIMODAL_MODEL")
1616
var apiURL = os.Getenv("LOCALAGI_LLM_API_URL")
1717
var apiKey = os.Getenv("LOCALAGI_LLM_API_KEY")
@@ -24,11 +24,11 @@ var imageModel = os.Getenv("LOCALAGI_IMAGE_MODEL")
2424
var conversationDuration = os.Getenv("LOCALAGI_CONVERSATION_DURATION")
2525

2626
func init() {
27-
if testModel == "" {
28-
testModel = "hermes-2-pro-mistral"
27+
if baseModel == "" {
28+
panic("LOCALAGI_MODEL not set")
2929
}
3030
if apiURL == "" {
31-
apiURL = "http://192.168.68.113:8080"
31+
panic("LOCALAGI_API_URL not set")
3232
}
3333
if timeout == "" {
3434
timeout = "5m"
@@ -54,7 +54,7 @@ func main() {
5454

5555
// Create the agent pool
5656
pool, err := state.NewAgentPool(
57-
testModel,
57+
baseModel,
5858
multimodalModel,
5959
imageModel,
6060
apiURL,
@@ -78,7 +78,7 @@ func main() {
7878
webui.WithApiKeys(apiKeys...),
7979
webui.WithLLMAPIUrl(apiURL),
8080
webui.WithLLMAPIKey(apiKey),
81-
webui.WithLLMModel(testModel),
81+
webui.WithLLMModel(baseModel),
8282
webui.WithStateDir(stateDir),
8383
)
8484

tests/e2e/e2e_suite_test.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,5 @@ func TestE2E(t *testing.T) {
1313
RunSpecs(t, "E2E test suite")
1414
}
1515

16-
var testModel = os.Getenv("LOCALAGI_MODEL")
1716
var apiURL = os.Getenv("LOCALAI_API_URL")
1817
var localagiURL = os.Getenv("LOCALAGI_API_URL")
19-
20-
func init() {
21-
if testModel == "" {
22-
testModel = "hermes-2-pro-mistral"
23-
}
24-
if apiURL == "" {
25-
apiURL = "http://192.168.68.113:8080"
26-
}
27-
}

0 commit comments

Comments
 (0)