101 lines
1.9 KiB
Markdown
101 lines
1.9 KiB
Markdown
# AnP
|
|
|
|
Framework.
|
|
|
|
Secrets Python file:
|
|
|
|
```py
|
|
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# /Python/secrets.py
|
|
|
|
from typing import Any
|
|
|
|
secrets:dict[str, Any|None] = {
|
|
"root_paths" : ["/ABSOLUTE/PATH/AnP"]
|
|
}
|
|
|
|
```
|
|
|
|
Web Socket Server Settings:
|
|
|
|
```json
|
|
{
|
|
"default_web_sockets_servers" : {
|
|
"anp" : {
|
|
"type" : "WebSocketServerDriver",
|
|
"host" : "",
|
|
"port" : 18765
|
|
}
|
|
}
|
|
}
|
|
```
|
|
|
|
HTTP Settings:
|
|
|
|
```json
|
|
{
|
|
"default_http_servers" : {
|
|
"anp" : {
|
|
"type" : "HTTPServerDriver",
|
|
"type2" : "HTTPSocketServerDriver",
|
|
"host" : "",
|
|
"port" : 18000
|
|
}
|
|
}
|
|
}
|
|
```
|
|
|
|
AI Interpreters Settings:
|
|
|
|
```json
|
|
{
|
|
"default_ai_interpreters" : {
|
|
"anp_titles" : {
|
|
"type" : "OllamaDriver",
|
|
"url" : "http://localhost:11434/api/generate/",
|
|
"model" : "gemma3:1b",
|
|
"pool" : "anp",
|
|
"format" : {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "boolean"
|
|
}
|
|
},
|
|
"stream" : false,
|
|
"think" : false,
|
|
"temperature" : 0.0,
|
|
"allow_contexts" : true
|
|
},
|
|
"anp_responses" : {
|
|
"type" : "OllamaDriver",
|
|
"url" : "http://localhost:11434/api/generate/",
|
|
"model" : "gemma4:e4b",
|
|
"stream" : true,
|
|
"pool" : "anp",
|
|
"think" : false,
|
|
"temperature" : 0.7,
|
|
"allow_contexts" : true
|
|
}
|
|
}
|
|
}
|
|
```
|
|
|
|
Directory Cloner Settings:
|
|
|
|
```json
|
|
{
|
|
"default_directories_clones_files" : {
|
|
"anp" : {
|
|
"from" : "/ABSOLUTE/PATH/AnP/Python/AnP",
|
|
"to" : "AnP",
|
|
"exclude" : ["__pycache__", "deleted", "secret", ".pyc"],
|
|
"time_refresh" : 5,
|
|
"module" : "python",
|
|
"autorun" : true,
|
|
"print_changes" : true
|
|
}
|
|
}
|
|
}
|
|
``` |