Code Monkey home page Code Monkey logo

psy-platform's Introduction

说明

开发

ORM

使用 prisma 作为 ORM 工具进行管理。

使用

  1. npx prisma db pull 拉取最新的数据库
  2. npx prisma generate 生成全新的 prisma client
  3. 重启服务验证是否更新成功

formatter

VsCode

使用 EsLint 和 prettier 进行项目格式管理。 格式化方法使用 prettier /home/ubuntu/.nvm/versions/node/v20.10.0/bin/npx

业务方面

用户实验方面

一个用户实验对应多个步骤 需要完成所有实验步骤后,才会完成 user_experiment 属性中的内容 但是如果一个实验对应多个写作实验,则需要对应子表

在 user_experiment 中更新 part,对应已经完成的 part 数字 默认是 1,对应第一步

添加新对外页面

发送生成接口的数据类型

{
    "user_prompts": [
        {
            "original": "我输入了一句话",
            "prompt": "a girl"
        },
        {
            "original": "我输入了一句话",
            "prompt": "a girl"
        },
        {
            "original": "我输入了一句话",
            "prompt": "a girl"
        }
    ],
    "engine_id": 2,
    "gpt": {
        "gpt_prompt": "请翻译成stalbel disdauij的华盛顿后端是的",
        "gpt_setting": {
            "temperature": 0.7,
            "top_p": 1,
            "frequency_penalty": 0,
            "presence_penalty": 0,
            "max_tokens": 64
        }
    },
    "workflow": {},
    "template": {
        "prompt": "Chromolithograph, {prompt} Asia,  Vibrant colors, intricate details, rich color saturation, multi-layered printing, ornate compositions.",
        "negative_prompt": "monochromatic, simple designs, limited color palette, imprecise registration, minimalistic, modern aesthetic, digital appearance"
    }
}

psy-platform's People

Contributors

techidsk avatar wendaolee avatar

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.