Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/crocodile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ github.token }}
with:
model: opencode/minimax-m2.5-free
model: opencode/deepseek-v4-flash-free
use_github_token: true
prompt: |
Review this pull request:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/opencode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
env:
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
with:
model: opencode/minimax-m2.5-free
model: opencode/deepseek-v4-flash-free
3 changes: 1 addition & 2 deletions src/components/DialogCustomProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ function validate(
if (!baseUrl.trim()) return "Base URL is required";
if (!baseUrl.startsWith("http://") && !baseUrl.startsWith("https://"))
return "Base URL must start with http:// or https://";
if (models.length === 0) return "At least one model is required";
for (const m of models) {
if (!m.id.trim()) return "All model IDs must be filled in";
if (!m.name.trim()) return "All model names must be filled in";
Expand Down Expand Up @@ -353,7 +352,7 @@ export function DialogCustomProvider({
firstPlaceholder="model-id"
secondPlaceholder="Display Name"
firstClassName="font-mono"
minEntries={1}
minEntries={0}
onAdd={addModel}
onRemove={removeModel}
onUpdate={(idx, field, value) => updateModel(idx, field === "first" ? "id" : "name", value)}
Expand Down
18 changes: 13 additions & 5 deletions src/components/DialogSelectProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ export function DialogSelectProvider({
const pop: Provider[] = [];
const oth: Provider[] = [];
for (const p of providers) {
// Skip already connected
if (connectedIds.has(p.id)) continue;
// Filter by search
if (
lowerSearch &&
Expand All @@ -69,7 +67,7 @@ export function DialogSelectProvider({
pop.sort((a, b) => (a.name || a.id).localeCompare(b.name || b.id));
oth.sort((a, b) => (a.name || a.id).localeCompare(b.name || b.id));
return { popular: pop, other: oth };
}, [providers, connectedIds, lowerSearch]);
}, [providers, lowerSearch]);

return (
<div className="space-y-3">
Expand Down Expand Up @@ -113,7 +111,12 @@ export function DialogSelectProvider({
Popular
</h4>
{popular.map((p) => (
<ProviderRow key={p.id} provider={p} connected={false} onSelect={onSelect} />
<ProviderRow
key={p.id}
provider={p}
connected={connectedIds.has(p.id)}
onSelect={onSelect}
/>
))}
</section>
)}
Expand All @@ -125,7 +128,12 @@ export function DialogSelectProvider({
Other
</h4>
{other.map((p) => (
<ProviderRow key={p.id} provider={p} connected={false} onSelect={onSelect} />
<ProviderRow
key={p.id}
provider={p}
connected={connectedIds.has(p.id)}
onSelect={onSelect}
/>
))}
</section>
)}
Expand Down
Loading
Loading