Skip to content

Commit 463cb50

Browse files
SL-Marclaude
andcommitted
Remove personal email and LAN IP from public code
- Replace personal email in User-Agent with project URL - Replace LAN IP in README with generic placeholder - Replace LAN IP in tests with RFC 1918 example Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f62024e commit 463cb50

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ To use a remote Ollama instance:
152152

153153
```toml
154154
[model]
155-
ollama_base_url = "http://192.168.1.100:11434"
155+
ollama_base_url = "http://your-server:11434"
156156
```
157157

158158
---

quantcoder/core/http_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def make_request_with_retry(
8989
session = create_session_with_retries(retries, backoff_factor)
9090

9191
default_headers = {
92-
"User-Agent": "QuantCoder/2.0 (mailto:smr.laignel@gmail.com)"
92+
"User-Agent": "QuantCoder/2.0 (https://github.com/SL-Mar/quantcoder)"
9393
}
9494
if headers:
9595
default_headers.update(headers)

tests/test_llm_providers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ def test_init_custom_config(self):
8989
"""Test provider with custom configuration."""
9090
provider = OllamaProvider(
9191
model="mistral",
92-
base_url="http://192.168.1.100:11434",
92+
base_url="http://10.0.0.50:11434",
9393
timeout=300
9494
)
9595
assert provider.model == "mistral"
9696
assert provider.get_model_name() == "mistral"
97-
assert provider.base_url == "http://192.168.1.100:11434"
97+
assert provider.base_url == "http://10.0.0.50:11434"
9898
assert provider.timeout == 300
9999

100100
def test_init_strips_v1_suffix(self):

0 commit comments

Comments
 (0)