@quilltap/qtap-plugin-gab-ai 1.1.0 → 1.2.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/index.js +15 -0
- package/index.ts +29 -0
- package/package.json +2 -1
package/index.js
CHANGED
|
@@ -116,11 +116,26 @@ var attachmentSupport = {
|
|
|
116
116
|
description: "No attachment support (text only)",
|
|
117
117
|
notes: "Gab AI does not currently support file attachments"
|
|
118
118
|
};
|
|
119
|
+
var messageFormat = {
|
|
120
|
+
supportsNameField: true,
|
|
121
|
+
supportedRoles: ["user", "assistant"],
|
|
122
|
+
maxNameLength: 64
|
|
123
|
+
};
|
|
124
|
+
var cheapModels = {
|
|
125
|
+
defaultModel: "gab-01",
|
|
126
|
+
recommendedModels: ["gab-01"]
|
|
127
|
+
};
|
|
119
128
|
var plugin = {
|
|
120
129
|
metadata,
|
|
121
130
|
config,
|
|
122
131
|
capabilities,
|
|
123
132
|
attachmentSupport,
|
|
133
|
+
// Registry-based configuration properties
|
|
134
|
+
messageFormat,
|
|
135
|
+
charsPerToken: 3.5,
|
|
136
|
+
toolFormat: "openai",
|
|
137
|
+
cheapModels,
|
|
138
|
+
defaultContextWindow: 128e3,
|
|
124
139
|
/**
|
|
125
140
|
* Factory method to create a Gab AI LLM provider instance
|
|
126
141
|
*/
|
package/index.ts
CHANGED
|
@@ -67,6 +67,24 @@ const attachmentSupport = {
|
|
|
67
67
|
notes: 'Gab AI does not currently support file attachments',
|
|
68
68
|
};
|
|
69
69
|
|
|
70
|
+
/**
|
|
71
|
+
* Message format support for multi-character chats
|
|
72
|
+
* Gab AI uses OpenAI-compatible format which supports the name field
|
|
73
|
+
*/
|
|
74
|
+
const messageFormat = {
|
|
75
|
+
supportsNameField: true,
|
|
76
|
+
supportedRoles: ['user', 'assistant'] as ('user' | 'assistant')[],
|
|
77
|
+
maxNameLength: 64,
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Cheap model configuration for background tasks
|
|
82
|
+
*/
|
|
83
|
+
const cheapModels = {
|
|
84
|
+
defaultModel: 'gab-01',
|
|
85
|
+
recommendedModels: ['gab-01'],
|
|
86
|
+
};
|
|
87
|
+
|
|
70
88
|
/**
|
|
71
89
|
* The Gab AI Provider Plugin
|
|
72
90
|
* Implements the LLMProviderPlugin interface for Quilltap
|
|
@@ -83,6 +101,17 @@ export const plugin: LLMProviderPlugin = {
|
|
|
83
101
|
|
|
84
102
|
attachmentSupport,
|
|
85
103
|
|
|
104
|
+
// Registry-based configuration properties
|
|
105
|
+
messageFormat,
|
|
106
|
+
|
|
107
|
+
charsPerToken: 3.5,
|
|
108
|
+
|
|
109
|
+
toolFormat: 'openai',
|
|
110
|
+
|
|
111
|
+
cheapModels,
|
|
112
|
+
|
|
113
|
+
defaultContextWindow: 128000,
|
|
114
|
+
|
|
86
115
|
/**
|
|
87
116
|
* Factory method to create a Gab AI LLM provider instance
|
|
88
117
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quilltap/qtap-plugin-gab-ai",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Gab AI provider plugin for Quilltap",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"clean": "rm -f index.js"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
+
"@quilltap/plugin-types": "^1.0.3",
|
|
14
15
|
"@quilltap/plugin-utils": "^1.1.0"
|
|
15
16
|
},
|
|
16
17
|
"devDependencies": {
|