Let Supermarket use Hermes' Anthropic key and model
Hermes is already set up with an Anthropic key, so AI needn't be set up twice. `supermarket hermes` asks once, then it and update.sh copy just the key and model to hermes-ai.json in the data folder (0600). The app uses them when it has no key of its own, re-reading the file on each use. Generation still calls the model directly rather than through Hermes' API: post writing feeds it text from the web, which must not reach an agent with a terminal, a browser and write access to the CRM. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -10,7 +10,10 @@
|
||||
<fieldset class="choice">
|
||||
<legend>Provider</legend>
|
||||
<label class="check"><input type="radio" name="provider" value="anthropic" {{if ne $cfg.Provider "openai"}}checked{{end}} data-toggle="provider">
|
||||
Anthropic (Claude) {{if not .HasAnthropicKey}}<span class="help">— add the API key under <a href="/settings/credentials">Credentials</a></span>{{end}}</label>
|
||||
Anthropic (Claude)
|
||||
{{if .HasAnthropicKey}}<span class="help">— with the key saved under <a href="/settings/credentials">Credentials</a></span>
|
||||
{{else if .Shared}}<span class="help">— with Hermes' key, shared by <code>supermarket hermes</code> (Hermes uses {{.Shared.Model}}). A key saved under <a href="/settings/credentials">Credentials</a> would take its place.</span>
|
||||
{{else}}<span class="help">— add the API key under <a href="/settings/credentials">Credentials</a>, or share Hermes' by running <code>supermarket hermes</code></span>{{end}}</label>
|
||||
<label class="check"><input type="radio" name="provider" value="openai" {{if eq $cfg.Provider "openai"}}checked{{end}} data-toggle="provider">
|
||||
A server on your network (Ollama, LM Studio, llama.cpp, vLLM) or another OpenAI-compatible service</label>
|
||||
</fieldset>
|
||||
|
||||
Reference in New Issue
Block a user