mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 16:56:22 +02:00
chore: linting
This commit is contained in:
parent
a27cd2b966
commit
4f5c1cf070
3 changed files with 34 additions and 12 deletions
|
|
@ -677,7 +677,9 @@ export function ModelConfigManager({ searchSpaceId }: ModelConfigManagerProps) {
|
|||
<Input
|
||||
id="api_key"
|
||||
type="password"
|
||||
placeholder={formData.provider === "OLLAMA" ? "Any value (e.g., ollama)" : "Your API key"}
|
||||
placeholder={
|
||||
formData.provider === "OLLAMA" ? "Any value (e.g., ollama)" : "Your API key"
|
||||
}
|
||||
value={formData.api_key}
|
||||
onChange={(e) => handleInputChange("api_key", e.target.value)}
|
||||
required
|
||||
|
|
@ -733,15 +735,21 @@ export function ModelConfigManager({ searchSpaceId }: ModelConfigManagerProps) {
|
|||
className="flex items-center gap-2 text-xs text-muted-foreground hover:text-foreground transition-colors"
|
||||
onClick={() => handleInputChange("api_base", "http://localhost:11434")}
|
||||
>
|
||||
<code className="px-1.5 py-0.5 bg-background rounded border">http://localhost:11434</code>
|
||||
<code className="px-1.5 py-0.5 bg-background rounded border">
|
||||
http://localhost:11434
|
||||
</code>
|
||||
<span>— Standard local installation</span>
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
className="flex items-center gap-2 text-xs text-muted-foreground hover:text-foreground transition-colors"
|
||||
onClick={() => handleInputChange("api_base", "http://host.docker.internal:11434")}
|
||||
onClick={() =>
|
||||
handleInputChange("api_base", "http://host.docker.internal:11434")
|
||||
}
|
||||
>
|
||||
<code className="px-1.5 py-0.5 bg-background rounded border">http://host.docker.internal:11434</code>
|
||||
<code className="px-1.5 py-0.5 bg-background rounded border">
|
||||
http://host.docker.internal:11434
|
||||
</code>
|
||||
<span>— If using SurfSense Docker image</span>
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue