Unverified Commit e5bb2d57 authored by Lintang Sutawika's avatar Lintang Sutawika Committed by GitHub
Browse files

Update __init__.py

`anthropic` is an optional library to install but `anthropic_llms.py` is always imported.

Add a way to check if the module is imported or not.
parent d88a566c
from . import huggingface
from . import openai_completions
from . import anthropic_llms
from . import textsynth
from . import dummy
try:
import anthropic
from . import anthropic_llms
except:
pass
# TODO: implement __all__
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment