@elizaos/plugin-openai 1.0.0-beta.4 → 1.0.0-beta.41
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/LICENSE +1 -1
- package/README.md +8 -2
- package/dist/index.js +1211 -228
- package/dist/index.js.map +1 -1
- package/package.json +8 -7
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2025 Shaw Walters
|
|
3
|
+
Copyright (c) 2025 Shaw Walters and elizaOS Contributors
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -19,7 +19,9 @@ The plugin requires these environment variables (can be set in .env file or char
|
|
|
19
19
|
"OPENAI_API_KEY": "your_openai_api_key",
|
|
20
20
|
"OPENAI_BASE_URL": "optional_custom_endpoint",
|
|
21
21
|
"OPENAI_SMALL_MODEL": "gpt-4o-mini",
|
|
22
|
-
"OPENAI_LARGE_MODEL": "gpt-4o"
|
|
22
|
+
"OPENAI_LARGE_MODEL": "gpt-4o",
|
|
23
|
+
"OPENAI_EMBEDDING_MODEL": "text-embedding-3-small",
|
|
24
|
+
"OPENAI_EMBEDDING_DIMENSIONS": "1536"
|
|
23
25
|
}
|
|
24
26
|
```
|
|
25
27
|
|
|
@@ -31,6 +33,8 @@ OPENAI_API_KEY=your_openai_api_key
|
|
|
31
33
|
OPENAI_BASE_URL=optional_custom_endpoint
|
|
32
34
|
OPENAI_SMALL_MODEL=gpt-4o-mini
|
|
33
35
|
OPENAI_LARGE_MODEL=gpt-4o
|
|
36
|
+
OPENAI_EMBEDDING_MODEL=text-embedding-3-small
|
|
37
|
+
OPENAI_EMBEDDING_DIMENSIONS=1536
|
|
34
38
|
```
|
|
35
39
|
|
|
36
40
|
### Configuration Options
|
|
@@ -39,12 +43,14 @@ OPENAI_LARGE_MODEL=gpt-4o
|
|
|
39
43
|
- `OPENAI_BASE_URL`: Custom API endpoint (default: https://api.openai.com/v1)
|
|
40
44
|
- `OPENAI_SMALL_MODEL`: Defaults to GPT-4o Mini ("gpt-4o-mini")
|
|
41
45
|
- `OPENAI_LARGE_MODEL`: Defaults to GPT-4o ("gpt-4o")
|
|
46
|
+
- `OPENAI_EMBEDDING_MODEL`: Defaults to text-embedding-3-small ("text-embedding-3-small")
|
|
47
|
+
- `OPENAI_EMBEDDING_DIMENSIONS`: Defaults to 1536 (1536)
|
|
42
48
|
|
|
43
49
|
The plugin provides these model classes:
|
|
44
50
|
|
|
45
51
|
- `TEXT_SMALL`: Optimized for fast, cost-effective responses
|
|
46
52
|
- `TEXT_LARGE`: For complex tasks requiring deeper reasoning
|
|
47
|
-
- `TEXT_EMBEDDING`: Text embedding model (text-embedding-3-small)
|
|
53
|
+
- `TEXT_EMBEDDING`: Text embedding model (text-embedding-3-small by default)
|
|
48
54
|
- `IMAGE`: DALL-E image generation
|
|
49
55
|
- `IMAGE_DESCRIPTION`: GPT-4o image analysis
|
|
50
56
|
- `TRANSCRIPTION`: Whisper audio transcription
|