Back to list
nadeemsangrasi

chatkit-backend-adapter

by nadeemsangrasi

0🍴 0📅 Dec 17, 2025

SKILL.md


name: ChatKit Backend Adapter description: Modify OpenAI ChatKit starter to use FastAPI backend instead of OpenAI API, including citation support and error handling.

ChatKit Backend Adapter

Instructions

  1. Replace OpenAI ChatKit client with custom backend calls:

    • Modify API calls to fetch from /chat endpoint instead of OpenAI
    • Update authentication and headers
    • Handle response format differences
    • Maintain ChatKit component compatibility
  2. Add citation support to UI:

    • Display source information from backend
    • Format citations properly in messages
    • Link citations to original sources
    • Handle citation styling consistently
  3. Implement proper error and loading states:

    • Handle backend API errors gracefully
    • Show loading indicators during requests
    • Display error messages to users
    • Implement retry functionality
  4. Maintain ChatKit internal states:

    • Preserve existing component architecture
    • Update state management for new backend
    • Handle message history properly
    • Maintain conversation flow
  5. Follow Context7 MCP documentation:

    • Do not call OpenAI API for inference
    • Follow deterministic UI patch patterns
    • Include proper error handling
    • Maintain ChatKit component compatibility

Examples

Input: "Adapt ChatKit to use custom backend" Output: Patches ChatKit frontend files to replace OpenAI API calls with custom backend endpoints.

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon