Skip to content

Commit

Permalink
added http client max headers
Browse files Browse the repository at this point in the history
  • Loading branch information
jrcastropy committed Jan 25, 2024
1 parent 693b627 commit 5b95928
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 97 deletions.
2 changes: 2 additions & 0 deletions serverless_openai/apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
from serverless_openai.helpers import *
from bs4 import BeautifulSoup
import re, json
import http.client
http.client._MAXHEADERS = 1000

class OpenAIAPI(BaseModel):
api_key: str
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages

VERSION = '1.2.7'
VERSION = '1.2.8'
DESCRIPTION = "A package for using Openai in serverless environment"
LONG_DESCRIPTION = 'A package for using Openai with scraping and etc. in serverless application such as AWS Lambda and GCP Cloud Function'

Expand Down
Loading

0 comments on commit 5b95928

Please sign in to comment.