Skip to content

Commit

Permalink
Removing ceiling for now, causing issues. (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-XT authored May 9, 2023
1 parent 26bb1ff commit 150f81c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions provider/huggingchat.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@ def __init__(
):
self.requirements = []
self.AI_TEMPERATURE = AI_TEMPERATURE
self.MAX_TOKENS_CEILING = max_tokens_ceiling(AI_MODEL)
self.MAX_TOKENS = (
MAX_TOKENS
if MAX_TOKENS <= self.MAX_TOKENS_CEILING
else self.MAX_TOKENS_CEILING
)
self.MAX_TOKENS = int(MAX_TOKENS)
self.AI_MODEL = AI_MODEL

def instruct(self, prompt: str, tokens: int = 0) -> str:
Expand Down

0 comments on commit 150f81c

Please sign in to comment.