koishi-plugin-chatluna-google-gemini-adapter 1.2.0-alpha.2 → 1.2.0-alpha.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.
package/lib/index.cjs CHANGED
@@ -51,7 +51,8 @@ __export(index_exports, {
51
51
  apply: () => apply,
52
52
  inject: () => inject,
53
53
  logger: () => logger,
54
- name: () => name
54
+ name: () => name,
55
+ reusable: () => reusable
55
56
  });
56
57
  module.exports = __toCommonJS(index_exports);
57
58
  var import_chat = require("koishi-plugin-chatluna/services/chat");
@@ -734,6 +735,7 @@ var GeminiClient = class extends import_client.PlatformModelAndEmbeddingsClient
734
735
  // src/index.ts
735
736
  var import_logger = require("koishi-plugin-chatluna/utils/logger");
736
737
  var logger;
738
+ var reusable = true;
737
739
  function apply(ctx, config) {
738
740
  const plugin = new import_chat.ChatLunaPlugin(ctx, config, config.platform);
739
741
  logger = (0, import_logger.createLogger)(ctx, "chatluna-gemini-adapter");
@@ -793,5 +795,6 @@ var name = "chatluna-google-gemini-adapter";
793
795
  apply,
794
796
  inject,
795
797
  logger,
796
- name
798
+ name,
799
+ reusable
797
800
  });
package/lib/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { ChatLunaPlugin } from 'koishi-plugin-chatluna/services/chat';
2
2
  import { Context, Logger, Schema } from 'koishi';
3
3
  export declare let logger: Logger;
4
+ export declare const reusable = true;
4
5
  export declare function apply(ctx: Context, config: Config): void;
5
6
  export interface Config extends ChatLunaPlugin.Config {
6
7
  apiKeys: [string, string][];
package/lib/index.mjs CHANGED
@@ -718,6 +718,7 @@ var GeminiClient = class extends PlatformModelAndEmbeddingsClient {
718
718
  // src/index.ts
719
719
  import { createLogger } from "koishi-plugin-chatluna/utils/logger";
720
720
  var logger;
721
+ var reusable = true;
721
722
  function apply(ctx, config) {
722
723
  const plugin = new ChatLunaPlugin(ctx, config, config.platform);
723
724
  logger = createLogger(ctx, "chatluna-gemini-adapter");
@@ -776,5 +777,6 @@ export {
776
777
  apply,
777
778
  inject,
778
779
  logger,
779
- name
780
+ name,
781
+ reusable
780
782
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-chatluna-google-gemini-adapter",
3
3
  "description": "google-gemini adapter for chatluna",
4
- "version": "1.2.0-alpha.2",
4
+ "version": "1.2.0-alpha.3",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "lib/index.mjs",
7
7
  "typings": "lib/index.d.ts",