opencode-crs-bedrock 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.ts +2 -2
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -1074,8 +1074,8 @@ export const CRSAuthPlugin: Plugin = async ({ client }: PluginContext) => {
|
|
|
1074
1074
|
|
|
1075
1075
|
const auth = await getAuth();
|
|
1076
1076
|
// OpenCode stores API keys as 'key' field when type is 'api'
|
|
1077
|
-
const apiKey =
|
|
1078
|
-
const baseURL =
|
|
1077
|
+
const apiKey = auth.key as string | undefined;
|
|
1078
|
+
const baseURL = process.env.ANTHROPIC_BASE_URL || "https://crs.tonob.net/api";
|
|
1079
1079
|
|
|
1080
1080
|
debugLog("Auth details:", { hasApiKey: !!apiKey, baseURL, authKeys: Object.keys(auth) });
|
|
1081
1081
|
|