We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import openai client = openai.OpenAI() with open('test.txt', 'r', encoding='utf-8') as handle: contents = handle.read() completion = client.chat.completions.create( model="gpt-4-1106-preview", messages = [ { "role":"user", "content": "Summarize\n\n" + contents } ], stream = True ) for event in completion: # pylint: disable=not-an-iterable content = event.choices[0].delta.content print(content, end='', flush=True)
[MASTER] disable= C0103, # invalid-name C0114, # missing-module-docstring C0115, # missing-class-docstring C0116, # missing-function-docstring [TYPECHECK] generated-members=torch.*
pyline gpt-4-1106-preview.py
************* Module gpt-4-1106-preview gpt-4-1106-preview.py:23:13: E1133: Non-iterable value completion is used in an iterating context (not-an-iterable)
No warning.
ylint 3.0.3 astroid 3.0.1 Python 3.11.6 (main, Oct 2 2023, 13:45:54) [Clang 15.0.0 (clang-1500.0.40.1)]
macOS 14.2
openai==1.5.0
microsoft/pyright#6772 openai/openai-python#870
The text was updated successfully, but these errors were encountered:
Thanks for the report. The library you're using uses @overload, which we don't support yet. Will close as a duplicate of pylint-dev/astroid#1015 / #5712
@overload
Sorry, something went wrong.
No branches or pull requests
Bug description
Configuration
Command used
Pylint output
Expected behavior
No warning.
Pylint version
OS / Environment
macOS 14.2
Additional dependencies
Related issues
microsoft/pyright#6772
openai/openai-python#870
The text was updated successfully, but these errors were encountered: