michaelistrofficus / gpt4docstrings Goto Github PK
View Code? Open in Web Editor NEWGenerating Python docstrings with OpenAI ChatGPT!!
Home Page: https://gpt4docstrings.readthedocs.io
License: MIT License
Generating Python docstrings with OpenAI ChatGPT!!
Home Page: https://gpt4docstrings.readthedocs.io
License: MIT License
尊敬的gpt4docstrings 应用开发者,我是 InternLM 社区开发者&志愿者尖米, 大佬开源的工作对我的启发很大,希望可以探讨使用 InternLM 实现gpt4docstrings 的可能性和实现路径,我的微信是mzm312,希望可以取得联系进行更深度的交流
As title...
I'm getting this error with a brand new API key that shows as "never used":
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..
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.
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).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.