openai-oauth 2.0.0-beta.2 → 2.0.0-beta.3

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
@@ -9,7 +9,18 @@ Turn your ChatGPT account into an OpenAI-compatible local API.
9
9
 
10
10
  OpenAI-compatible endpoint ready at http://127.0.0.1:10531/v1
11
11
  Use this as your OpenAI base URL. No API key is required.
12
- Available Models: gpt-5.6-sol, gpt-5.6-terra, ...
12
+ Available Models: gpt-5.6-sol, gpt-5.6-terra, gpt-image-2, ...
13
+
14
+ [d] Run in background [q] Quit
15
+ ```
16
+
17
+ Press `d` to keep it running in the background or `q` to quit. You can also manage it directly:
18
+
19
+ ```bash
20
+ npx openai-oauth --detach
21
+ npx openai-oauth status
22
+ npx openai-oauth logs --follow
23
+ npx openai-oauth stop
13
24
  ```
14
25
 
15
26
  ## Package Notes
@@ -20,8 +31,18 @@ Supported endpoints:
20
31
 
21
32
  - `/v1/responses`
22
33
  - `/v1/chat/completions`
34
+ - `/v1/images/generations`
35
+ - `/v1/images/edits`
23
36
  - `/v1/models`
24
37
 
38
+ Image generation uses JSON requests. Image editing uses the standard OpenAI multipart request with one or more `image` fields. Both return base64 image data and usage metadata.
39
+
40
+ ```bash
41
+ curl http://127.0.0.1:10531/v1/images/generations \
42
+ -H "Content-Type: application/json" \
43
+ -d '{"model":"gpt-image-2","prompt":"A tiny house in a forest","quality":"low"}'
44
+ ```
45
+
25
46
  Common flags:
26
47
 
27
48
  | Config | Flag | Default |