https://github.com/fairjm/dioxus-openai-qa-gui
a simple openai qa desktop app built with dioxus
https://github.com/fairjm/dioxus-openai-qa-gui
Last synced: 15 days ago
JSON representation
a simple openai qa desktop app built with dioxus
- Host: GitHub
- URL: https://github.com/fairjm/dioxus-openai-qa-gui
- Owner: fairjm
- Created: 2023-03-12T05:21:09.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-03-15T16:49:20.000Z (about 2 years ago)
- Last Synced: 2024-11-09T11:37:07.435Z (6 months ago)
- Language: Rust
- Size: 211 KB
- Stars: 15
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- awesome-llm-and-aigc - fairjm/dioxus-openai-qa-gui - openai-qa-gui?style=social"/> : a simple openai qa desktop app built with dioxus. (Summary)
- awesome-llm-and-aigc - fairjm/dioxus-openai-qa-gui - openai-qa-gui?style=social"/> : a simple openai qa desktop app built with dioxus. (Summary)
- awesome-cuda-and-hpc - fairjm/dioxus-openai-qa-gui - openai-qa-gui?style=social"/> : a simple openai qa desktop app built with dioxus. (Frameworks)
- awesome-cuda-and-hpc - fairjm/dioxus-openai-qa-gui - openai-qa-gui?style=social"/> : a simple openai qa desktop app built with dioxus. (Frameworks)
- awesome-rust-list - fairjm/dioxus-openai-qa-gui - openai-qa-gui?style=social"/> : a simple openai qa desktop app built with dioxus. (GUI)
- awesome-rust-list - fairjm/dioxus-openai-qa-gui - openai-qa-gui?style=social"/> : a simple openai qa desktop app built with dioxus. (GUI)
README
# 一个简单的openai chat接口测试小工具
基于 [dioxus](https://github.com/DioxusLabs/dioxus) 和 [bulma](https://bulma.io) (css)
灵感来自: [https://github.com/DioxusLabs/example-projects/tree/master/image_generator_open_ai](https://github.com/DioxusLabs/example-projects/tree/master/image_generator_open_ai)# Intro
用来做一些简单的问答(没有实现对话),可以保存prompt进行一些验证,探索。
## 设置

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

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