fix: change profileId to nearai:default per review

This commit is contained in:
Firat Sertgoz 2026-01-26 22:01:20 +04:00
parent e26defe4b3
commit 739333487f
No known key found for this signature in database
GPG Key ID: D5001141982D0383
2 changed files with 2 additions and 2 deletions

View File

@ -566,7 +566,7 @@ export async function applyAuthChoiceApiProviders(
await setNearAiApiKey(normalizeApiKeyInput(String(key)), params.agentDir);
}
nextConfig = applyAuthProfileConfig(nextConfig, {
profileId: "near-ai:default",
profileId: "nearai:default",
provider: "near-ai",
mode: "api_key",
});

View File

@ -115,7 +115,7 @@ export async function setVeniceApiKey(key: string, agentDir?: string) {
export async function setNearAiApiKey(key: string, agentDir?: string) {
// Write to resolved agent dir so gateway finds credentials on startup.
upsertAuthProfile({
profileId: "near-ai:default",
profileId: "nearai:default",
credential: {
type: "api_key",
provider: "near-ai",