Skip to content

Commit 4f9f11e

Browse files
authored
Fix: Change NACOS_URL from nacos://localhost:8848 to localhost:8848 to avoid metadata report nil pointer dereference bug (#1011)
1 parent 47fbdf0 commit 4f9f11e

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

llm/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ OLLAMA_URL = http://localhost:11434
2727
# Server Configuration
2828
MODEL_NAME = llava:7b
2929
SERVER_PORT = 20020
30-
NACOS_URL = nacos://localhost:8848
30+
NACOS_URL = localhost:8848
3131
TIME_OUT_SECOND = 300
3232
MAX_CONTEXT_COUNT = 3
3333

llm/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ LLM_PROVIDER = ollama
9797
LLM_MODELS = llava:7b, qwen2.5:7b
9898
LLM_BASE_URL = http://localhost:11434
9999
MODEL_NAME = llava:7b
100-
NACOS_URL = nacos://localhost:8848
100+
NACOS_URL = localhost:8848
101101
TIME_OUT_SECOND = 300
102102
MAX_CONTEXT_COUNT = 3
103103
```
@@ -109,7 +109,7 @@ LLM_MODELS = gpt-4, gpt-3.5-turbo
109109
LLM_BASE_URL = https://api.openai.com/v1
110110
LLM_API_KEY = your-openai-api-key
111111
MODEL_NAME = gpt-4
112-
NACOS_URL = nacos://localhost:8848
112+
NACOS_URL = localhost:8848
113113
TIME_OUT_SECOND = 300
114114
MAX_CONTEXT_COUNT = 3
115115
```
@@ -121,7 +121,7 @@ LLM_MODELS = claude-3-sonnet-20240229, claude-3-haiku-20240307
121121
LLM_BASE_URL = https://api.anthropic.com/v1
122122
LLM_API_KEY = your-anthropic-api-key
123123
MODEL_NAME = claude-3-sonnet-20240229
124-
NACOS_URL = nacos://localhost:8848
124+
NACOS_URL = localhost:8848
125125
TIME_OUT_SECOND = 300
126126
MAX_CONTEXT_COUNT = 3
127127
```
@@ -133,7 +133,7 @@ LLM_MODELS = gpt-4, gpt-35-turbo
133133
LLM_BASE_URL = https://your-resource.openai.azure.com/openai/deployments/your-deployment
134134
LLM_API_KEY = your-azure-openai-api-key
135135
MODEL_NAME = gpt-4
136-
NACOS_URL = nacos://localhost:8848
136+
NACOS_URL = localhost:8848
137137
TIME_OUT_SECOND = 300
138138
MAX_CONTEXT_COUNT = 3
139139
```

llm/README_zh.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ LLM_PROVIDER = ollama
9696
LLM_MODELS = llava:7b, qwen2.5:7b
9797
LLM_BASE_URL = http://localhost:11434
9898
MODEL_NAME = llava:7b
99-
NACOS_URL = nacos://localhost:8848
99+
NACOS_URL = localhost:8848
100100
TIME_OUT_SECOND = 300
101101
MAX_CONTEXT_COUNT = 3
102102
```
@@ -108,7 +108,7 @@ LLM_MODELS = gpt-4, gpt-3.5-turbo
108108
LLM_BASE_URL = https://api.openai.com/v1
109109
LLM_API_KEY = your-openai-api-key
110110
MODEL_NAME = gpt-4
111-
NACOS_URL = nacos://localhost:8848
111+
NACOS_URL = localhost:8848
112112
TIME_OUT_SECOND = 300
113113
MAX_CONTEXT_COUNT = 3
114114
```
@@ -120,7 +120,7 @@ LLM_MODELS = claude-3-sonnet-20240229, claude-3-haiku-20240307
120120
LLM_BASE_URL = https://api.anthropic.com/v1
121121
LLM_API_KEY = your-anthropic-api-key
122122
MODEL_NAME = claude-3-sonnet-20240229
123-
NACOS_URL = nacos://localhost:8848
123+
NACOS_URL = localhost:8848
124124
TIME_OUT_SECOND = 300
125125
MAX_CONTEXT_COUNT = 3
126126
```
@@ -132,7 +132,7 @@ LLM_MODELS = gpt-4, gpt-35-turbo
132132
LLM_BASE_URL = https://your-resource.openai.azure.com/openai/deployments/your-deployment
133133
LLM_API_KEY = your-azure-openai-api-key
134134
MODEL_NAME = gpt-4
135-
NACOS_URL = nacos://localhost:8848
135+
NACOS_URL = localhost:8848
136136
TIME_OUT_SECOND = 300
137137
MAX_CONTEXT_COUNT = 3
138138
```

0 commit comments

Comments
 (0)