yihong0618 / bilingual_book_maker

Make bilingual epub books Using AI translate
MIT License
7.33k stars 1.05k forks source link

Fixed Azure openai bug #368

Closed steven130169 closed 8 months ago

steven130169 commented 8 months ago
  1. when I use azure openai will get "api_base" not  have this arribute error. So I add          self.api_base = api_base
  2. In line 84 when the message content type is None will get typeError. So I add a if else ”ifelse process“ to avoid this error.
yihong0618 commented 8 months ago

pip install -U black black .

yihong0618 commented 8 months ago

@steven130169 thanks