Skip to content

Commit 12309d1

Browse files
committed
Update dev guide in README.
1 parent 052de92 commit 12309d1

File tree

2 files changed

+33
-9
lines changed

2 files changed

+33
-9
lines changed

README.md

+24
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,30 @@ To maintain context between translation segments, the process is sequential for
263263

264264
[//]: # (## Comparison to https://microsoft.github.io/autogen/docs/notebooks/agentchat_video_transcript_translate_with_whisper/)
265265

266+
## Development Guide
267+
268+
I'm using [uv](https://github.com/astral-sh/uv) for package management.
269+
Install uv with our standalone installers:
270+
271+
#### On macOS and Linux.
272+
273+
```shell
274+
curl -LsSf https://astral.sh/uv/install.sh | sh
275+
```
276+
277+
#### On Windows.
278+
279+
```shell
280+
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
281+
```
282+
283+
### Install deps
284+
285+
```shell
286+
uv venv
287+
uv sync
288+
```
289+
266290
## Todo
267291

268292
- [x] [Efficiency] Batched translate/polish for GPT request (enable contextual ability).

tests/test_chatbot.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,15 @@ def test_non_beta_base_url(self):
174174
# TODO: Retry_bot testing
175175

176176
class TestGeminiBot(unittest.TestCase):
177-
def setUp(self):
178-
import os
179-
os.environ['HTTP_PROXY'] = 'http://127.0.0.1:7897'
180-
os.environ['HTTPS_PROXY'] = 'http://127.0.0.1:7897'
181-
182-
def tearDown(self):
183-
import os
184-
os.environ.pop('HTTP_PROXY')
185-
os.environ.pop('HTTPS_PROXY')
177+
# def setUp(self):
178+
# import os
179+
# os.environ['HTTP_PROXY'] = 'http://127.0.0.1:7897'
180+
# os.environ['HTTPS_PROXY'] = 'http://127.0.0.1:7897'
181+
#
182+
# def tearDown(self):
183+
# import os
184+
# os.environ.pop('HTTP_PROXY')
185+
# os.environ.pop('HTTPS_PROXY')
186186

187187
def test_multi_turn(self):
188188
bot = GeminiBot()

0 commit comments

Comments
 (0)