mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-06 03:20:41 +00:00
feat(core): Support max output tokens parameter (#2218)
This commit is contained in:
@@ -112,6 +112,11 @@ class OpenAILLMClient(ProxyLLMClient):
|
||||
|
||||
_initialize_openai(self._init_params)
|
||||
|
||||
if not self._openai_less_then_v1:
|
||||
# Prepare openai client and cache default headers
|
||||
# It will block the main thread in some cases
|
||||
_ = self.client.default_headers
|
||||
|
||||
@classmethod
|
||||
def new_client(
|
||||
cls,
|
||||
|
Reference in New Issue
Block a user