{"id":13640919,"url":"https://github.com/fairjm/dioxus-openai-qa-gui","last_synced_at":"2025-04-20T07:31:14.896Z","repository":{"id":224650154,"uuid":"612832550","full_name":"fairjm/dioxus-openai-qa-gui","owner":"fairjm","description":"a simple openai qa desktop app built with dioxus","archived":false,"fork":false,"pushed_at":"2023-03-15T16:49:20.000Z","size":216,"stargazers_count":15,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-09T11:37:07.435Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fairjm.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-12T05:21:09.000Z","updated_at":"2024-08-31T17:50:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"09b77943-76db-46b3-af29-20322516ac3f","html_url":"https://github.com/fairjm/dioxus-openai-qa-gui","commit_stats":null,"previous_names":["fairjm/dioxus-openai-qa-gui"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fairjm%2Fdioxus-openai-qa-gui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fairjm%2Fdioxus-openai-qa-gui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fairjm%2Fdioxus-openai-qa-gui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fairjm%2Fdioxus-openai-qa-gui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fairjm","download_url":"https://codeload.github.com/fairjm/dioxus-openai-qa-gui/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249864233,"owners_count":21336717,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T01:01:15.762Z","updated_at":"2025-04-20T07:31:14.891Z","avatar_url":"https://github.com/fairjm.png","language":"Rust","funding_links":[],"categories":["Summary","Frameworks","GUI"],"sub_categories":[],"readme":"# 一个简单的openai chat接口测试小工具\n基于 [dioxus](https://github.com/DioxusLabs/dioxus) 和 [bulma](https://bulma.io) (css)  \n灵感来自: [https://github.com/DioxusLabs/example-projects/tree/master/image_generator_open_ai](https://github.com/DioxusLabs/example-projects/tree/master/image_generator_open_ai) \n\n# Intro\n用来做一些简单的问答（没有实现对话），可以保存prompt进行一些验证，探索。\n\n![](readme/image.PNG)\n\n## 设置\n![](readme/setting.png)  \n第一项是proxy的地址 如果可以直连就使用`https://api.openai.com`  \n第二项是openai的secret\n设置会在生成`gui_config.json`文件, secret明文存储请注意安全  \n\n## prompts\n![](readme/prompts.png)  \nprompts列表会生成`system_prompts.json`文件  \n可以直接复制/编辑这个文件来修改内容(需要重新打开应用,不然会被应用覆盖)  \n\n正常返回输出的内容在程序所在的`output\\`目录中\n\n\n# How to run\n需要本地安装`rust`, windows环境有edge(`webview2`)即可。  \n其他环境参考:  [dioxuslabs - desktop](https://dioxuslabs.com/docs/0.3/guide/en/getting_started/desktop.html)  \n\n执行:\n```shell\ncargo run\n\n# debug build\ncargo build\n\n# release build\ncargo build --release\n```\n\n或者直接下载release  \n\n# Other\nrsx的format可以使用[dioxus-cli](https://github.com/DioxusLabs/cli)   \nstable版本没有fmt的子命令, 使用`cargo install --git https://github.com/DioxusLabs/cli`安装后执行`dioxus fmt`  \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffairjm%2Fdioxus-openai-qa-gui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffairjm%2Fdioxus-openai-qa-gui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffairjm%2Fdioxus-openai-qa-gui/lists"}