Skip to content

when I use gpt-3.5-turbo-1106, an openai.APIStatusError occurred #1096

Closed as not planned
@TheHonestBob

Description

@TheHonestBob

Confirm this is an issue with the Python library and not an underlying OpenAI API

  • This is an issue with the Python library

Describe the bug

openai.APIStatusError:

<title>Request Header Fields Too Large</title>

Request Header Fields Too Large

Error parsing headers: 'limit request headers fields'

To Reproduce

Code snippets

stream = OpenAI(api_key='my key').openai_engine.chat.completions.create(
                    model="gpt-3.5-turbo",
                    messages=messages,
                    stream=True,
                    temperature=0.1
                )

OS

linux

Python version

python3.9

Library version

openai 1.9.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions