koishi-plugin-chatluna 1.0.0 → 1.0.1-alpha.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 +3 -2
- package/lib/chains/chain.d.ts +1 -1
- package/lib/index.cjs +10 -1085
- package/lib/index.d.ts +1 -1
- package/lib/index.mjs +9 -1110
- package/lib/llm-core/agent/index.cjs +1129 -0
- package/lib/llm-core/agent/index.d.ts +4 -0
- package/lib/llm-core/agent/index.mjs +1121 -0
- package/lib/llm-core/agent/openai/index.d.ts +2 -2
- package/lib/llm-core/agent/openai/output_parser.d.ts +1 -14
- package/lib/llm-core/chain/plugin_chat_chain.d.ts +1 -1
- package/lib/llm-core/model/base.d.ts +1 -1
- package/package.json +6 -1
- package/lib/llm-core/memory/history/index.d.ts +0 -3
package/README.MD
CHANGED
|
@@ -12,7 +12,7 @@ _A bot plugin for LLM chat services with multi-model integration, extensibility,
|
|
|
12
12
|
|
|
13
13
|
[](https://t.me/koishi_chatluna) [](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=eEBVq6GK7HYX2y61x55WD6hnXTIRop-0&authKey=i4pG5%2BJ%2FY8auWprBubhremTkn3vroPigQq5m9RENGBLrLmlj%2BSu3G%2BqllK7Wts2M&noverify=0&group_code=282381753) [-green)](https://chatluna.chat/)
|
|
14
14
|
|
|
15
|
-
**Project Status:
|
|
15
|
+
**Project Status: 1.0 Official Release (Slow development, preparing for v2 version)**
|
|
16
16
|
|
|
17
17
|
</div>
|
|
18
18
|
|
|
@@ -28,7 +28,7 @@ _A bot plugin for LLM chat services with multi-model integration, extensibility,
|
|
|
28
28
|
- 🎭 Custom conversation presets
|
|
29
29
|
- 🛡️ Rate limiting & blacklist system
|
|
30
30
|
- 🎨 Multi-format output (text, voice, image, mixed)
|
|
31
|
-
- 🧠 Context-aware with long-term memory
|
|
31
|
+
- 🧠 Context-aware with [long-term memory](./packages/long-memory/README.md)
|
|
32
32
|
- 🔀 Three modes: chat, browsing, plugin
|
|
33
33
|
- 🔒 Content moderation via [Koishi censor](https://censor.koishi.chat/)
|
|
34
34
|
|
|
@@ -57,6 +57,7 @@ Install the plugin in Koishi for basic functionality. For detailed setup, see ou
|
|
|
57
57
|
| [Azure OpenAI](./packages/azure-openai-adapter/README.md) | Official API | Similar to OpenAI | Paid API |
|
|
58
58
|
| [Google Gemini](./packages/gemini-adapter/README.md) | Official API | Fast, outperforms GPT-3.5 | Requires account, may be charged |
|
|
59
59
|
| [Claude API](./packages/claude-adapter) | Official API | Large context, often beats GPT-3.5 | Paid, no Function Call |
|
|
60
|
+
| [Deepseek](./packages/deepseek-adapter/) | Official API | Domestic renowned model | Performance close to or exceeding GPT-4o |
|
|
60
61
|
| [Tongyi Qianwen](./packages/qwen-adapter/README.md) | Official API | Free quota available | Slightly better than Zhipu |
|
|
61
62
|
| [Zhipu](./packages/zhipu-adapter/README.md) | Official API | Free tokens for new users | Better than Xunfei Spark |
|
|
62
63
|
| [Xunfei Spark](./packages/spark-adapter/README.md) | Official API | Free quota for new users | Similar to GPT-3.5 |
|
package/lib/chains/chain.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ export declare class ChainMiddleware {
|
|
|
43
43
|
constructor(name: string, execute: ChainMiddlewareFunction, graph: ChatChainDependencyGraph);
|
|
44
44
|
before<T extends keyof ChainMiddlewareName>(name: T): this;
|
|
45
45
|
after<T extends keyof ChainMiddlewareName>(name: T): this;
|
|
46
|
-
run(session: Session, options: ChainMiddlewareContext): Promise<string | h[] | h[][]
|
|
46
|
+
run(session: Session, options: ChainMiddlewareContext): Promise<string | h[] | ChainMiddlewareRunStatus | h[][]>;
|
|
47
47
|
}
|
|
48
48
|
export interface ChainMiddlewareContext {
|
|
49
49
|
config: Config;
|