Merge pull request #70 from LD-Reborn/61-add-a-model-allow-denylist
Added missing configuration file changes
This commit is contained in:
@@ -5,46 +5,23 @@
|
|||||||
"Microsoft.AspNetCore": "Warning"
|
"Microsoft.AspNetCore": "Warning"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Embeddingsearch": {
|
"Indexer": {
|
||||||
"BaseUri": "http://localhost:5146"
|
"Workers": [
|
||||||
},
|
|
||||||
"EmbeddingsearchIndexer": {
|
|
||||||
"Worker":
|
|
||||||
[
|
|
||||||
{
|
{
|
||||||
"Name": "pythonExample",
|
"Name": "pythonExample",
|
||||||
"Script": "Scripts/example.py",
|
"Script": "Scripts/example.py",
|
||||||
"Calls": [
|
|
||||||
{
|
|
||||||
"Name": "intervalCall",
|
|
||||||
"Type": "interval",
|
|
||||||
"Interval": 30000
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name": "csharpExample",
|
|
||||||
"Script": "Scripts/example.csx",
|
|
||||||
"Calls": [
|
"Calls": [
|
||||||
{
|
{
|
||||||
"Name": "runonceCall",
|
"Name": "runonceCall",
|
||||||
"Type": "runonce"
|
"Type": "runonce"
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name": "scheduleCall",
|
|
||||||
"Type": "schedule",
|
|
||||||
"Schedule": "0 0/5 * * * ?"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name": "fileupdateCall",
|
|
||||||
"Type": "fileupdate",
|
|
||||||
"Path": "./Scripts/example_content",
|
|
||||||
"Events": ["Created", "Changed", "Deleted", "Renamed"],
|
|
||||||
"Filters": ["*.md", "*.txt"],
|
|
||||||
"IncludeSubdirectories": true
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"ApiKeys": ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"],
|
||||||
|
"Server": {
|
||||||
|
"BaseUri": "http://localhost:5146",
|
||||||
|
"ApiKey": "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
],
|
],
|
||||||
"LogFolder": "./logs"
|
"LogFolder": "./logs"
|
||||||
},
|
},
|
||||||
"PythonRuntime": "libpython3.12.so"
|
"PythonRuntime": "libpython3.13.so"
|
||||||
},
|
},
|
||||||
"AllowedHosts": "*"
|
"AllowedHosts": "*"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,14 +24,15 @@
|
|||||||
"AiProviders": {
|
"AiProviders": {
|
||||||
"ollama": {
|
"ollama": {
|
||||||
"handler": "ollama",
|
"handler": "ollama",
|
||||||
"baseURL": "http://192.168.0.101:11434",
|
"baseURL": "http://localhost:11434",
|
||||||
"Allowlist": ["*"],
|
"Allowlist": [".*"],
|
||||||
"Denylist": ["qwen3-coder:latest", "qwen3:0.6b", "deepseek-v3.1:671b-cloud", "qwen3-vl", "deepseek-ocr"]
|
"Denylist": ["qwen3-coder:latest", "qwen3:0.6b", "deepseek-v3.1:671b-cloud", "qwen3-vl", "deepseek-ocr"]
|
||||||
},
|
},
|
||||||
"localAI": {
|
"localAI": {
|
||||||
"handler": "openai",
|
"handler": "openai",
|
||||||
|
"baseURL": "http://localhost:8080",
|
||||||
"ApiKey": "Some API key here",
|
"ApiKey": "Some API key here",
|
||||||
"Allowlist": ["*"],
|
"Allowlist": [".*"],
|
||||||
"Denylist": ["cross-encoder", "kitten-tts", "jina-reranker-v1-tiny-en", "whisper-small", "qwen3-vl-2b-instruct"]
|
"Denylist": ["cross-encoder", "kitten-tts", "jina-reranker-v1-tiny-en", "whisper-small", "qwen3-vl-2b-instruct"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user