Giter Club home page Giter Club logo

file-go-openai's Introduction

file-go-openai

OpenAI model version used gpt-4o-mini

You need OpenAI API key .

export API_KEY=<>

./file-go-openai -h
Options:
  -f, --file <path>/<file>  Path to the file to be reviewed [required]
  -m, --message <string>    Message to OpenAI model [required OR use '-p']
  -p, --pattern <string>    Pattern name [required OR use '-m']
  -o, --out                 Save file's review output to a file [optional]
  -v, --version             Display OpenAI model version

IMPORTANT

For example for OpenAI in version GPT-4.0 .

If you encounter such error, it's because there are some API limitations.

Request too large for gpt-4 in organization <org> on tokens per min (TPM): Limit 10000, Requested 43034. The input or output tokens must be reduced in order to run successfully. Visit https://platform.openai.com/account/rate-limits to learn more.

More about Rate limits for tier-1 you can find here. In tier-1 for GPT-4, TPM is 10,000. You might be using different tier than tier-1 e.g. free, tier-2 etc. where TPM values are different.

What are tokens and how to count them you can find here .

# pattern's list

analyze_requests_init
analyze_html

# example usage

> analyze and display review

./file-go-openai \
-f /tmp/input.log \
-m "please list all uniq Request lines in one section and uniq User-Agent lines in separate section."

> analyze and save review to a file

./file-go-openai \
-f /tmp/input.log \
-m "please list all uniq Request lines in one section and uniq User-Agent lines in separate section." \
-o

> analyze based on defined pattern and save review to a file

Patterns can be find here .

./file-go-openai \
-f /tmp/input.log \
-p analyze_requests_init \
-o

file-go-openai's People

Contributors

michalswi avatar

Stargazers

 avatar

Watchers

 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.