mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-25 19:15:18 +02:00
chore: linting
This commit is contained in:
parent
a27cd2b966
commit
4f5c1cf070
3 changed files with 34 additions and 12 deletions
|
|
@ -241,7 +241,6 @@ const OnboardPage = () => {
|
||||||
colorScheme="emerald"
|
colorScheme="emerald"
|
||||||
delay={0.7}
|
delay={0.7}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</motion.div>
|
</motion.div>
|
||||||
|
|
||||||
{/* Advanced Settings */}
|
{/* Advanced Settings */}
|
||||||
|
|
|
||||||
|
|
@ -521,14 +521,19 @@ export function SetupLLMStep({
|
||||||
<Input
|
<Input
|
||||||
id="api_key"
|
id="api_key"
|
||||||
type="password"
|
type="password"
|
||||||
placeholder={formData.provider === "OLLAMA" ? "Any value (e.g., ollama)" : t("api_key_placeholder")}
|
placeholder={
|
||||||
|
formData.provider === "OLLAMA"
|
||||||
|
? "Any value (e.g., ollama)"
|
||||||
|
: t("api_key_placeholder")
|
||||||
|
}
|
||||||
value={formData.api_key}
|
value={formData.api_key}
|
||||||
onChange={(e) => handleInputChange("api_key", e.target.value)}
|
onChange={(e) => handleInputChange("api_key", e.target.value)}
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
{formData.provider === "OLLAMA" && (
|
{formData.provider === "OLLAMA" && (
|
||||||
<p className="text-xs text-muted-foreground">
|
<p className="text-xs text-muted-foreground">
|
||||||
💡 Ollama doesn't require authentication — enter any value (e.g., "ollama")
|
💡 Ollama doesn't require authentication — enter any value (e.g.,
|
||||||
|
"ollama")
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -544,22 +549,32 @@ export function SetupLLMStep({
|
||||||
{/* Ollama-specific help */}
|
{/* Ollama-specific help */}
|
||||||
{formData.provider === "OLLAMA" && (
|
{formData.provider === "OLLAMA" && (
|
||||||
<div className="mt-2 p-3 bg-muted/50 rounded-lg border border-muted">
|
<div className="mt-2 p-3 bg-muted/50 rounded-lg border border-muted">
|
||||||
<p className="text-xs font-medium mb-2">💡 Ollama API Base URL Examples:</p>
|
<p className="text-xs font-medium mb-2">
|
||||||
|
💡 Ollama API Base URL Examples:
|
||||||
|
</p>
|
||||||
<div className="space-y-1.5">
|
<div className="space-y-1.5">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="flex items-center gap-2 text-xs text-muted-foreground hover:text-foreground transition-colors"
|
className="flex items-center gap-2 text-xs text-muted-foreground hover:text-foreground transition-colors"
|
||||||
onClick={() => handleInputChange("api_base", "http://localhost:11434")}
|
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>
|
<span>— Standard local installation</span>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="flex items-center gap-2 text-xs text-muted-foreground hover:text-foreground transition-colors"
|
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>
|
<span>— If using SurfSense Docker image</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -677,7 +677,9 @@ export function ModelConfigManager({ searchSpaceId }: ModelConfigManagerProps) {
|
||||||
<Input
|
<Input
|
||||||
id="api_key"
|
id="api_key"
|
||||||
type="password"
|
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}
|
value={formData.api_key}
|
||||||
onChange={(e) => handleInputChange("api_key", e.target.value)}
|
onChange={(e) => handleInputChange("api_key", e.target.value)}
|
||||||
required
|
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"
|
className="flex items-center gap-2 text-xs text-muted-foreground hover:text-foreground transition-colors"
|
||||||
onClick={() => handleInputChange("api_base", "http://localhost:11434")}
|
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>
|
<span>— Standard local installation</span>
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="flex items-center gap-2 text-xs text-muted-foreground hover:text-foreground transition-colors"
|
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>
|
<span>— If using SurfSense Docker image</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue