@belloai/gpt-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.0.19 • Public • Published

项目描述

本项目基于ChartGTP进行二次开发,适用于 招聘辅助个人求职猎头辅助等场景

技术栈

  • Vue3
  • Vite
  • Web Component

迭代计划

  • Version 1
    • JD生成
    • 面试前准备-面试官
    • 面试/面谈前准备-HR
    • 面试中提问助手
    • 职位发布时自动抽取标签
    • 提报offer时,基于所有轮次面试评价的总结

如何使用

如果你正在使用 vite 你可以直接在入口处引入其静态文件

# 在 vite 入口的html内引入 main.js
<html>
  <body>
    ...
    <div id="main"></div>
    <script src="@belloai/gpt_plugin/dist/main.js" />
    ...
  </body>
</html>

如果你更喜欢import,请直接使用

#  main.ts 引入

import '@belloai/gpt_plugin'

在 vite + vue 中使用

# 如果你正在使用 `@vitejs/plugin-vue`,请在配置内添加以下配置:
## vite.config.ts
import vue from "@vitejs/plugin-vue";

export default defineConfig({
  ...,
  plugins: [
    ...,
    vue({
      customElement: true,
      template: {
        compilerOptions: {
          isCustomElement: (tag) => ['gpt-magic', ...].includes(tag),
        },
      },
    }),
    ...,
  ],
})


# 如果你使用的其他vite插件,没有提供compilerOptions.customerElement的配置的打包器,请在vue实例内禁用掉他们的vue编译
## main.ts[入口文件]

import Vue from 'vue'

...
Vue.config.ignoredElements = ['gpt-magic', ...]
...

## xxx.vue

<gpt-magic :params="{}" @mClick="() => {}"></gpt-magic>

在 vite + react 中使用

import '@belloai/gpt_plugin'

export default () => {
  return () => (
    <gpt-magic params={params} onMClick={() => {}} />
  )
}

Readme

Keywords

none

Package Sidebar

Install

npm i @belloai/gpt-plugin

Weekly Downloads

2

Version

1.0.19

License

ISC

Unpacked Size

849 kB

Total Files

79

Last publish

Collaborators

  • powan
  • elysion72513
  • thomas-ballo
  • ouxiaohui