Skip to content

Commit

Permalink
have to set a callback to make Palm work
Browse files Browse the repository at this point in the history
  • Loading branch information
semio committed Oct 30, 2023
1 parent 0276aba commit eb503d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions yival_experiments/custom_configuration/model_compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from model_config_wrapper import ModelConfigWrapper
from llms.alibaba_complete import llm_complete as alibaba_llm_complete
from llms.palm_completion import safety_settings
import litellm
from litellm import completion

# load env vars
Expand All @@ -17,6 +18,9 @@

default_model_config = dict(model_name="gpt-3.5-turbo", params={"temperature": 0.5})

# I have to set this to make google plam work!
litellm.failure_callback = ["sentry"]


def model_compare(
question_id: str,
Expand Down

0 comments on commit eb503d9

Please sign in to comment.