Git Product home page Git Product logo

auto-diary-server's Introduction

📝 auto-diary-server

키워드를 입력하면 자동으로 재밌는 일기를 생성하는 앱

테스트 하기

  1. Open AI api key 발급받기 - https://openai.com/api/
  2. OpenAI-Organization key 찾기
  3. application-local.yml 내부에 api-key, org-key 기입
  4. io.solabs.autodiary.service 패키지의 OpenAiServiceTest 클래스 실행하면 됨

Request Ex

{
  "model": "text-davinci-003",
  "prompt": "아래 단어를 조합해서 일기를 써줘.\n날씨:맑음\n기분:안좋음\n활동:스키타기\n누구랑:김효정\n특별했던 일:지갑을 잃어버렸다",
  "max_tokens": 200,
  "temperature": 0.5
}

Response Ex

{
    "id": "cmpl-6m05FMfDna0aHaWLANoh8DmGZdvNr",
    "object": "text_completion",
    "created": 1676898085,
    "model": "text-davinci-003",
    "choices": [
        {
            "text": "\n\n오늘은 맑고 화창한 날씨였지만 감정적으로는 안좋은 기분이었다. 스키타기를 하면서 김효정과 함께 특별한 일을 했다. 지갑을 잃어버리면서 시간을 보냈는데, 너무 즐거웠다",
            "index": 0,
            "logprobs": null,
            "finish_reason": "length"
        }
    ],
    "usage": {
        "prompt_tokens": 141,
        "completion_tokens": 200,
        "total_tokens": 341
    }
}

auto-diary-server's People

Contributors

hcgo97 avatar

Watchers

 avatar

Forkers

hcgo97

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.