refactor(providers): clean up config structure and update PackyCode domain
- Remove redundant 'config' field from Claude default configuration * Align with SSOT architecture where Claude only requires 'env' field * Matches the actual structure used in settings.json - Update PackyCode provider configuration * Migrate domain: packycode.com → packyapi.com * Update API endpoints to new domain structure * Update load balancer endpoint: api-slb.packycode.com → api-slb.packyapi.com
This commit is contained in:
@@ -36,7 +36,7 @@ import {
|
|||||||
useCodexTomlValidation,
|
useCodexTomlValidation,
|
||||||
} from "./hooks";
|
} from "./hooks";
|
||||||
|
|
||||||
const CLAUDE_DEFAULT_CONFIG = JSON.stringify({ env: {}, config: {} }, null, 2);
|
const CLAUDE_DEFAULT_CONFIG = JSON.stringify({ env: {} }, null, 2);
|
||||||
const CODEX_DEFAULT_CONFIG = JSON.stringify({ auth: {}, config: "" }, null, 2);
|
const CODEX_DEFAULT_CONFIG = JSON.stringify({ auth: {}, config: "" }, null, 2);
|
||||||
|
|
||||||
type PresetEntry = {
|
type PresetEntry = {
|
||||||
|
|||||||
@@ -166,18 +166,18 @@ export const providerPresets: ProviderPreset[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "PackyCode",
|
name: "PackyCode",
|
||||||
websiteUrl: "https://www.packycode.com",
|
websiteUrl: "https://www.packyapi.com",
|
||||||
apiKeyUrl: "https://www.packycode.com/",
|
apiKeyUrl: "https://www.packyapi.com",
|
||||||
settingsConfig: {
|
settingsConfig: {
|
||||||
env: {
|
env: {
|
||||||
ANTHROPIC_BASE_URL: "https://api.packycode.com",
|
ANTHROPIC_BASE_URL: "https://www.packyapi.com",
|
||||||
ANTHROPIC_AUTH_TOKEN: "",
|
ANTHROPIC_AUTH_TOKEN: "",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
// 请求地址候选(用于地址管理/测速)
|
// 请求地址候选(用于地址管理/测速)
|
||||||
endpointCandidates: [
|
endpointCandidates: [
|
||||||
"https://api.packycode.com",
|
"https://www.packyapi.com",
|
||||||
"https://api-slb.packycode.com",
|
"https://api-slb.packyapi.com",
|
||||||
],
|
],
|
||||||
category: "third_party",
|
category: "third_party",
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user