Giter VIP home page Giter VIP logo

openpromptstudio's Issues

数据库连接错误

一直提示,Notion连接错误:没有Notion数据库的访问权限。请在此Notion 数据库页面菜单的'Connections'中添加你的集成应用
但是已经反复确认Token和数据库的BaseID无误,token的访问权限也已经连接至数据库和上级页面,但还是出错0.0

提示词词典页面拖动有Bug

在「提示词词典」中拖动会出现提示词悬浮在空中的情况。

浏览器:Arc Version 0.96.0 (38004)

复现方式:在「提示词词典」抽屉中,按住一个「词」,然后放开,就会卡在空中。

拖动截图

提示词抽屉缩回去之后还在

/src/Compoents/PromptEditor/Lib/parsePrompts/parsers/Midjourney/index.ts存在一个错误

/src/Compoents/PromptEditor/Lib/parsePrompts/parsers/Midjourney/index.ts 这个文件,第一行
import { IPromptWord, PromptWordType } from "../../ParsePrompts"
存在错误,应该改成
import { IPromptWord, PromptWordType } from "../../parsePrompts"
由于windows环境不分大小写,所以应该可以正常运行,但是linux环境则会报错。

功能建议:支持通过API方式,发送多条prompt到OpenPromptStudio进行修改

你好,我做个prompt的生成器,能否通过API ,POST到OpenPromptStudio里面进行修改。

目前使用流程:
clip识别图片,使用gpt2模型,生成多条prompt
或 中文,使用chatglm扩展,翻译成英文,生成多条prompt

然后一条一条复制过来修改,比较繁琐:)

改进的流程:
生成多条prompt --> http post --> OpenPromptStudio(建立多个工作区)

项目地址:
https://github.com/zhongpei/image2text_prompt_generator

本地node部署出错

nohup npm run serve 无法打开网页nohup npm run dev可以
nohup npm run dev无法使用已经配置了腾讯密钥的翻译服务

问题

直接运行Index是一个空页面,是需要配置什么吗?

Ubuntu22.04用docker部署出错

