JSPM

@andy07559/kore-ai-core

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q77109F
  • License Apache-2.0

Kore AI Core with fixed [DONE] marker parsing for @office-ai/aioncli-core

Package Exports

  • @andy07559/kore-ai-core
  • @andy07559/kore-ai-core/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@andy07559/kore-ai-core) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@andy07559/kore-ai-core

🛠️ Kore AI Core - 修复了 @office-ai/aioncli-core[DONE] 标记解析问题

🔧 问题解决

此包解决了在使用官方Gemini API和第三方API时遇到的错误:

[API Error: Unexpected token 'D', "[DONE]" is not valid JSON]

📦 安装

npm install @andy07559/kore-ai-core

🚀 使用方法

自动初始化(推荐)

const { initializeKoreAI } = require('@andy07559/kore-ai-core');

// 自动应用所有修复
initializeKoreAI();

手动应用修复

const { applyAioncliCoreFix } = require('@andy07559/kore-ai-core');

// 手动应用aioncli-core修复
applyAioncliCoreFix();

✨ 功能特性

  • 修复[DONE]标记解析错误:安全处理流式响应结束标记
  • 增强的Gemini客户端:支持多API Key轮转和重试
  • 统一协议转换:OpenAI ↔ Gemini 格式转换
  • 完整错误处理:详细的日志和错误提示
  • 即插即用:无需修改现有代码

🛡️ 兼容性

  • 官方Gemini API:使用API Key认证
  • 第三方Gemini API:自定义端点
  • Google登录:OAuth认证(保持原有功能)

📄 许可证

Apache-2.0


由 Kore AI 开发 - 让AI聊天更简单可靠 🚀