Clarify LibreChat agent, machine and workspace names
This commit is contained in:
1 parent
a09551a0cc
commit
824fb32339
3 files changed
+13
-3
No files matched your search
@@ -68,7 +68,7 @@ execute_code/stateful_code_sessions. Named attached environment
|
||||
`unraid-workspace`, Worker `unraid-worker`, Deployment owner, Default=true,
|
||||
pairing.tokenEnv=CODEAPI_BRIDGE_ADMIN_TOKEN. Schreib- und Shell-Freigabe default
|
||||
ask, erlaubte Shell-Werte ask/deny. Keine Subagents zusätzlich aktiviert.
|
||||
Agent **Unraid Workspace**, Modell qwen3-8-27b-medium, Code ausführen mit
|
||||
Agent **Athena mit Terminal**, Modell qwen3-8-27b-medium, Code ausführen mit
|
||||
persistenter Sitzung und expliziter Unraid-Umgebung in der UI gespeichert.
|
||||
|
||||
Bridge-Abnahme mit synthetischem Testprincipal (keine Benutzer-Impersonation):
|
||||
@@ -128,3 +128,13 @@ Quellen:
|
||||
[Worker-Handbuch](https://github.com/LibreChat-AI/code-interpreter/blob/v1.10.4/docs/remote-bridge/worker-runbook.md),
|
||||
[Worker-README](https://github.com/LibreChat-AI/code-interpreter/blob/v1.10.4/packages/code/README.md),
|
||||
[LibreChat Code Interpreter](https://www.librechat.ai/docs/features/code_interpreter).
|
||||
|
||||
## Verständliche Bezeichnungen (12.10.2026)
|
||||
|
||||
Agent: Athena mit Terminal. Maschine/Environment-Name: Unraid-Worker.
|
||||
Worker-Arbeitsordnername: Test-Arbeitsordner. Technische IDs unverändert
|
||||
(agent_SYrfQkHi6aaPipUYXBdCC, unraid-workspace, unraid-worker, unraid-test);
|
||||
keine neuen Agenten, keine Datenverschiebung. Anzeige-Namen in Agent-MongoDB,
|
||||
LibreChat-YAML und Worker-PostArgs/Unraid-XML angepasst. Worker und LibreChat
|
||||
für Namenwechsel ohne aktive Worker-Zuweisung kurz neu gestartet;
|
||||
Worker-Registrierung bestätigt Test-Arbeitsordner, LibreChat HTTP200.
|
||||
@@ -2,7 +2,7 @@
|
||||
require __DIR__.'/setup-functions.php';
|
||||
$root='/mnt/nvme-storage/appdata/librechat-nodes';$lc='/mnt/nvme-storage/appdata/librechat';$path='/boot/config/plugins/dockerMan/templates-user/my-LibreChat.xml';$x=simplexml_load_file($path);$s=json_decode(file_get_contents($root.'/secrets.json'),true);
|
||||
$dir=$lc.'/install-backups/workspace-enable-'.gmdate('Ymd-His');mkdir($dir,0700,true);copy($path,$dir.'/my-LibreChat.xml');chmod($dir.'/my-LibreChat.xml',0600);copy($lc.'/librechat.yaml',$dir.'/librechat.yaml');
|
||||
$yaml=file_get_contents($lc.'/librechat.yaml');if(strpos($yaml,'statefulCodeSessions:')===false){$yaml=str_replace("endpoints:\n","endpoints:\n agents:\n capabilities: [deferred_tools, execute_code, file_search, web_search, artifacts, actions, context, skills, memory, ask_user_question, tools, chain, ocr, stateful_code_sessions]\n statefulCodeSessions:\n allowedEnvironments: [user, agent-user, conversation]\n environments:\n - id: unraid-workspace\n name: Unraid Workspace\n type: attached\n owner: deployment\n workerId: unraid-worker\n baseURL: https://192.168.1.2:3144/v1\n default: true\n configSchema:\n permissions:\n fileWrite:\n allowed: [allow, ask, deny]\n default: ask\n commandExecution:\n allowed: [ask, deny]\n default: ask\n limits:\n maxCommandTimeoutMs: 120000\n",$yaml);}
|
||||
$yaml=file_get_contents($lc.'/librechat.yaml');if(strpos($yaml,'statefulCodeSessions:')===false){$yaml=str_replace("endpoints:\n","endpoints:\n agents:\n capabilities: [deferred_tools, execute_code, file_search, web_search, artifacts, actions, context, skills, memory, ask_user_question, tools, chain, ocr, stateful_code_sessions]\n statefulCodeSessions:\n allowedEnvironments: [user, agent-user, conversation]\n environments:\n - id: unraid-workspace\n name: Unraid-Worker\n type: attached\n owner: deployment\n workerId: unraid-worker\n baseURL: https://192.168.1.2:3144/v1\n default: true\n configSchema:\n permissions:\n fileWrite:\n allowed: [allow, ask, deny]\n default: ask\n commandExecution:\n allowed: [ask, deny]\n default: ask\n limits:\n maxCommandTimeoutMs: 120000\n",$yaml);}
|
||||
if(strpos($yaml,'tokenEnv: CODEAPI_BRIDGE_ADMIN_TOKEN')===false)$yaml=str_replace(' workerId: unraid-worker'," workerId: unraid-worker\n pairing:\n workerId: unraid-worker\n tokenEnv: CODEAPI_BRIDGE_ADMIN_TOKEN",$yaml);
|
||||
file_put_contents($lc.'/librechat.yaml',$yaml);
|
||||
$env=['CODEAPI_BRIDGE_ADMIN_TOKEN'=>$s['bridge'],'CODEAPI_AUTH_PROVIDER'=>'librechat-jwt','CODEAPI_JWT_ENABLED'=>'true','CODEAPI_JWT_ALGORITHM'=>'EdDSA','CODEAPI_JWT_KID'=>'librechat-nodes-20261012','CODEAPI_JWT_ISSUER'=>'librechat','CODEAPI_JWT_AUDIENCE'=>'codeapi','CODEAPI_JWT_SINGLE_TENANT_ID'=>'legacy','CODEAPI_JWT_TTL_SECONDS'=>'300','CODEAPI_JWT_PRIVATE_KEY_BASE64'=>$s['jwtPrivateBase64'],'LIBRECHAT_CODE_BASEURL_STATEFUL'=>'https://192.168.1.2:3144/v1','NODE_EXTRA_CA_CERTS'=>'/etc/librechat-code/ca.pem'];
|
||||
|
||||
@@ -11,7 +11,7 @@ if(!file_exists($identity)){
|
||||
$name='LibreChat-Unraid-Worker';[$exists]=cmd(['docker','inspect',$name]);
|
||||
$env=['NODE_EXTRA_CA_CERTS'=>'/etc/librechat-code/ca.pem','LIBRECHAT_CODE_WORKER_ID'=>'unraid-worker','LIBRECHAT_CODE_IDENTITY_FILE'=>'/home/node/.config/librechat/code/unraid-worker.json'];
|
||||
$mounts=[$root.'/tls/ca.pem:/etc/librechat-code/ca.pem:ro',$root.'/worker-state:/home/node/.config/librechat/code:rw',$root.'/workspace:/workspace:rw'];
|
||||
$args=['run','--worker-dir','/workspace','--workspace-id','unraid-test','--workspace-name','Unraid Workspace','--allow-workspace-writes','--allow-workspace-commands'];
|
||||
$args=['run','--worker-dir','/workspace','--workspace-id','unraid-test','--workspace-name','Test-Arbeitsordner','--allow-workspace-writes','--allow-workspace-commands'];
|
||||
$extra='--restart=unless-stopped --security-opt systempaths=unconfined --security-opt seccomp='.$root.'/worker-seccomp.json';
|
||||
if($exists){$a=['docker','create','--name',$name,'--network','bridge','--restart','unless-stopped','--security-opt','seccomp='.$root.'/worker-seccomp.json','--security-opt','systempaths=unconfined','-l','net.unraid.docker.managed=dockerman'];foreach($env as$k=>$v)array_push($a,'-e',$k.'='.$v);foreach($mounts as$m)array_push($a,'-v',$m);$a[]='librechat-workspace-worker:a62d69e';$a=array_merge($a,$args);checked($a);}
|
||||
checked(['docker','start',$name]);
|
||||
|
||||
Reference in new issue
Block a user