Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 0d5c546

Browse files
committed
update openai-node
1 parent 03e7a46 commit 0d5c546

File tree

2 files changed

+19
-12
lines changed

2 files changed

+19
-12
lines changed

docs/docs/examples/openai-node.md

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -241,17 +241,23 @@ embedding();
241241
</table>
242242

243243
## Audio
244-
Coming soon
244+
245+
:::info Coming soon
246+
:::
245247

246248
## How to reproduce
247-
1. Step 1: Dependencies installation
248-
```
249+
250+
**Step 1:** Dependencies installation
251+
252+
```bash
249253
npm install --save openai typescript
250254
# or
251255
yarn add openai
252256
```
253-
2. Step 2: Fill `tsconfig.json`
254-
```json
257+
258+
**Step 2:** Fill `tsconfig.json`
259+
260+
```js
255261
{
256262
"compilerOptions": {
257263
"moduleResolution": "node",
@@ -264,7 +270,9 @@ yarn add openai
264270
"lib": ["es2015"]
265271
}
266272
```
267-
3. Step 3: Fill `index.ts` file with code
268-
3. Step 4: Build with `npx tsc`
269-
4. Step 5: Run the code with `node dist/index.js`
270-
5. Step 6: Enjoy!
273+
274+
**Step 3:** Fill `index.ts` file with code.
275+
276+
**Step 4:** Build with `npx tsc`.
277+
278+
**Step 5:** Run the code with `node dist/index.js`.

docs/docs/examples/openai-python.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ print(embeddings)
181181

182182
:::info Coming soon
183183
:::
184+
184185
## How to reproduce
185186
**Step 1:** Dependencies installation.
186187

@@ -190,6 +191,4 @@ pip install openai
190191

191192
**Step 2:** Fill `index.py` file with code.
192193

193-
**Step 3:** Run the code with `python index.py`.
194-
195-
**Step 4:** Enjoy!
194+
**Step 3:** Run the code with `python index.py`.

0 commit comments

Comments
 (0)