[plugin:vite:import-analysis] Failed to resolve import "../../ParsePrompts" from "src/Compoents/PromptEditor/Lib/parsePrompts/parsers/Midjourney/index.ts". Does the file exist?
/app/src/Compoents/PromptEditor/Lib/parsePrompts/parsers/Midjourney/index.ts:1:44
1 | import { PromptWordType } from "../../ParsePrompts";
| ^
2 | import { translateZh2En } from "../../../translatePrompts";
3 | export async function midjourneyParse(text, options) {
at formatError (file:///app/node_modules/vite/dist/node/chunks/dep-665b0112.js:40782:46)
at TransformContext.error (file:///app/node_modules/vite/dist/node/chunks/dep-665b0112.js:40778:19)
at normalizeUrl (file:///app/node_modules/vite/dist/node/chunks/dep-665b0112.js:37514:33)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async TransformContext.transform (file:///app/node_modules/vite/dist/node/chunks/dep-665b0112.js:37648:47)
at async Object.transform (file:///app/node_modules/vite/dist/node/chunks/dep-665b0112.js:41031:30)
at async loadAndTransform (file:///app/node_modules/vite/dist/node/chunks/dep-665b0112.js:37292:29
Click outside or fix the code to dismiss.
You can also disable this overlay by setting server.hmr.overlay to false in vite.config.js.

本地docker部署报错

"""

@moonvy/[email protected] dev
vite dev --host

VITE v3.1.0 ready in 487 ms

➜ Local: http://localhost:12833/apps/ops/
➜ Network: http://172.17.0.5:12833/apps/ops/
node:internal/errors:490
ErrorCaptureStackTrace(err);
^

Error: ENOSPC: System limit for number of file watchers reached, watch '/app/src/Boot/vue.boot.ts'
at FSWatcher. (node:internal/fs/watchers:247:19)
at Object.watch (node:fs:2343:34)
at createFsWatchInstance (file:///app/node_modules/vite/dist/node/chunks/dep-665b0112.js:49738:17)
at setFsWatchListener (file:///app/node_modules/vite/dist/node/chunks/dep-665b0112.js:49785:15)
at NodeFsHandler$1._watchWithNodeFs (file:///app/node_modules/vite/dist/node/chunks/dep-665b0112.js:49940:14)
at NodeFsHandler$1._handleFile (file:///app/node_modules/vite/dist/node/chunks/dep-665b0112.js:50004:23)
at NodeFsHandler$1._addToNodeFs (file:///app/node_modules/vite/dist/node/chunks/dep-665b0112.js:50246:21)
at async file:///app/node_modules/vite/dist/node/chunks/dep-665b0112.js:51238:21
at async Promise.all (index 0)
Emitted 'error' event on FSWatcher instance at:
at FSWatcher._handleError (file:///app/node_modules/vite/dist/node/chunks/dep-665b0112.js:51434:10)
at NodeFsHandler$1._addToNodeFs (file:///app/node_modules/vite/dist/node/chunks/dep-665b0112.js:50254:18)
at async file:///app/node_modules/vite/dist/node/chunks/dep-665b0112.js:51238:21
at async Promise.all (index 0) {
errno: -28,
syscall: 'watch',
code: 'ENOSPC',
path: '/app/src/Boot/vue.boot.ts',
filename: '/app/src/Boot/vue.boot.ts'
}

Node.js v18.15.0

"""

image

在window11 系统中部署出现 Internal server error: Failed to resolve import "@moonvy/app-core" from "src\Boot\index.ts". Does the file exist?

Failed to resolve import "@moonvy/app-core" from "src\Boot\index.ts". Does the file exist?
10:57:57 [vite] Internal server error: Failed to resolve import "@moonvy/app-core" from "src\Boot\index.ts". Does the file exist?
Plugin: vite:import-analysis
File: E:/Projects/OpenPromptStudio/src/Boot/index.ts
1 | import { bootVue } from "./vue.boot";
2 | import { I18n } from "@moonvy/app-core";
| ^
3 | export function boot() {
4 | ;
部署后出现上诉报错
系统版本 Windows 11 企业版 22H2 (22621.1105)
nodejs版本 18.15.0 LTS

交互建议

image

最好 字典和编辑区不重叠,因为有同时操作的场景

翻译功不起作用

已经申请启用了腾讯翻译秘钥。
image
image

还有能不能添加一个本地数据库。将有需要的自己添加到本地数据库中。
notion网速不是很快。添加数据也比较麻烦。

部署运行出错:Failed to resolve import "../../ParsePrompts"

$ npm run dev

> @moonvy/[email protected] dev
> vite dev --host


  VITE v3.1.0  ready in 746 ms

  ➜  Local:   http://localhost:12345/apps/ops/
  ➜  Network: http://x.x.x.x:12345/apps/ops/
  ➜  Network: http://x.x.x.x:12345/apps/ops/
Failed to resolve import "../../ParsePrompts" from "src/Compoents/PromptEditor/Lib/parsePrompts/parsers/Midjourney/index.ts". Does the file exist?
4:37:41 AM [vite] Internal server error: Failed to resolve import "../../ParsePrompts" from "src/Compoents/PromptEditor/Lib/parsePrompts/parsers/Midjourney/index.ts". Does the file exist?
  Plugin: vite:import-analysis
  File: /root/OpenPromptStudio/src/Compoents/PromptEditor/Lib/parsePrompts/parsers/Midjourney/index.ts
  1  |  import { PromptWordType } from "../../ParsePrompts";
     |                                  ^
  2  |  import { translateZh2En } from "../../../translatePrompts";
  3  |  export async function midjourneyParse(text, options) {
      at formatError (file:///root/OpenPromptStudio/node_modules/vite/dist/node/chunks/dep-665b0112.js:40782:46)
      at TransformContext.error (file:///root/OpenPromptStudio/node_modules/vite/dist/node/chunks/dep-665b0112.js:40778:19)
      at normalizeUrl (file:///root/OpenPromptStudio/node_modules/vite/dist/node/chunks/dep-665b0112.js:37514:33)
      at processTicksAndRejections (node:internal/process/task_queues:96:5)
      at async TransformContext.transform (file:///root/OpenPromptStudio/node_modules/vite/dist/node/chunks/dep-665b0112.js:37648:47)
      at async Object.transform (file:///root/OpenPromptStudio/node_modules/vite/dist/node/chunks/dep-665b0112.js:41031:30)
      at async loadAndTransform (file:///root/OpenPromptStudio/node_modules/vite/dist/node/chunks/dep-665b0112.js:37292:29)

本地翻譯問題,請教備份問題

  1. 如果部屬在另外一台,用本地翻譯就不能使用,我看錯誤好像只會呼叫localhost
  2. notion有做連結,但是如果做git pull之後好像要重新設定??

容器化部署出错

VITE v3.1.0 ready in 210 ms

➜ Local: http://localhost:12833/apps/ops/
➜ Network: http://172.17.0.5:12833/apps/ops/
✘ [ERROR] No matching export in "node_modules/@vueuse/core/node_modules/vue-demi/lib/index.mjs" for import "createApp"

node_modules/@vueuse/core/dist/index.esm.js:1:62:
  1 │ import { isRef, ref, watchEffect, computed, customRef, unref, createApp, reactive, watch, getCurrentInstance, onMounted, onUpdated, toRefs as toRefs$1, shallowRef, markRaw, readonly, isVue2 } from 'vue-demi';
    ╵                                                               ~~~~~~~~~

Please add more languages other than Chinese

This is an AMAZING project! You are a genius! Can you add other languages other than Chinese? I can provide ITALIAN translations of the keywords and the UI. I'm from Italy.😀
If you support more languages and create a permanent website, OpenPromptStudio can become an international online resource for Prompts.
Can you add a GUIDE on how to contribute for adding a language translation of the keywords? I think that if you add a section to the Readme.md titled "HOW TO CONTRIBUTE WITH AN ADDITIONAL LANGUAGE TRANSLATION". There you can write a step by step guide on how to do it. It would be better if this section of the Readme.md was written in english.

1

b3db015c2cd0bfdec780277943a4dde
what‘s going on here?’

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.