Coder Social home page Coder Social logo

dioxus-openai-qa-gui's Introduction

一个简单的openai chat接口测试小工具

基于 dioxusbulma (css)
灵感来自: 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

执行:

cargo run

# debug build
cargo build

# release build
cargo build --release

或者直接下载release

Other

rsx的format可以使用dioxus-cli
stable版本没有fmt的子命令, 使用cargo install --git https://github.com/DioxusLabs/cli安装后执行dioxus fmt

dioxus-openai-qa-gui's People

Contributors

fairjm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

codingonion

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.