davideuler commited on
Commit
8cda8c5
·
1 Parent(s): 38a149c

update readme

Browse files
Files changed (1) hide show
  1. docs/README.rst +2 -1
docs/README.rst CHANGED
@@ -595,12 +595,13 @@ ChatGpt Translator
595
  You can provide your api key, api base as an argument or you can export it as an env var
596
  e.g.
597
  `export OPENAI_API_KEY="your_key"`
 
598
  `export OPENAI_API_BASE=https://api.openai.com/v1`
599
 
600
  .. code-block:: python
601
 
602
  text = 'happy coding'
603
- translated = ChatGptTranslator(api_key='your_key', target='german').translate(text=text)
604
 
605
  - Translate batch of texts
606
 
 
595
  You can provide your api key, api base as an argument or you can export it as an env var
596
  e.g.
597
  `export OPENAI_API_KEY="your_key"`
598
+
599
  `export OPENAI_API_BASE=https://api.openai.com/v1`
600
 
601
  .. code-block:: python
602
 
603
  text = 'happy coding'
604
+ translated = ChatGptTranslator(api_key='your_key', base_url='https://api.xxx.com/v1', target='german').translate(text=text)
605
 
606
  - Translate batch of texts
607