feat: add AI provider support and documentation
- Update version to 0.0.2 - Add mod.ts to package files - Support multiple AI providers via config.provider field - Add qwen integration example in documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
15
readme.md
15
readme.md
@@ -6,4 +6,17 @@
|
||||
|
||||
当调用外部系统的时候,通过 auth token 去获取自己的对应的外部系统的 token,然后再调用外部系统的接口。
|
||||
|
||||
##
|
||||
## 举个例子,我要用 qwen 的接口
|
||||
|
||||
qwen 在我的系统中的存储的配置是 qwen.json
|
||||
|
||||
目的是纯前端快速访问页面, 因为要快速生成页面
|
||||
|
||||
```ts
|
||||
const app = new App({token});
|
||||
const config = await app.getConfig('qwen.json');
|
||||
|
||||
const qwen = new Qwen({token: config.token});
|
||||
const response = await qwen.chat({messages: [...]});
|
||||
console.log(response);
|
||||
```
|
||||
Reference in New Issue
Block a user