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 pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "codefa"
version = "1.2.51"
version = "1.2.52"
description = "Local proxy connecting coding agents to OpenAI-compatible AI providers"
readme = "README.md"
requires-python = ">=3.14.0"
Expand Down
7 changes: 2 additions & 5 deletions src/codefa/api/admin_static/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -1260,7 +1260,7 @@ function openProviderModal(providerId) {
});

const testBtn = byId("modalTestBtn");
testBtn.textContent = provider.kind === "local" ? "Test" : "Refresh models";
testBtn.textContent = "Test Provider";
const newTestBtn = testBtn.cloneNode(true);
testBtn.parentNode.replaceChild(newTestBtn, testBtn);
newTestBtn.addEventListener("click", () => {
Expand Down Expand Up @@ -1300,10 +1300,7 @@ async function testProviderInModal(providerId, button) {
result.models.slice(0, 3).join(", ") || "No models returned",
);
showMessage(`Success: Connected to ${providerId}. Found ${result.models.length} models.`, "ok");
setModelOptions([
...state.modelOptions,
...result.models.map((model) => `${providerId}/${model}`),
]);
await loadModels();
} else {
updateProviderCard(providerId, "offline", result.error_type, result.error_type);
showMessage(`Connection failed: ${result.error_type}`, "error");
Expand Down
6 changes: 6 additions & 0 deletions src/codefa/config/admin/provider_manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@
"Ollama API key for direct OpenAI-compatible Cloud access at ollama.com/v1."
),
},
"TOKENROUTER_API_KEY": {
"label": "TokenRouter API Key",
"description": (
"TokenRouter API key from tokenrouter.com dashboard for OpenAI-compatible gateway access."
),
},
}


Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading