fix: 🐛 don't override context length param in OpenAI
This commit is contained in:
parent
a7cb0929bd
commit
b2a6d07ea9
1 changed files with 2 additions and 1 deletions
|
|
@ -81,7 +81,8 @@ class OpenAI(LLM):
|
|||
):
|
||||
await super().start(write_log=write_log, unique_id=unique_id)
|
||||
|
||||
self.context_length = MAX_TOKENS_FOR_MODEL.get(self.model, 4096)
|
||||
if self.context_length is None:
|
||||
self.context_length = MAX_TOKENS_FOR_MODEL.get(self.model, 4096)
|
||||
|
||||
openai.api_key = self.api_key
|
||||
if self.api_type is not None:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue