@ever-works/groq-plugin 1.0.0 → 1.0.3

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.
@@ -0,0 +1,30 @@
1
+ import { BaseAiProvider } from '@ever-works/plugin/abstract';
2
+ import { JsonSchema, PluginContext, ChatCompletionOptions, ChatCompletionResponse, ChatCompletionChunk, EmbeddingOptions, EmbeddingResponse, PluginSettings, AiModel, AiModelCapabilities, PluginHealthCheck, PluginManifest } from '@ever-works/plugin';
3
+
4
+ /**
5
+ * Groq AI provider plugin
6
+ *
7
+ * Provides AI capabilities through Groq's ultra-fast inference API.
8
+ * Uses 'user-required' configuration mode - users MUST provide their own API key.
9
+ */
10
+ declare class GroqPlugin extends BaseAiProvider {
11
+ readonly id = "groq";
12
+ readonly name = "Groq";
13
+ readonly version = "1.0.0";
14
+ readonly providerType = "groq";
15
+ readonly providerName = "Groq";
16
+ readonly configurationMode: 'admin-only' | 'user-required' | 'hybrid';
17
+ readonly settingsSchema: JsonSchema;
18
+ onLoad(context: PluginContext): Promise<void>;
19
+ onUnload(): Promise<void>;
20
+ createChatCompletion(options: ChatCompletionOptions): Promise<ChatCompletionResponse>;
21
+ createStreamingChatCompletion(options: ChatCompletionOptions): AsyncIterable<ChatCompletionChunk>;
22
+ createEmbedding(_options: EmbeddingOptions): Promise<EmbeddingResponse>;
23
+ listModels(settings?: PluginSettings): Promise<readonly AiModel[]>;
24
+ getCapabilities(): AiModelCapabilities;
25
+ protected getDefaultModelId(): string;
26
+ healthCheck(): Promise<PluginHealthCheck>;
27
+ getManifest(): PluginManifest;
28
+ }
29
+
30
+ export { GroqPlugin, GroqPlugin as default };
@@ -0,0 +1,30 @@
1
+ import { BaseAiProvider } from '@ever-works/plugin/abstract';
2
+ import { JsonSchema, PluginContext, ChatCompletionOptions, ChatCompletionResponse, ChatCompletionChunk, EmbeddingOptions, EmbeddingResponse, PluginSettings, AiModel, AiModelCapabilities, PluginHealthCheck, PluginManifest } from '@ever-works/plugin';
3
+
4
+ /**
5
+ * Groq AI provider plugin
6
+ *
7
+ * Provides AI capabilities through Groq's ultra-fast inference API.
8
+ * Uses 'user-required' configuration mode - users MUST provide their own API key.
9
+ */
10
+ declare class GroqPlugin extends BaseAiProvider {
11
+ readonly id = "groq";
12
+ readonly name = "Groq";
13
+ readonly version = "1.0.0";
14
+ readonly providerType = "groq";
15
+ readonly providerName = "Groq";
16
+ readonly configurationMode: 'admin-only' | 'user-required' | 'hybrid';
17
+ readonly settingsSchema: JsonSchema;
18
+ onLoad(context: PluginContext): Promise<void>;
19
+ onUnload(): Promise<void>;
20
+ createChatCompletion(options: ChatCompletionOptions): Promise<ChatCompletionResponse>;
21
+ createStreamingChatCompletion(options: ChatCompletionOptions): AsyncIterable<ChatCompletionChunk>;
22
+ createEmbedding(_options: EmbeddingOptions): Promise<EmbeddingResponse>;
23
+ listModels(settings?: PluginSettings): Promise<readonly AiModel[]>;
24
+ getCapabilities(): AiModelCapabilities;
25
+ protected getDefaultModelId(): string;
26
+ healthCheck(): Promise<PluginHealthCheck>;
27
+ getManifest(): PluginManifest;
28
+ }
29
+
30
+ export { GroqPlugin, GroqPlugin as default };