pi-anthropic-oauth 0.1.6 → 0.1.7

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/stream.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-anthropic-oauth",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Claude Pro/Max OAuth extension for Pi",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/stream.ts CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  type SimpleStreamOptions,
12
12
  type StopReason,
13
13
  } from "@mariozechner/pi-ai";
14
- import { USER_AGENT, isClaudeOAuthAccessToken } from "./auth.js";
14
+ import { USER_AGENT } from "./auth.js";
15
15
  import {
16
16
  convertPiMessagesToAnthropic,
17
17
  convertPiToolsToAnthropic,
@@ -98,7 +98,7 @@ export function streamAnthropicOAuth(
98
98
 
99
99
  try {
100
100
  const apiKey = options?.apiKey ?? "";
101
- const isOAuth = isClaudeOAuthAccessToken(apiKey);
101
+ const isOAuth = true;
102
102
  const defaultHeaders = makeDefaultHeaders(isOAuth, options);
103
103
 
104
104
  if (isOAuth) defaultHeaders.authorization = `Bearer ${apiKey}`;