Giter VIP home page Giter VIP logo

ai_stories's People

Contributors

alexrudall avatar brunto avatar juzershakir avatar silva96 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ai_stories's Issues

Use the new gpt-3.5-turbo model

We want to explore how are the stories generated using the new chatgpt api model

Here's the documentation of the new model

https://platform.openai.com/docs/guides/chat

It should be as easy as changing the usage of the old endpoint for the new one and configure parameters properly.

But first we need to update the open ai gem.

We are using this gem:

https://github.com/alexrudall/ruby-openai

Otherwise you wont be able to use the new endpoint.

Please make sure you update every usage of the gem to the new endpoint.

They are mostly used in the jobs (app/jobs directory)

Take as an example this:

@client.completions(
      parameters: {
        model: 'text-davinci-003',
        prompt:, max_tokens: (DAVINCI_MAX_TOKENS - prompt.size)
      }
    )

That's using davinci 003

You need to update those calls to use gpt3.5-turbo

Please refer to the gem's documentation to do it accordingly.

You would also want to update the DAVINCI_MAX_TOKENS constant to 4096

The maximum number of tokens allowed for the generated answer. By default, the number of tokens the model can return will be (4096 - prompt tokens).

OpenAI access token needs to be enclosed in quotes

I am unable to connect to OpenAI when I enter my token without enclosing in quotations:
i.e. OPENAI_ACCESS_TOKEN=sk-randomcharacters

I have no issues connecting to OpenAI if I enter my token enclosed with quotes:
i.e. OPENAI_ACCESS_TOKEN="sk-randomcharacters"

It just keeps loading

Hi, I've done all the steps. I can also access the web ui, but after entering the prompt, it just keeps loading, any idea what should be done, please note I've also updated the open ai api.

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.