Coder Social home page Coder Social logo

michaelistrofficus / gpt4docstrings Goto Github PK

View Code? Open in Web Editor NEW
110.0 5.0 8.0 1.38 MB

Generating Python docstrings with OpenAI ChatGPT!!

Home Page: https://gpt4docstrings.readthedocs.io

License: MIT License

Python 100.00%
ai chatgpt code-quality docstrings precommit-hooks python

gpt4docstrings's People

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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

gpt4docstrings's Issues

希望取得联系

尊敬的gpt4docstrings 应用开发者,我是 InternLM 社区开发者&志愿者尖米, 大佬开源的工作对我的启发很大,希望可以探讨使用 InternLM 实现gpt4docstrings 的可能性和实现路径,我的微信是mzm312,希望可以取得联系进行更深度的交流

RateLimitError: You exceeded your current quota

I'm getting this error with a brand new API key that shows as "never used":

Captura de pantalla de 2024-02-24 11 32 44

I also got this same error with the previous key and I had not used it ever.

Retrying langchain.chat_models.openai.acompletion_with_retry.<locals>._completion_with_retry in 4.0 seconds as it raised RateLimitError: You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors..

merge existing docstring with new generated docstring

Thanks for great library

Instead of replacing existin docstring, please do this:

docnew =.doc_gpt4 + "\n" + doc_existing

So, user can decide after to keep his own docstring info.
We often put valuable infos in docstring: code sample.

Incorrect newline added

def setup_logging(level):
	"""
    Setup logging.

    Args:
        level (int): logging level.

    Returns:
        logging.Logger: logger.
    """
	logger = logging.getLogger('secator')
	logger.setLevel(level)
	ch = logging.StreamHandler()
	ch.setLevel(level)
	formatter = logging.Formatter('%(message)s')
	ch.setFormatter(formatter)
	logger.addHandler(ch)
	return logger

The first line of the docstring should be:
"""Setup logging."""

to comply with google pep style for docstrings (https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html).

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.