@elizaos/plugin-openai 1.0.0-beta.41 → 1.0.0-beta.42
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 +3 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +1 -1493
- package/dist/index.js.map +1 -1
- package/package.json +6 -15
package/README.md
CHANGED
|
@@ -21,6 +21,7 @@ The plugin requires these environment variables (can be set in .env file or char
|
|
|
21
21
|
"OPENAI_SMALL_MODEL": "gpt-4o-mini",
|
|
22
22
|
"OPENAI_LARGE_MODEL": "gpt-4o",
|
|
23
23
|
"OPENAI_EMBEDDING_MODEL": "text-embedding-3-small",
|
|
24
|
+
"OPENAI_EMBEDDING_URL": "optional_custom_endpoint",
|
|
24
25
|
"OPENAI_EMBEDDING_DIMENSIONS": "1536"
|
|
25
26
|
}
|
|
26
27
|
```
|
|
@@ -34,6 +35,7 @@ OPENAI_BASE_URL=optional_custom_endpoint
|
|
|
34
35
|
OPENAI_SMALL_MODEL=gpt-4o-mini
|
|
35
36
|
OPENAI_LARGE_MODEL=gpt-4o
|
|
36
37
|
OPENAI_EMBEDDING_MODEL=text-embedding-3-small
|
|
38
|
+
OPENAI_EMBEDDING_URL=optional_custom_endpoint
|
|
37
39
|
OPENAI_EMBEDDING_DIMENSIONS=1536
|
|
38
40
|
```
|
|
39
41
|
|
|
@@ -44,6 +46,7 @@ OPENAI_EMBEDDING_DIMENSIONS=1536
|
|
|
44
46
|
- `OPENAI_SMALL_MODEL`: Defaults to GPT-4o Mini ("gpt-4o-mini")
|
|
45
47
|
- `OPENAI_LARGE_MODEL`: Defaults to GPT-4o ("gpt-4o")
|
|
46
48
|
- `OPENAI_EMBEDDING_MODEL`: Defaults to text-embedding-3-small ("text-embedding-3-small")
|
|
49
|
+
- `OPENAI_EMBEDDING_URL`: Custom embedding endpoint (defaults to `OPENAI_BASE_URL`)
|
|
47
50
|
- `OPENAI_EMBEDDING_DIMENSIONS`: Defaults to 1536 (1536)
|
|
48
51
|
|
|
49
52
|
The plugin provides these model classes:
|
package/dist/index.d.ts
ADDED