@@ -20,15 +20,15 @@ def __init__(self, config=None,
2020 enable_cache : bool = False ,
2121 internal_lang : Optional [str ] = None ):
2222 """
23- Initializes the OpenAICompletionsSolver with API configuration and credentials.
24-
25- Raises:
26- ValueError: If the API key is not provided in the configuration.
27- """
28- super ().__init__ (config = config , translator = translator ,
29- detector = detector , priority = priority ,
30- enable_tx = enable_tx , enable_cache = enable_cache ,
31- internal_lang = internal_lang )
23+ Initializes the OpenAICompletionsSolver with API configuration and credentials.
24+
25+ Raises:
26+ ValueError: If the API key is not provided in the configuration.
27+ """
28+ super ().__init__ (config = config , translator = translator ,
29+ detector = detector , priority = priority ,
30+ enable_tx = enable_tx , enable_cache = enable_cache ,
31+ internal_lang = internal_lang )
3232 self .api_url = f"{ self .config .get ('api_url' , 'https://api.openai.com/v1' )} /completions"
3333 self .engine = self .config .get ("model" , "gpt-4o-mini" )
3434 self .key = self .config .get ("key" )
@@ -101,15 +101,15 @@ def __init__(self, config=None,
101101 enable_cache : bool = False ,
102102 internal_lang : Optional [str ] = None ):
103103 """
104- Initializes the OpenAIChatCompletionsSolver with API configuration, memory settings, and system prompt.
105-
106- Raises:
107- ValueError: If the API key is not provided in the configuration.
108- """
109- super ().__init__ (config = config , translator = translator ,
110- detector = detector , priority = priority ,
111- enable_tx = enable_tx , enable_cache = enable_cache ,
112- internal_lang = internal_lang )
104+ Initializes the OpenAIChatCompletionsSolver with API configuration, memory settings, and system prompt.
105+
106+ Raises:
107+ ValueError: If the API key is not provided in the configuration.
108+ """
109+ super ().__init__ (config = config , translator = translator ,
110+ detector = detector , priority = priority ,
111+ enable_tx = enable_tx , enable_cache = enable_cache ,
112+ internal_lang = internal_lang )
113113 self .api_url = f"{ self .config .get ('api_url' , 'https://api.openai.com/v1' )} /chat/completions"
114114 self .engine = self .config .get ("model" , "gpt-4o-mini" )
115115 self .key = self .config .get ("key" )
0 commit comments