基于 dioxus 和 bulma (css)
灵感来自: https://github.com/DioxusLabs/example-projects/tree/master/image_generator_open_ai
用来做一些简单的问答(没有实现对话),可以保存prompt进行一些验证,探索。

第一项是proxy的地址 如果可以直连就使用https://api.openai.com
第二项是openai的secret
设置会在生成gui_config.json文件, secret明文存储请注意安全

prompts列表会生成system_prompts.json文件
可以直接复制/编辑这个文件来修改内容(需要重新打开应用,不然会被应用覆盖)
正常返回输出的内容在程序所在的output\目录中
需要本地安装rust, windows环境有edge(webview2)即可。
其他环境参考: dioxuslabs - desktop
执行:
cargo run
# debug build
cargo build
# release build
cargo build --release或者直接下载release
rsx的format可以使用dioxus-cli
stable版本没有fmt的子命令, 使用cargo install --git https://github.com/DioxusLabs/cli安装后执行dioxus fmt