Files
app/readme.md
abearxiong e9c626c590 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>
2025-12-09 22:27:31 +08:00

22 lines
618 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 应用层应用
## 整个应用的逻辑
用户只保留当前自己系统的 auth token。
当调用外部系统的时候,通过 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);
```