gk-search

A Vue component for gk-chat into your application.
1,042
Install
npm install gk-search
Latest Version:0.0.45
Vue:3
License:MIT
Last Updated:Apr 2, 2024
Links: Gitee  ·  npm
Maintainer: zhouchong

A Vue component for gk-chat into your application.

Project setup

npm install --registry=https://registry.npm.org

Installation

npm install @gk/search

Usage

import { SearchWindow } from "@gk/search"
<SearchWindow base_url='YOUR_URL' anon_key='YOUR_ANON_KEY' />

Usage hooks

usage hooks custom ui

import { useChat } from "@gk/search"

const { input handleInputChange, messages, loading } = useChat()

//index.vue
return (
 <div>
   <div>
    {messages.map((msg, i) => <p key={i}>{msg}</p>)}
  </div>
  <div>
    <input v-model={input} />
    <button onClick={handleInputChange}>Send</button>
  </div>
 </div>
)

Related Packages

a2a-ai-chat-sdk

AI聊天SDK - 完整的原版功能

8,009
@yak-io/vue

Vue SDK for embedding yak chatbot

3,112
@yak-io/nuxt

Nuxt 3 module for embedding yak chatbot

3,046
@wil-works/evoke-chat

Evoke Chat — AI 对话与 Agent UI(对话窗口、消息体、卡片、工具调用、沙箱预览),...

1,409 0
@huyooo/ai-chat-frontend-vue

AI Chat Frontend - Vue components with adapter pattern

12,303

Version History

Version Released Vue License
0.0.45 ~3.2.25 MIT
0.0.44 ~3.2.25 MIT
0.0.43 ~3.2.25 MIT
0.0.42 ~3.2.25 MIT
0.0.41 ~3.2.25 MIT