aKode fase 3: provider locali, chiavi per provider, modelli dal server, SearXNG
- Provider: rimossi openai, Bedrock e GCP integrati e ogni fallback a OpenAI;
restano ollama, lmstudio e i provider personalizzati. Senza provider, exec e
TUI mostrano come configurarlo.
- Chiave per provider: api_key = "keyring", provider_api_key_store =
auto|keyring|file (fallback su file 0600 / ACL Windows); `codex login
--provider <id> --with-api-key`, `logout --provider`; login status e doctor
mostrano dove sta la chiave senza rivelarla.
- Modelli letti da GET {base_url}/models; contesto da config, poi dal server
(/props, meta.n_ctx), poi 32768; apply_patch come tool function; niente tool
ospitati; niente piu' avviso "metadata not found".
- Unione dei soli messaggi system/developer iniziali in un unico system;
quelli successivi restano al loro posto come user (cache del server
preservata: turno N prefisso esatto del turno N+1).
- Modelli ausiliari (memorie, guardian-v2) = modello di sessione se il
preferito gpt-* non e' nel catalogo.
- Ricerca web: crate web-tools, backend SearXNG con web_search e web_fetch
(protezione SSRF); senza backend nessuno strumento web.
- Skill: rimossa openai-docs; skill-installer punta a git.difonzo.net.
- apply_patch accetta gli header @@ -a,b +c,d @@ dei diff unificati.
- Rimossi resti: request_plugin_install, AppsInstructions, --cyber-access-program,
URL updater/realtime predefiniti.
- Fix: importazione sessioni con provider vuoto.
- Istruzioni di sistema invariate. Test: cancellati solo quelli del codice
rimosso, test di sicurezza adattati; restano solo fallimenti d'ambiente.
- Prova reale su imeAI + SearXNG: risposta, modifica file, web_search,
cache riusata, connessioni solo verso .25 e .57.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
---
|
||||
source: tui/src/onboarding/gateway_tests.rs
|
||||
assertion_line: 40
|
||||
assertion_line: 38
|
||||
expression: "screen(&widget, 8)"
|
||||
---
|
||||
Choose how you want to use aKode.
|
||||
|
||||
> 1. Use an OpenAI API key
|
||||
2. Use Amazon Bedrock
|
||||
3. Use Google Cloud Vertex AI
|
||||
4. Use a custom provider or gateway
|
||||
2. Use a custom provider or gateway
|
||||
Press enter to continue
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
---
|
||||
source: tui/src/onboarding/gcp_tests.rs
|
||||
expression: terminal.backend().to_string()
|
||||
---
|
||||
✓ Google Cloud Vertex AI configured
|
||||
@@ -1,7 +0,0 @@
|
||||
---
|
||||
source: tui/src/onboarding/gcp_tests.rs
|
||||
expression: terminal.backend().to_string()
|
||||
---
|
||||
> Set up Google Cloud Vertex AI
|
||||
|
||||
Validating credentials and saving configuration…
|
||||
@@ -1,16 +0,0 @@
|
||||
---
|
||||
source: tui/src/onboarding/gcp_tests.rs
|
||||
expression: terminal.backend().to_string()
|
||||
---
|
||||
> Set up Google Cloud Vertex AI
|
||||
|
||||
Enter an absolute file path on the host running aKode, or press Enter to
|
||||
use Application Default Credentials (ADC).
|
||||
|
||||
Credential file (optional):
|
||||
|
||||
To set up ADC with the Google Cloud CLI, run
|
||||
gcloud auth application-default login
|
||||
|
||||
|
||||
enter set up · esc back
|
||||
@@ -1,16 +0,0 @@
|
||||
---
|
||||
source: tui/src/onboarding/gcp_tests.rs
|
||||
expression: terminal.backend().to_string()
|
||||
---
|
||||
> Set up Google Cloud Vertex AI
|
||||
|
||||
Press Enter to use global, or enter a Vertex AI location.
|
||||
|
||||
Location (optional): global
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
enter continue · esc back
|
||||
@@ -1,16 +0,0 @@
|
||||
---
|
||||
source: tui/src/onboarding/gcp_tests.rs
|
||||
expression: terminal.backend().to_string()
|
||||
---
|
||||
> Set up Google Cloud Vertex AI
|
||||
|
||||
Enter the Google Cloud project ID to use with Vertex AI.
|
||||
|
||||
Project ID: test-project
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
enter continue · esc back
|
||||
@@ -1,22 +0,0 @@
|
||||
---
|
||||
source: tui/src/onboarding/gcp_tests.rs
|
||||
expression: terminal.backend().to_string()
|
||||
---
|
||||
> Set up Google Cloud Vertex AI
|
||||
|
||||
Enter an absolute file path on the
|
||||
host running aKode, or press Enter to
|
||||
use Application Default Credentials
|
||||
(ADC).
|
||||
|
||||
Credential file (optional): -adc.json
|
||||
|
||||
To set up ADC with the Google Cloud
|
||||
CLI, run
|
||||
gcloud auth application-default login
|
||||
|
||||
|
||||
enter set up · esc back
|
||||
|
||||
provider credential_file must be an
|
||||
absolute path
|
||||
@@ -1,17 +0,0 @@
|
||||
---
|
||||
source: tui/src/onboarding/gcp_tests.rs
|
||||
assertion_line: 34
|
||||
expression: terminal.backend().to_string()
|
||||
---
|
||||
Choose how you want to use aKode.
|
||||
|
||||
> 1. Use an OpenAI API key
|
||||
Pay for what you use
|
||||
|
||||
2. Use Amazon Bedrock
|
||||
Connect using your AWS credentials
|
||||
|
||||
3. Use Google Cloud Vertex AI
|
||||
Connect using your Google Cloud credentials
|
||||
|
||||
Press enter to continue
|
||||
@@ -1,11 +0,0 @@
|
||||
---
|
||||
source: tui/src/onboarding/gcp_tests.rs
|
||||
assertion_line: 34
|
||||
expression: terminal.backend().to_string()
|
||||
---
|
||||
Choose how you want to use aKode.
|
||||
|
||||
1. Use an OpenAI API key
|
||||
2. Use Amazon Bedrock
|
||||
> 3. Use Google Cloud Vertex AI
|
||||
Press enter to continue
|
||||
@@ -1,11 +0,0 @@
|
||||
---
|
||||
source: tui/src/onboarding/gcp_tests.rs
|
||||
assertion_line: 34
|
||||
expression: terminal.backend().to_string()
|
||||
---
|
||||
Connect an API key to use aKode.
|
||||
|
||||
> 1. Use an OpenAI API key
|
||||
Pay for what you use
|
||||
|
||||
Press enter to continue
|
||||
@@ -1,13 +0,0 @@
|
||||
---
|
||||
source: tui/src/onboarding/bedrock_tests.rs
|
||||
expression: render_visible(&state)
|
||||
---
|
||||
Using aKode with AWS GovCloud
|
||||
|
||||
You are using aKode with AWS GovCloud. Please ensure you or your
|
||||
administrator have read the application configuration and security
|
||||
guidance before proceeding.
|
||||
|
||||
> Acknowledge
|
||||
|
||||
Press enter to continue
|
||||
@@ -1,10 +0,0 @@
|
||||
---
|
||||
source: tui/src/onboarding/bedrock_tests.rs
|
||||
expression: initial
|
||||
---
|
||||
Using aKode with AWS
|
||||
GovCloud
|
||||
|
||||
You are using aKode with
|
||||
> Acknowledge
|
||||
↑/↓ scroll · enter
|
||||
Reference in New Issue
Block a user