Skip to content

Commit

Permalink
Assume reasonable default if called without parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudotensor committed Jun 4, 2024
1 parent b58d79e commit d2fa3d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/gpt_langchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -9435,6 +9435,10 @@ def _update_user_db(file,
raise ValueError("Public instance only allows up to"
" %d (%d from API) documents updated at a time." % (max_docs_public, max_docs_public_api))

if is_url is None and is_url is None and file:
# assume add_button action if not set
is_url = True

if langchain_mode == LangChainMode.DISABLED.value:
return None, langchain_mode, get_source_files(), "", None, {}

Expand Down
2 changes: 1 addition & 1 deletion src/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "c807a38f645b6e37b575bb045c310da1fcd4e330"
__version__ = "b58d79eaad96dd44f4a0dc1008e29e8ade1288a8"

0 comments on commit d2fa3d7

Please sign in to comment.