@@ -31,8 +31,7 @@ class Langbase:
3131 def __init__ (
3232 self ,
3333 api_key : Optional [str ] = None ,
34- base_url : str = "https://api.langbase.com" ,
35- timeout : int = 30
34+ base_url : str = "https://api.langbase.com"
3635 ):
3736 """
3837 Initialize the Langbase client.
@@ -41,7 +40,6 @@ def __init__(
4140 api_key: The API key for authentication. If not provided, it will be read
4241 from the LANGBASE_API_KEY environment variable.
4342 base_url: The base URL for the API.
44- timeout: The timeout for API requests in seconds.
4543
4644 Raises:
4745 ValueError: If no API key is provided and LANGBASE_API_KEY is not set.
@@ -53,12 +51,10 @@ def __init__(
5351 )
5452
5553 self .base_url = base_url
56- self .timeout = timeout
5754
5855 self .request = Request ({
5956 "api_key" : self .api_key ,
60- "base_url" : self .base_url ,
61- "timeout" : self .timeout
57+ "base_url" : self .base_url
6258 })
6359
6460 # Initialize properties and methods
@@ -162,8 +158,7 @@ def run(
162158 if api_key :
163159 request = Request ({
164160 "api_key" : api_key ,
165- "base_url" : self .parent .base_url ,
166- "timeout" : self .parent .timeout
161+ "base_url" : self .parent .base_url
167162 })
168163
169164 headers = {}
@@ -679,8 +674,7 @@ def parser(
679674 response = requests .post (
680675 f"{ self .base_url } /v1/parser" ,
681676 headers = {"Authorization" : f"Bearer { self .api_key } " },
682- files = files ,
683- timeout = self .timeout
677+ files = files
684678 )
685679
686680 if not response .ok :
0 commit comments