@ghostspeak/plugin-gateway-ghost 0.1.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.
- package/README.md +94 -0
- package/dist/index.js +11433 -0
- package/dist/index.js.map +116 -0
- package/dist/src/config.d.ts +56 -0
- package/dist/src/config.d.ts.map +1 -0
- package/dist/src/gateway.d.ts +34 -0
- package/dist/src/gateway.d.ts.map +1 -0
- package/dist/src/handlers/image-description.d.ts +15 -0
- package/dist/src/handlers/image-description.d.ts.map +1 -0
- package/dist/src/handlers/image-generation.d.ts +15 -0
- package/dist/src/handlers/image-generation.d.ts.map +1 -0
- package/dist/src/handlers/index.d.ts +12 -0
- package/dist/src/handlers/index.d.ts.map +1 -0
- package/dist/src/handlers/object-generation.d.ts +20 -0
- package/dist/src/handlers/object-generation.d.ts.map +1 -0
- package/dist/src/handlers/text-embedding.d.ts +12 -0
- package/dist/src/handlers/text-embedding.d.ts.map +1 -0
- package/dist/src/handlers/text-generation.d.ts +34 -0
- package/dist/src/handlers/text-generation.d.ts.map +1 -0
- package/dist/src/handlers/text-to-speech.d.ts +12 -0
- package/dist/src/handlers/text-to-speech.d.ts.map +1 -0
- package/dist/src/handlers/tokenizer.d.ts +16 -0
- package/dist/src/handlers/tokenizer.d.ts.map +1 -0
- package/dist/src/handlers/transcription.d.ts +12 -0
- package/dist/src/handlers/transcription.d.ts.map +1 -0
- package/dist/src/index.d.ts +22 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/plugin.d.ts +19 -0
- package/dist/src/plugin.d.ts.map +1 -0
- package/dist/src/utils/error-handler.d.ts +25 -0
- package/dist/src/utils/error-handler.d.ts.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +132 -0
package/package.json
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ghostspeak/plugin-gateway-ghost",
|
|
3
|
+
"description": "Unified Vercel AI Gateway plugin for ElizaOS - one API key for all model types",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"module": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"packageType": "plugin",
|
|
10
|
+
"platform": "node",
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"author": "Ghostspeak",
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "https://github.com/Ghostspeak/plugin-gateway-ghost.git"
|
|
16
|
+
},
|
|
17
|
+
"homepage": "https://github.com/Ghostspeak/plugin-gateway-ghost#readme",
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/Ghostspeak/plugin-gateway-ghost/issues"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"elizaos",
|
|
23
|
+
"plugin",
|
|
24
|
+
"vercel",
|
|
25
|
+
"ai-gateway",
|
|
26
|
+
"llm",
|
|
27
|
+
"embeddings",
|
|
28
|
+
"image-generation",
|
|
29
|
+
"text-to-speech",
|
|
30
|
+
"transcription",
|
|
31
|
+
"claude",
|
|
32
|
+
"gpt",
|
|
33
|
+
"flux"
|
|
34
|
+
],
|
|
35
|
+
"exports": {
|
|
36
|
+
"./package.json": "./package.json",
|
|
37
|
+
".": {
|
|
38
|
+
"import": {
|
|
39
|
+
"types": "./dist/index.d.ts",
|
|
40
|
+
"default": "./dist/index.js"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"files": [
|
|
45
|
+
"dist",
|
|
46
|
+
"README.md",
|
|
47
|
+
"package.json"
|
|
48
|
+
],
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@elizaos/core": "1.7.0",
|
|
51
|
+
"@ai-sdk/openai-compatible": "^0.2.14",
|
|
52
|
+
"ai": "^4.3.16",
|
|
53
|
+
"js-tiktoken": "^1.0.18",
|
|
54
|
+
"zod": "^3.24.2"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@elizaos/cli": "^1.7.0",
|
|
58
|
+
"typescript": "^5.9.3"
|
|
59
|
+
},
|
|
60
|
+
"scripts": {
|
|
61
|
+
"build": "bun run build.ts",
|
|
62
|
+
"dev": "bun run build.ts --watch",
|
|
63
|
+
"test": "bun test"
|
|
64
|
+
},
|
|
65
|
+
"publishConfig": {
|
|
66
|
+
"access": "public"
|
|
67
|
+
},
|
|
68
|
+
"agentConfig": {
|
|
69
|
+
"pluginType": "elizaos:plugin:1.0.0",
|
|
70
|
+
"pluginParameters": {
|
|
71
|
+
"AI_GATEWAY_API_KEY": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"description": "Vercel AI Gateway API key (required)",
|
|
74
|
+
"required": true
|
|
75
|
+
},
|
|
76
|
+
"AI_GATEWAY_BASE_URL": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"description": "Gateway endpoint URL. Default: https://ai-gateway.vercel.sh/v1",
|
|
79
|
+
"required": false,
|
|
80
|
+
"default": "https://ai-gateway.vercel.sh/v1"
|
|
81
|
+
},
|
|
82
|
+
"AI_GATEWAY_TEXT_SMALL_MODEL": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"description": "Small text model. Default: anthropic/claude-haiku-4.5",
|
|
85
|
+
"required": false,
|
|
86
|
+
"default": "anthropic/claude-haiku-4.5"
|
|
87
|
+
},
|
|
88
|
+
"AI_GATEWAY_TEXT_LARGE_MODEL": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"description": "Large text model. Default: anthropic/claude-opus-4.5",
|
|
91
|
+
"required": false,
|
|
92
|
+
"default": "anthropic/claude-opus-4.5"
|
|
93
|
+
},
|
|
94
|
+
"AI_GATEWAY_EMBEDDING_MODEL": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"description": "Embedding model. Default: openai/text-embedding-3-large",
|
|
97
|
+
"required": false,
|
|
98
|
+
"default": "openai/text-embedding-3-large"
|
|
99
|
+
},
|
|
100
|
+
"AI_GATEWAY_IMAGE_MODEL": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"description": "Image generation model. Default: bfl/flux-2-pro",
|
|
103
|
+
"required": false,
|
|
104
|
+
"default": "bfl/flux-2-pro"
|
|
105
|
+
},
|
|
106
|
+
"AI_GATEWAY_VISION_MODEL": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"description": "Vision/multimodal model. Default: xai/grok-2-vision",
|
|
109
|
+
"required": false,
|
|
110
|
+
"default": "xai/grok-2-vision"
|
|
111
|
+
},
|
|
112
|
+
"AI_GATEWAY_TRANSCRIPTION_MODEL": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"description": "Transcription model. Default: openai/whisper-1",
|
|
115
|
+
"required": false,
|
|
116
|
+
"default": "openai/whisper-1"
|
|
117
|
+
},
|
|
118
|
+
"AI_GATEWAY_TTS_MODEL": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"description": "Text-to-speech model. Default: openai/tts-1-hd",
|
|
121
|
+
"required": false,
|
|
122
|
+
"default": "openai/tts-1-hd"
|
|
123
|
+
},
|
|
124
|
+
"AI_GATEWAY_TTS_VOICE": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"description": "Default TTS voice. Default: alloy",
|
|
127
|
+
"required": false,
|
|
128
|
+
"default": "alloy"
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|