1.0.19 • Published 11 months ago

@belloai/gpt-plugin v1.0.19

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

项目描述

本项目基于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={() => {}} />
  )
}
1.0.19

11 months ago

1.0.18

11 months ago

1.0.17

11 months ago

1.0.16

11 months ago

1.0.15

11 months ago

1.0.14

11 months ago

1.0.13

11 months ago

1.0.12

11 months ago

1.0.11

11 months ago

1.0.10

11 months ago

1.0.9

11 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago