@openai-oauth/openai-client 2.0.0-beta.0 → 2.0.0-beta.2

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/README.md CHANGED
@@ -48,6 +48,8 @@ export async function POST(request: Request) {
48
48
  }
49
49
  ```
50
50
 
51
+ Use `@openai-oauth/react` to establish the browser credentials. See the [Sign in with ChatGPT setup](https://github.com/EvanZhouDev/openai-oauth#sign-in-with-chatgpt-setup).
52
+
51
53
  The default `apiKey` is the placeholder string `openai-oauth`. Authentication is handled by the custom `fetch` implementation.
52
54
 
53
55
  Useful options:
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,MAAM,oBAAoB,CAAA;AAE3B,MAAM,MAAM,mBAAmB,GAAG;IACjC,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,OAAO,KAAK,CAAA;IACnB,cAAc,CAAC,EAAE,WAAW,CAAA;IAC5B,uBAAuB,CAAC,EAAE,OAAO,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG;IACvC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,cAAc,CAAC,EAAE,WAAW,CAAA;IAC5B,uBAAuB,CAAC,EAAE,OAAO,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,GAAG,WAAW,CAAA;AAqBlE,eAAO,MAAM,mBAAmB,GAC/B,OAAO,iBAAiB,EACxB,UAAS,yBAA8B,KACrC,mBASF,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,MAAM,oBAAoB,CAAA;AAE3B,MAAM,MAAM,mBAAmB,GAAG;IACjC,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,OAAO,KAAK,CAAA;IACnB,cAAc,CAAC,EAAE,WAAW,CAAA;IAC5B,uBAAuB,CAAC,EAAE,OAAO,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG;IACvC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,cAAc,CAAC,EAAE,WAAW,CAAA;IAC5B,uBAAuB,CAAC,EAAE,OAAO,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,oBAAoB,GAAG,WAAW,CAAA;AAoBlE,eAAO,MAAM,mBAAmB,GAC/B,OAAO,iBAAiB,EACxB,UAAS,yBAA8B,KACrC,mBASF,CAAA"}
package/dist/index.js CHANGED
@@ -11,7 +11,6 @@ const toTransport = (input) => {
11
11
  headers: input.headers,
12
12
  instructions: input.instructions,
13
13
  openAIBaseURL: input.openAIBaseURL,
14
- storeResponses: input.storeResponses,
15
14
  });
16
15
  };
17
16
  export const createOpenAIOptions = (input, options = {}) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openai-oauth/openai-client",
3
- "version": "2.0.0-beta.0",
3
+ "version": "2.0.0-beta.2",
4
4
  "description": "OpenAI JavaScript SDK adapter for openai-oauth auth handles.",
5
5
  "keywords": [
6
6
  "openai",
@@ -29,15 +29,17 @@
29
29
  "build": "tsc -p tsconfig.build.json",
30
30
  "prepublishOnly": "bun run build",
31
31
  "typecheck": "tsc --noEmit",
32
- "test": "vitest run --passWithNoTests"
32
+ "test": "vitest run",
33
+ "test:live": "LIVE_CODEX_E2E=1 vitest run test/live.e2e.test.ts"
33
34
  },
34
35
  "publishConfig": {
35
36
  "access": "public"
36
37
  },
37
38
  "dependencies": {
38
- "@openai-oauth/core": "2.0.0-beta.0"
39
+ "@openai-oauth/core": "2.0.0-beta.2"
39
40
  },
40
41
  "devDependencies": {
42
+ "openai": "6.46.0",
41
43
  "typescript": "latest",
42
44
  "vitest": "latest"
43
45
  },