@ever-works/google-plugin 1.0.0 → 1.0.2
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/dist/index.cjs +5774 -0
- package/dist/index.d.cts +30 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.js +5749 -0
- package/package.json +77 -67
- package/LICENSE +0 -661
package/dist/index.d.cts
ADDED
|
@@ -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
|
+
* Google Gemini AI provider plugin
|
|
6
|
+
*
|
|
7
|
+
* Provides AI capabilities through Google's Gemini API.
|
|
8
|
+
* Uses 'user-required' configuration mode - users MUST provide their own API key.
|
|
9
|
+
*/
|
|
10
|
+
declare class GooglePlugin extends BaseAiProvider {
|
|
11
|
+
readonly id = "google";
|
|
12
|
+
readonly name = "Google Gemini";
|
|
13
|
+
readonly version = "1.0.0";
|
|
14
|
+
readonly providerType = "google";
|
|
15
|
+
readonly providerName = "Google Gemini";
|
|
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 { GooglePlugin, GooglePlugin as default };
|
package/dist/index.d.ts
ADDED
|
@@ -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
|
+
* Google Gemini AI provider plugin
|
|
6
|
+
*
|
|
7
|
+
* Provides AI capabilities through Google's Gemini API.
|
|
8
|
+
* Uses 'user-required' configuration mode - users MUST provide their own API key.
|
|
9
|
+
*/
|
|
10
|
+
declare class GooglePlugin extends BaseAiProvider {
|
|
11
|
+
readonly id = "google";
|
|
12
|
+
readonly name = "Google Gemini";
|
|
13
|
+
readonly version = "1.0.0";
|
|
14
|
+
readonly providerType = "google";
|
|
15
|
+
readonly providerName = "Google Gemini";
|
|
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 { GooglePlugin, GooglePlugin as default };
|