ai-openai 1.0.11 → 1.0.13

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 +21 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -33,6 +33,27 @@ require("dotenv").config();
33
33
  console.error(err);
34
34
  }
35
35
  })();
36
+ ```
37
+
38
+ The default model used is openai/gpt-oss-120b
39
+
40
+ ---
41
+
42
+ ## Using a Custom Model (optional)
43
+ ```js
44
+ const reply = await chat("Explain black holes", {
45
+ model: "mistralai/Mistral-7B-Instruct-v0.2"
46
+ });
47
+
48
+ ```
49
+
50
+ ## Using a custom token (optional)
51
+ If you don't want to use a .env file:
52
+ ```js
53
+ const reply = await chat("Hello!", {
54
+ token: "hf_your_token_here"
55
+ });
56
+
36
57
  ```
37
58
  ## Installation
38
59
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-openai",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "description": "Unofficial helper for OpenAI-like models via HuggingFace",
5
5
  "main": "index.js",
6
6
  "homepage": "https://ai-openai.bolt.host/",