Skip to content

Commit

Permalink
Merge pull request #209 from haesleinhuepf/switch-to-default-endpoint…
Browse files Browse the repository at this point in the history
…-fix

bugfix: re-initialization without endpoint failed
  • Loading branch information
haesleinhuepf authored Sep 21, 2024
2 parents e3b1e64 + bc35852 commit 2085eb0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/bia_bob/_machinery.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,9 @@ def init_assistant(model=None, auto_execute:bool = False, variables:dict=None, e
config = yaml.full_load(test_df_to_yaml)

# change to default config if parameters are not given
if model is None and vision_model is None:
if model is None and vision_model is None and endpoint is None:
model = config["model"]
vision_model = config["vision_model"]
if endpoint is None:
endpoint = config["endpoint"]

# store config to disk
Expand Down

0 comments on commit 2085eb0

Please sign in to comment.