@demicodes/provider-openai-api 0.11.0 → 0.13.0

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/README.md +9 -4
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -1,11 +1,16 @@
1
1
  # @demicodes/provider-openai-api
2
2
 
3
- A Demi provider for the OpenAI API (Responses and Chat Completions). Exposes
4
- `createOpenAIApiProvider()`.
3
+ A Demi provider for the OpenAI API (Responses by default; Chat Completions via
4
+ `wireApi: 'chat-completions'`). Exposes `createOpenAIApiProvider()`.
5
5
 
6
6
  ```ts
7
7
  import { createOpenAIApiProvider } from '@demicodes/provider-openai-api'
8
+
9
+ const provider = createOpenAIApiProvider()
10
+ // Compatible endpoints: { baseUrl, wireApi: 'chat-completions', envPrefix }
11
+ // DeepSeek-style thinking + tools: request.passBackReasoningContent
8
12
  ```
9
13
 
10
- Implements the [`@demicodes/provider`](../provider/README.md) contract. Part of
11
- [Demi](../../README.md). Apache-2.0.
14
+ Reads `OPENAI_API_KEY` / `OPENAI_BASE_URL` by default (`envPrefix` changes the
15
+ pair). Implements the [`@demicodes/provider`](../provider/README.md) contract.
16
+ Part of [Demi](../../README.md). Apache-2.0.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@demicodes/provider-openai-api",
3
3
  "description": "OpenAI API provider adapter for Demi.",
4
- "version": "0.11.0",
4
+ "version": "0.13.0",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "exports": {
@@ -11,9 +11,9 @@
11
11
  }
12
12
  },
13
13
  "dependencies": {
14
- "@demicodes/core": "^0.11.0",
15
- "@demicodes/provider": "^0.11.0",
16
- "@demicodes/utils": "^0.11.0"
14
+ "@demicodes/core": "^0.13.0",
15
+ "@demicodes/provider": "^0.13.0",
16
+ "@demicodes/utils": "^0.13.0"
17
17
  },
18
18
  "license": "Apache-2.0",
19
19
  "main": "./dist/index.mjs",